Skip to content

Commit

Permalink
Add source system to media
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Dec 16, 2024
1 parent 35230c2 commit d36171e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ private List<EntityRelationship> assembleDigitalMediaEntityRelationships(
relationships.add(
addEntityRelationship(HAS_FDO_TYPE, fdoProperties.getDigitalMediaType(),
fdoProperties.getApplicationName(), fdoProperties.getApplicationPID()));
relationships.add(addEntityRelationship(HAS_SOURCE_SYSTEM_ID, digitalMedia.getOdsSourceSystemID(),
fdoProperties.getApplicationName(), fdoProperties.getApplicationPID()));
if (digitalMedia.getDctermsRights() != null && digitalMedia.getDctermsRights()
.startsWith("http")) {
relationships.add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void testConstructDwcaDigitalMedia() throws JsonProcessingException, Organisatio
// Then
assertThat(result).isNotNull();
assertThat(result.getOdsHasEntityRelationships()).asInstanceOf(InstanceOfAssertFactories.LIST)
.hasSize(3);
.hasSize(4);
assertThat(result.getOdsHasIdentifiers()).asInstanceOf(InstanceOfAssertFactories.LIST)
.hasSize(2);
}
Expand Down

0 comments on commit d36171e

Please sign in to comment.