Skip to content

Commit 27322aa

Browse files
authored
Merge pull request #12034 from GlobalDataverseCommunityConsortium/otherIdentifierBug
alternativeIdentifierType attribute in DataCite XML was always set to :unav for otherId fields from citation metadatablock
2 parents db88104 + a9fb8ca commit 27322aa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/pidproviders/doi/XmlMetadataTemplate.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,9 @@ private void writeAlternateIdentifiers(XMLStreamWriter xmlw, DvObject dvObject)
927927
}
928928

929929
for (DatasetFieldCompoundValue otherIdentifier : otherIdentifiers) {
930-
String identifierType = null;
930+
String identifierType = ":unav";
931931
String identifier = null;
932932
for (DatasetField subField : otherIdentifier.getChildDatasetFields()) {
933-
identifierType = ":unav";
934933
switch (subField.getDatasetFieldType().getName()) {
935934
case DatasetFieldConstant.otherIdAgency:
936935
identifierType = subField.getValue();

0 commit comments

Comments
 (0)