Skip to content

Commit

Permalink
fix relationType display value bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers authored and bjosel committed Nov 19, 2024
1 parent 79111ac commit 9a68774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,10 @@ public List<DatasetRelPublication> getRelatedPublications() {
relatedPublication.setIdNumber(subField.getDisplayValue());
break;
case DatasetFieldConstant.publicationRelationType:
relatedPublication.setRelationType(subField.getDisplayValue());
List<String> values = subField.getValues_nondisplay();
if (!values.isEmpty()) {
relatedPublication.setRelationType(values.get(0)); //only one value allowed
}
break;
}
}
Expand Down

0 comments on commit 9a68774

Please sign in to comment.