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 f89df7e5..cc1e001a 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 @@ -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 {