From 8ee4c3d0bcb4a65fec343c0317a6df211251f311 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Wed, 27 Nov 2024 19:56:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Normalize=20structure=20type=20n?= =?UTF-8?q?ames=20to=20lower=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mods4pandas/mods4pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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