1
0
Fork 0
mirror of https://github.com/qurator-spk/page2tsv.git synced 2025-06-09 19:39:54 +02:00

make xpath for PPN number more specific to avoid catching the PPN of containing work

This commit is contained in:
Konstantin Baierer 2023-06-08 19:08:40 +02:00
parent 0f64f07635
commit 82769077df

View file

@ -34,7 +34,7 @@ class OcrdNeatExportProcessor(Processor):
iiif_url_template = self.parameter['iiif_url_template']
noproxy = self.parameter['noproxy']
ppn_found = self.workspace.mets._tree.find('//mods:recordIdentifier[@source="gbv-ppn"]', NS)
ppn_found = self.workspace.mets._tree.find('//mods:mods/mods:recordInfo/mets:recordIdentifier[@source="gbv-ppn"]', NS)
if ppn_found is not None:
ppn = ppn_found.text
else: