Skip to content

Commit

Permalink
Add metadata type when setting preservation metadata
Browse files Browse the repository at this point in the history
(cherry picked from commit 65d556d)
  • Loading branch information
michielvandriessche committed Feb 23, 2024
1 parent e697af3 commit c66a91f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,8 @@ protected void processMetadataFile(IPInterface ip, Logger logger, IPRepresentati
} 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 c66a91f

Please sign in to comment.