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

Merge pull request #13 from qurator-spk/fix-ppn-xpath

make xpath for PPN number more specific to avoid catching the PPN of containing work
This commit is contained in:
Kai Labusch 2024-03-13 12:50:07 +01:00 committed by GitHub
commit eac71b3e40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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/mods:recordIdentifier[@source="gbv-ppn"]', NS)
if ppn_found is not None:
ppn = ppn_found.text
else: