diff --git a/src/mods4pandas/mods4pandas.py b/src/mods4pandas/mods4pandas.py index e08fe37..b4051f9 100755 --- a/src/mods4pandas/mods4pandas.py +++ b/src/mods4pandas/mods4pandas.py @@ -362,7 +362,7 @@ def pages_to_dict(mets, raise_errors=True) -> List[Dict]: # Populate structure type indicator variables for struct_div in struct_divs: - type_ = struct_div.attrib.get("TYPE") + type_ = struct_div.attrib.get("TYPE").lower() assert type_ page_dict[f"structMap-LOGICAL_TYPE_{type_}"] = 1