Hallo Roland,

falls es darum geht, dass immer nur ein recordIdentifier von beiden vorhanden ist,
kann z.B. die XPATH Funktion concat(string1 ,string2 [,stringn]* ) verwendet werden.

concat(./mods:recordInfo/mods:recordIdentifier[@source='hebis-ppn'], ./mods:recordInfo/mods:recordIdentifier[@type='ppn-source'])

Das geht, wie gesagt, natürlich nur, wenn entweder source='hebis-ppn' oder type='ppn-source' vorhanden ist.

Gruß

Uli


Frank-Ulrich Weber
Leiter Softwareentwicklung/Head of Software Development

Zeutschel GmbH | Heerweg 2 | 72070 Tübingen | Deutschland
p: +49 (7071) 9706-56 | m: | f: +49 (7071) 9706-44
e: Frank-Ulrich.Weber@zeutschel.de | w: http://www.zeutschel.de
Geschäftsführer/President: Joerg Vogler | Registergericht Stuttgart: HRB 380917

-----Ursprüngliche Nachricht-----
Von: kitodo-community-bounces@kitodo.org <kitodo-community-bounces@kitodo.org> Im Auftrag von Roth-Steiner, Roland
Gesendet: Freitag, 8. Oktober 2021 11:01
An: kitodo-community@kitodo.org
Betreff: [Kitodo] Import in presentation - OR im XPath-Ausdruck

Hallo,

kann ich ein Feld in kitodo.presentation mit entweder einem XPATH-Ausdruck ODER einem anderen beim Import befüllen?

Z.B. im Import-XPath:

./mods:recordInfo/mods:recordIdentifier[@source='hebis-ppn']|./mods:recordInfo/mods:recordIdentifier[@type='ppn-source']

mit der pipe | für den OR-Ausdruck.


Danke und LG


Roland Roth-Steiner
Abteilung Informationstechnologie, Forschung und Entwicklung

Technische Universität Darmstadt
Universitäts- und Landesbibliothek Darmstadt Magdalenenstraße 8 (S1|20)
64289 Darmstadt

+49 6151 16-76317
roland.roth-steiner@tu-darmstadt.de
www.ulb.tu-darmstadt.de

skype-name: live:daropoi
Zoom-ID: 411 131 0023



_______________________________________________
Kitodo-Community mailing list
Kitodo-Community@kitodo.org
https://maillist.slub-dresden.de/cgi-bin/mailman/listinfo/kitodo-community