1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-07 19:05:06 +02:00

🐛 Add multivolume type 'multivolume_manuscript'

This commit is contained in:
Mike Gerber 2024-11-28 14:25:27 +01:00
parent 8ee4c3d0bc
commit abb20b8ba9

View file

@ -277,7 +277,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", "MultivolumeWork", "periodical"] for t in ["multivolume_work", "MultivolumeWork", "multivolume_manuscript", "periodical"]
): ):
return [] return []
else: else: