<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;">
<div>Hallo,</div>
<div><br>
</div>
ich musste feststellen, dass unsere aus Kitodo.Production exportierten METS-Dateien invalid sind. Und zwar schreibt Production im Metadaten-MODS-Bereich:
<div><br>
</div>
<div>
<div><font face="monospace" size="3" color="#000000"><mods:accessCondition href="<a href="https://creativecommons.org/publicdomain/mark/1.0/">https://creativecommons.org/publicdomain/mark/1.0/</a>"</font></div>
<div><font face="monospace" size="3" color="#000000"> type="use and reproduction">Public Domain Mark 1.0</mods:accessCondition></font></div>
</div>
<div><br>
</div>
<div>"href" ist dort aber nicht erlaubt. "xlink:href" schon. Ich habe das auch so im Regelsatz konfiguriert:</div>
<div><br>
</div>
<div>
<pre style="font-family: "DejaVu Sans Mono";"><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"><Metadata></font></pre><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"> <InternalName>UseAndReproductionLicense</InternalName></font></pre><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"> <ValueCondition>/^https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\//</ValueCondition></font></pre><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"> <ValueRegExp>s/^https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\//Public Domain Mark 1.0/</ValueRegExp></font></pre><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"> <WriteXPath>./mods:mods/#mods:accessCondition[@type='use and reproduction'][@xlink:href='<a href="https://creativecommons.org/publicdomain/mark/1.0/'">https://creativecommons.org/publicdomain/mark/1.0/'</a>]</font></pre><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"> </WriteXPath></font></pre><pre style="font-family: "DejaVu Sans Mono";"><font face="monospace" size="3" color="#000000"></Metadata></font></pre></pre>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Hat jemand eine Idee, wie man korrekt "xlink:href" ins MODS bekommt?</div>
<div>
<div><br>
</div>
<div>Danke und Gruß</div>
<div><span>
<div>--</div>
<div>Michael Richter</div>
<div>Abt. Online-Dienste und IT-Entwicklung</div>
<div><br>
</div>
<div>Technische Universität Berlin</div>
<div>Universitätsbibliothek</div>
<div>Fasanenstraße 88</div>
<div>10623 Berlin</div>
<div><br>
</div>
<div>Telefon: +49 (0)30 314-76097<br>
</div>
<div><a href="mailto:m.richter@tu-berlin.de">m.richter@tu-berlin.de</a></div>
<div><br>
</div>
<div><a href="http://www.tu-berlin.de">www.tu-berlin.de</a></div>
</span></div>
</div>
</body>
</html>