From 0acaa831631937263231c051ca7cd689ddad3053 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Sat, 9 Dec 2023 12:48:07 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20MUse=20relative=20predicate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/mods4pandas/mods4pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qurator/mods4pandas/mods4pandas.py b/qurator/mods4pandas/mods4pandas.py index 4b45148..7d187e1 100755 --- a/qurator/mods4pandas/mods4pandas.py +++ b/qurator/mods4pandas/mods4pandas.py @@ -326,7 +326,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]: # it suffices to do this the old-fashioned way. sm_links = mets.findall( - f'//mets:structLink/mets:smLink[@xlink:to="{to_phys}"]', ns + f'./mets:structLink/mets:smLink[@xlink:to="{to_phys}"]', ns ) targets = []