aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-31 16:12:22 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-05 17:09:41 -0800
commit55ca8ba6bfb359ccc195abb087bde5a519692424 (patch)
treecc7c43cdcd3042c9b6a485d13905876f0bbcd187 /python
parent10af6ff0057cdaf7c1065c09a0c003273b282359 (diff)
downloadfatcat-55ca8ba6bfb359ccc195abb087bde5a519692424.tar.gz
fatcat-55ca8ba6bfb359ccc195abb087bde5a519692424.zip
add some missing LICENSE_SLUG_MAP
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/crossref.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index f9a4fe46..f357297a 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -38,7 +38,8 @@ CONTAINER_TYPE_MAP = {
'book': 'book-series',
}
-# TODO:
+# TODO: more licenses; handle https and trailing slash better. Maybe
+# "PUBLISHER-SPECIFIC", or "OTHER"?
LICENSE_SLUG_MAP = {
"http://creativecommons.org/licenses/by/3.0/": "CC-BY",
"http://creativecommons.org/licenses/by/4.0/": "CC-BY",
@@ -50,9 +51,11 @@ LICENSE_SLUG_MAP = {
"http://creativecommons.org/licenses/by-nc/4.0/": "CC-BY-NC",
"http://creativecommons.org/licenses/by-nc-sa/3.0/": "CC-BY-NC-SA",
"http://creativecommons.org/licenses/by-nc-sa/4.0/": "CC-BY-NC-SA",
+ "https://creativecommons.org/licenses/by-nc-sa/4.0": "CC-BY-NC-SA",
"http://creativecommons.org/licenses/by-nc-nd/3.0/": "CC-BY-NC-ND",
"http://creativecommons.org/licenses/by-nc-nd/4.0/": "CC-BY-NC-ND",
"http://www.elsevier.com/open-access/userlicense/1.0/": "ELSEVIER-USER-1.0",
+ "https://www.karger.com/Services/SiteLicenses": "KARGER",
# http://onlinelibrary.wiley.com/termsAndConditions doesn't seem like a license
# http://www.springer.com/tdm doesn't seem like a license
}