diff --git a/datahugger/api.py b/datahugger/api.py index d1d9382..0c2e0fd 100644 --- a/datahugger/api.py +++ b/datahugger/api.py @@ -135,8 +135,9 @@ r".*\/handle\/\d+\/\d+": DSpaceDataset, } +# add keys in lower-case for fast case-insensitive lookups RE3DATA_SOFTWARE = { - "DataVerse": DataverseDataset, # Hits on re3data 2022-09-02: (145) + "dataverse": DataverseDataset, # Hits on re3data 2022-09-02: (145) # "DSpace": DSpaceDataset, # Hits on re3data 2022-09-02: (115) # "CKAN": CKANDataset, # Hits on re3data 2022-09-02: (89) # "MySQL": MySQLDataset, # Hits on re3data 2022-09-02: (86) @@ -353,4 +354,4 @@ def _resolve_service_with_re3data(doi): r_software = get_re3data_repository(repo["id"]) - return RE3DATA_SOFTWARE[r_software] + return RE3DATA_SOFTWARE[r_software.lower()]