Skip to content

Commit

Permalink
Fixed metadata reference with MDTYPE 'Other' generates OTHERMDTYPE #120
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjepard authored and hmiguim committed Jun 16, 2023
1 parent a8812e4 commit 2e2034f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import javax.xml.datatype.XMLGregorianCalendar;

import org.apache.commons.lang3.StringUtils;
import org.roda_project.commons_ip.model.MetadataType;
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;
Expand Down Expand Up @@ -337,7 +338,7 @@ public static MdRef addDescriptiveMetadataToMETS(final MetsWrapper metsWrapper,

public static MdRef addOtherMetadataToMETS(final MetsWrapper metsWrapper, final IPMetadata otherMetadata,
final String otherMetadataPath) throws IPException, InterruptedException {
return addMetadataToMETS(metsWrapper, otherMetadata, otherMetadataPath, "OTHER", null, null, false);
return addMetadataToMETS(metsWrapper, otherMetadata, otherMetadataPath, MetadataType.MetadataTypeEnum.OTHER.getType() , otherMetadata.getId(), null, false);
}

private static MdRef addMetadataToMETS(final MetsWrapper metsWrapper, final IPMetadata metadata,
Expand Down

0 comments on commit 2e2034f

Please sign in to comment.