[Kitodo] xlink-Attribute per Regelsatz ins MODS schreiben

Hohmann, Andre Andre.Hohmann at slub-dresden.de
Do Mär 28 07:34:23 CET 2019


Lieber Herr Richter,

dies ist ohne Nachbearbeitung der METS-Datei leider nicht möglich. Herr Maus hat eine Lösung mit XSLT in der Liste vorgestellt.

Ich habe alle Informationen zu diesem Thema im Kitodo-Wiki zusammengefasst:
https://github.com/kitodo/kitodo-production/wiki/Korrektur-des-href-Attributs-in-Kitodo

Weitere Erkenntnisse oder andere Lösungsvorschläge können dort hinzugefügt werden.

Viele Grüße
André Hohmann


Von: kitodo-community-bounces at kitodo.org <kitodo-community-bounces at kitodo.org> Im Auftrag von Richter, Michael
Gesendet: Mittwoch, 27. März 2019 18:10
An: kitodo-community at kitodo.org
Betreff: [Kitodo] xlink-Attribute per Regelsatz ins MODS schreiben

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/20190328/c1700bb9/attachment-0001.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