From 82769077df11c5ba1be4cd7b291db7901dfea685 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Thu, 8 Jun 2023 19:08:40 +0200 Subject: [PATCH] make xpath for PPN number more specific to avoid catching the PPN of containing work --- qurator/tsvtools/ocrd_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qurator/tsvtools/ocrd_processors.py b/qurator/tsvtools/ocrd_processors.py index f4fbff8..9136935 100644 --- a/qurator/tsvtools/ocrd_processors.py +++ b/qurator/tsvtools/ocrd_processors.py @@ -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: