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)
(cherry picked from commit c66a91f)
  • Loading branch information
michielvandriessche authored and hmiguim committed Apr 5, 2024
1 parent 7200f90 commit fec5afe
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 fec5afe

Please sign in to comment.