Skip to content

Commit

Permalink
Add metadata type when setting preservation metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandriessche committed Oct 14, 2022
1 parent c503fc7 commit 65d556d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ protected static void processMetadataFile(IPInterface ip, Logger logger, IPRepre
} else if (IPConstants.PRESERVATION.equalsIgnoreCase(metadataType)) {
IPMetadata preservationMetadata = new IPMetadata(metadataFile.get());
preservationMetadata.setCreateDate(mdRef.getCREATED());
preservationMetadata.setMetadataType(MetadataType.MetadataTypeEnum.valueOf(mdRef.getMDTYPE()));
preservationMetadata.setId(mdRef.getID());
if (representation == null) {
ip.addPreservationMetadata(preservationMetadata);
} else {
Expand Down

0 comments on commit 65d556d

Please sign in to comment.