diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-07-19 12:27:01 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-07-19 12:27:01 -0700 |
commit | 94cce3ebe325f7601feee7dbe7ab8b24aa2492ee (patch) | |
tree | abbcfe0d865fbc668af4f80756a0accaa4661f2b /python/fatcat_tools/transforms | |
parent | 905ad4fc433d3a026649645311aa08492db1226e (diff) | |
download | fatcat-94cce3ebe325f7601feee7dbe7ab8b24aa2492ee.tar.gz fatcat-94cce3ebe325f7601feee7dbe7ab8b24aa2492ee.zip |
ingest: generate URLs for hdl (handle.net)
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r-- | python/fatcat_tools/transforms/ingest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/ingest.py b/python/fatcat_tools/transforms/ingest.py index d60f9467..1a19a651 100644 --- a/python/fatcat_tools/transforms/ingest.py +++ b/python/fatcat_tools/transforms/ingest.py @@ -89,6 +89,10 @@ def release_ingest_request( url = "https://doaj.org/article/{}".format(release.ext_ids.doaj.lower()) link_source = "doaj" link_source_id = release.ext_ids.doaj.lower() + elif release.ext_ids.hdl: + url = "https://hdl.handle.net/{}".format(release.ext_ids.hdl.lower()) + link_source = "hdl" + link_source_id = release.ext_ids.hdl.lower() if not url: return None |