1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-10 04:09:56 +02:00

🐛 mods4pandas: Handle MultiVolumeWork (differently spelled type cp. to before) without structMap TYPE='PHYSICAL'

This commit is contained in:
Gerber, Mike 2023-12-12 13:33:05 +01:00
parent b8a2872582
commit e9fca0f563

View file

@ -273,7 +273,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
# This is expected in a multivolume work or periodical! # This is expected in a multivolume work or periodical!
if any( if any(
structMap_LOGICAL.find(f'./mets:div[@TYPE="{t}"]', ns) is not None structMap_LOGICAL.find(f'./mets:div[@TYPE="{t}"]', ns) is not None
for t in ["multivolume_work", "periodical"] for t in ["multivolume_work", "MultivolumeWork", "periodical"]
): ):
return [] return []
else: else: