diff options
author | Martin Czygan <martin@archive.org> | 2021-07-02 16:13:42 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2021-07-02 16:13:42 +0000 |
commit | 31ce8147ee2e568314eea838df0e1ef182fe40a1 (patch) | |
tree | b1c019aff5c8c10fe497715110660633f23f0dfe /python/fatcat_tools/transforms | |
parent | 5f631cba958c1b67c64202f034569f788689e289 (diff) | |
parent | fa11747574f086e99459914f93d24bad7a8eacce (diff) | |
download | fatcat-31ce8147ee2e568314eea838df0e1ef182fe40a1.tar.gz fatcat-31ce8147ee2e568314eea838df0e1ef182fe40a1.zip |
Merge branch 'bnewbold-more-doi-lower' into 'master'
more consistent and defensive lower-casing of DOIs
See merge request webgroup/fatcat!109
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r-- | python/fatcat_tools/transforms/ingest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/transforms/ingest.py b/python/fatcat_tools/transforms/ingest.py index 9aaeaa84..42927b2a 100644 --- a/python/fatcat_tools/transforms/ingest.py +++ b/python/fatcat_tools/transforms/ingest.py @@ -50,9 +50,9 @@ def release_ingest_request(release, ingest_request_source='fatcat', ingest_type= link_source = "pmc" link_source_id = release.ext_ids.pmcid elif release.ext_ids.doi: - url = "https://doi.org/{}".format(release.ext_ids.doi) + url = "https://doi.org/{}".format(release.ext_ids.doi.lower()) link_source = "doi" - link_source_id = release.ext_ids.doi + link_source_id = release.ext_ids.doi.lower() if not url: return None |