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 committed Oct 15, 2024
1 parent c44ad65 commit 73dd0dd
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 73dd0dd

Please sign in to comment.