mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-27 04:29:57 +02:00
🐛 mods4pandas: Handle multivolume_work without structMap TYPE='PHYSICAL'
This commit is contained in:
parent
0acaa83163
commit
6226618f40
3 changed files with 127 additions and 1 deletions
|
@ -35,3 +35,11 @@ def test_page_info():
|
|||
# structMap.
|
||||
struct_types = sorted(removeprefix(k, "structMap-LOGICAL_TYPE_") for k, v in page_info_page.items() if k.startswith("structMap-LOGICAL_TYPE_") and v == 1)
|
||||
assert struct_types == ["illustration", "monograph", "title_page"]
|
||||
|
||||
|
||||
def test_page_info_multivolume_work():
|
||||
"""Test creation of page_info for multivolume_work"""
|
||||
mets = ET.parse(TESTS_DATA_DIR / "mets-mods" / "PPN717884805-multivolume_work-no-structMap-PHYSICAL.xml")
|
||||
page_info = pages_to_dict(mets)
|
||||
assert page_info == []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue