Skip to content

Commit

Permalink
Merge pull request #81 from DiSSCo/feature/add-ss-to-media
Browse files Browse the repository at this point in the history
Add source system to media
  • Loading branch information
samleeflang authored Dec 16, 2024
2 parents 35230c2 + d36171e commit e47231b
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 e47231b

Please sign in to comment.