🐛 Normalize structure type names to lower case

fix/use-temp-sqlite3
Mike Gerber 4 weeks ago
parent 939967edc8
commit 8ee4c3d0bc

@ -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

Loading…
Cancel
Save