From b3076c623703e6f46155767633e0b428b46da4a1 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 9 Jan 2020 16:34:37 +0100 Subject: datacite: add entry to license slug map --- python/fatcat_tools/importers/datacite.py | 1 + python/tests/import_datacite.py | 1 + 2 files changed, 2 insertions(+) (limited to 'python') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 12e0beba..0de187fb 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -158,6 +158,7 @@ UNKNOWN_MARKERS_LOWER = set((v.lower() for v in UNKNOWN_MARKERS)) # TODO(martin): merge this with other maps and lookup functions, eventually. LICENSE_SLUG_MAP = { "//archaeologydataservice.ac.uk/advice/termsofuseandaccess.xhtml/": "ADS-UK", + "//archaeologydataservice.ac.uk/advice/termsofuseandaccess/": "ADS-UK", "//arxiv.org/licenses/nonexclusive-distrib/1.0/": "ARXIV-1.0", "//doi.wiley.com/10.1002/tdm_license_1.1/": "WILEY-TDM-1.1", "//homepage.data-planet.com/terms-use/": "SAGE-DATA-PLANET", diff --git a/python/tests/import_datacite.py b/python/tests/import_datacite.py index d0d94b10..669a6984 100644 --- a/python/tests/import_datacite.py +++ b/python/tests/import_datacite.py @@ -330,6 +330,7 @@ def test_lookup_license_slug(): Case('http://homepage.data-planet.com/terms-use', 'SAGE-DATA-PLANET'), Case('http://www.springer.com/tdm', 'SPRINGER-TDM'), Case('https://archaeologydataservice.ac.uk/advice/termsOfUseAndAccess.xhtml', 'ADS-UK'), + Case('https://archaeologydataservice.ac.uk/advice/termsOfUseAndAccess', 'ADS-UK'), Case('https://creativecommons.org/public-domain/cc0', 'CC-0'), Case('https://creativecommons.org/publicdomain/zero/1.0', 'CC-0'), Case('https://creativecommons.org/share-your-work/public-domain/cc0', 'CC-0'), -- cgit v1.2.3