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

🐛 Normalize structure type names to lower case

This commit is contained in:
Mike Gerber 2024-11-27 19:56:36 +01:00
parent 939967edc8
commit 8ee4c3d0bc

View file

@ -362,7 +362,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
# Populate structure type indicator variables # Populate structure type indicator variables
for struct_div in struct_divs: for struct_div in struct_divs:
type_ = struct_div.attrib.get("TYPE") type_ = struct_div.attrib.get("TYPE").lower()
assert type_ assert type_
page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1 page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1