Skip to content

Commit

Permalink
Fix: #143
Browse files Browse the repository at this point in the history
  • Loading branch information
006627 committed Mar 22, 2023
1 parent 4936a07 commit 05e55b8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.apache.commons.lang3.StringUtils;
import org.roda_project.commons_ip.utils.IPEnums.IPType;
import org.roda_project.commons_ip.utils.IPException;
import org.roda_project.commons_ip.utils.METSEnums;
import org.roda_project.commons_ip.utils.METSEnums.CreatorType;
import org.roda_project.commons_ip.utils.METSEnums.LocType;
import org.roda_project.commons_ip.utils.ValidationConstants;
Expand Down Expand Up @@ -396,7 +397,7 @@ private static String escapeNCName(final String id) {

private static MdRef createMdRef(final String id, final String metadataPath) {
final MdRef mdRef = new MdRef();
mdRef.setID(escapeNCName(id));
mdRef.setID(METSEnums.FILE_ID_PREFIX + escapeNCName(id));
mdRef.setType(IPConstants.METS_TYPE_SIMPLE);
mdRef.setLOCTYPE(LocType.URL.toString());
mdRef.setHref(METSUtils.encodeHref(metadataPath));
Expand Down

0 comments on commit 05e55b8

Please sign in to comment.