icaruseu / mom-ca

Monasterium.net (http://www.monasterium.net/mom) - repository and collaborative archive
https://github.com/icaruseu/mom-ca/wiki
GNU General Public License v3.0
17 stars 11 forks source link

Further improve EDM OAI-PMH #1178

Closed yngwi closed 1 month ago

yngwi commented 1 month ago

The name of a charters’ parent archive is used in the EDM variant of OAI-PMH. This was read from charter documents (//cei:witnessOrig/cei:archIdentifier/cei:arch), but sometimes this value is empty. This PR replaces the code that optionally read the collection name for EDM from the collection file with a generated"$parent-title" that is filled both for archival and collection charters with a fitting value. This is used in place of the old $opt-collection-title and newly in dcterms:isPartOf. Additionally, dc:identifier is now correctly set to atom:id instead of cei:idno as we were told that this value has to be unique and the "Signature" based identifier alone isn’t.