diff --git a/src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java b/src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java index 31d2b95b..e61154f6 100644 --- a/src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java +++ b/src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java @@ -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 {