diff --git a/doc/release-notes/12244-fix-citations.md b/doc/release-notes/12244-fix-citations.md new file mode 100644 index 00000000000..12901225eb2 --- /dev/null +++ b/doc/release-notes/12244-fix-citations.md @@ -0,0 +1 @@ +This release fixes a bug causing Author names of Organizations to be incorrect in styled citations (the software attempted to interpret the organization's name as a first name/last name pair). \ No newline at end of file diff --git a/src/main/java/edu/harvard/iq/dataverse/DataCitation.java b/src/main/java/edu/harvard/iq/dataverse/DataCitation.java index 57734911470..08688b1e653 100644 --- a/src/main/java/edu/harvard/iq/dataverse/DataCitation.java +++ b/src/main/java/edu/harvard/iq/dataverse/DataCitation.java @@ -880,7 +880,7 @@ private void getAuthorsAndProducersFrom(DatasetVersion dsv) { cslAuthors.add(new CSLNameBuilder().given(givenName).family(familyName).isInstitution(false).build()); } else { cslAuthors.add( - new CSLNameBuilder().literal(formatString(authorJson.getString("fullName"), true)).isInstitution(false).build()); + new CSLNameBuilder().literal(formatString(authorJson.getString("fullName"), true)).isInstitution(true).build()); } } }