🧹 page_info: Name structMap type columns a bit more consistently

master
Mike Gerber 1 year ago
parent 3ec0f8c62a
commit b8980bbf25

@ -329,7 +329,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
for struct_div in struct_divs: for struct_div in struct_divs:
type_ = struct_div.attrib.get("TYPE") type_ = struct_div.attrib.get("TYPE")
assert type_ assert type_
page_dict[f"structmap_LOGICAL_TYPE_{type_}"] = 1 page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1
from pprint import pprint; pprint(page_dict); print() from pprint import pprint; pprint(page_dict); print()
result.append(page_dict) result.append(page_dict)

Loading…
Cancel
Save