Hi Douglas,
Thank you for the instructions! They're very helpful. We've taken some time to test this but we unfortunately still aren't able to get the XML metadata parsed into the METS file..
We've configured our instance as follows:
- set "metadata_xml_validation_enabled = true" in /etc/archivematica/clientConfig.conf
- create a settings file with the following content:
XML_VALIDATION = {
"metadata": None,
}
XML_VALIDATION_FAIL_ON_ERROR = False
- store the settings file in a location that the user running the archivematica-mcp-client service can read: in this case, /lib/archivematica/MCPClient/settings/xml_validation.py
xmlMetadata-AMexample/
├── beihai.tif
└── metadata
├── source-metadata.csv
└── beihai.xml
And the source-metadata.csv (encoded in UTF-8) has the following contents:
filename,metadata,type
objects/beihai.tif,beihai.xml,local
When I process the package, the XML metadata is recognized as a metadata file, but there is no corresponding dmdSec with the metadata in the METS. There is only one dmdSec for the package as a whole.
<mets:mets xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/version1121/mets.xsd">
<mets:metsHdr CREATEDATE="2023-12-15T17:10:23"/>
<mets:dmdSec ID="dmdSec_1" CREATED="2023-12-15T17:10:22" STATUS="original">
<mets:mdWrap MDTYPE="PREMIS:OBJECT">
<mets:xmlData>
<premis:object xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
<premis:objectIdentifier>
<premis:objectIdentifierType>UUID</premis:objectIdentifierType>
<premis:objectIdentifierValue>9abcfbeb-47cf-4b0d-8c9b-1aee5f7354fd</premis:objectIdentifierValue>
</premis:objectIdentifier>
<premis:originalName>xmlMetadata-AMexample-9abcfbeb-47cf-4b0d-8c9b-1aee5f7354fd</premis:originalName>
</premis:object>
</mets:xmlData>
</mets:mdWrap>
</mets:dmdSec>
<mets:amdSec ID="amdSec_1">
I also don't see any errors in the MCPClient or MCPServer logs or in the stdout/stderr for the Generate METS.xml document job related to processing or validating XML metadata.
I'm not sure if there's something I'm missing or that needs adjusting, but any suggestions you can share would be much appreciated.
Thank you again for your help!
Julie