[Kitodo] xlink-Attribute per Regelsatz ins MODS schreiben
Richter, Michael
m.richter at tu-berlin.de
Mi Mär 27 18:09:41 CET 2019
Hallo,
ich musste feststellen, dass unsere aus Kitodo.Production exportierten METS-Dateien invalid sind. Und zwar schreibt Production im Metadaten-MODS-Bereich:
<mods:accessCondition href="https://creativecommons.org/publicdomain/mark/1.0/"
type="use and reproduction">Public Domain Mark 1.0</mods:accessCondition>
"href" ist dort aber nicht erlaubt. "xlink:href" schon. Ich habe das auch so im Regelsatz konfiguriert:
<Metadata>
<InternalName>UseAndReproductionLicense</InternalName>
<ValueCondition>/^https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\//</ValueCondition>
<ValueRegExp>s/^https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\//Public Domain Mark 1.0/</ValueRegExp>
<WriteXPath>./mods:mods/#mods:accessCondition[@type='use and reproduction'][@xlink:href='https://creativecommons.org/publicdomain/mark/1.0/']
</WriteXPath>
</Metadata>
Ich habe mich tief in den Code gewühlt und musste feststellen, dass der Quellcode (MetsMods.java->createNode()) offensichtlich keine Attribute mit Namespace unterstützt. Beim Prüfen auf einen Prefix (also einen Namespace) wird kein "@" für Attribute berücksichtigt.
Hat jemand eine Idee, wie man korrekt "xlink:href" ins MODS bekommt?
Danke und Gruß
--
Michael Richter
Abt. Online-Dienste und IT-Entwicklung
Technische Universität Berlin
Universitätsbibliothek
Fasanenstraße 88
10623 Berlin
Telefon: +49 (0)30 314-76097
m.richter at tu-berlin.de<mailto:m.richter at tu-berlin.de>
www.tu-berlin.de<http://www.tu-berlin.de>
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://bibservices.biblio.etc.tu-bs.de/pipermail/kitodo/attachments/20190327/883c71e7/attachment.html>
-------------- nächster Teil --------------
_______________________________________________
Kitodo-Community mailing list
Kitodo-Community at kitodo.org
https://maillist.slub-dresden.de/cgi-bin/mailman/listinfo/kitodo-community
Mehr Informationen über die Mailingliste Kitodo