MUse relative predicate

master
Gerber, Mike 11 months ago
parent 8fc4eeeb3b
commit 0acaa83163

@ -326,7 +326,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
# it suffices to do this the old-fashioned way. # it suffices to do this the old-fashioned way.
sm_links = mets.findall( 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 = [] targets = []

Loading…
Cancel
Save