Skip to content

Commit 237243a

Browse files
authored
Merge pull request #11629 from GlobalDataverseCommunityConsortium/CSLFix
Fix View Styled Citations/ Remove extra doi: from URLs
2 parents e69cf6f + e64fae0 commit 237243a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/release-notes/11629-CSLFix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The styled citations available through the "View Styled Citations" menu were including extra characters, e.g. 'doi:' in the URL form of the PIDs in the citation. This is now fixed.

src/main/java/edu/harvard/iq/dataverse/DataCitation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ public JsonObject getCSLJsonFormat() {
749749
if (seriesTitles != null) {
750750
itemBuilder.containerTitle(formatString(seriesTitles.get(0), true));
751751
}
752-
itemBuilder.version(version).DOI(persistentId.asString());
752+
itemBuilder.version(version).DOI(persistentId.asRawIdentifier());
753753
if (keywords != null) {
754754
itemBuilder
755755
.categories(keywords.stream().map(keyword -> formatString(keyword, true)).toArray(String[]::new));

0 commit comments

Comments
 (0)