aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-09 16:34:37 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-09 16:34:37 +0100
commitb3076c623703e6f46155767633e0b428b46da4a1 (patch)
tree8c5fd578eb2063e8d1dcc624afdaae7afa890076 /python
parentda1daa8568be65c39265c1819d28e8796785e600 (diff)
downloadfatcat-b3076c623703e6f46155767633e0b428b46da4a1.tar.gz
fatcat-b3076c623703e6f46155767633e0b428b46da4a1.zip
datacite: add entry to license slug map
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/datacite.py1
-rw-r--r--python/tests/import_datacite.py1
2 files changed, 2 insertions, 0 deletions
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'),