aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms/ingest.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/transforms/ingest.py')
-rw-r--r--python/fatcat_tools/transforms/ingest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/ingest.py b/python/fatcat_tools/transforms/ingest.py
index cbf9e9bf..1a19a651 100644
--- a/python/fatcat_tools/transforms/ingest.py
+++ b/python/fatcat_tools/transforms/ingest.py
@@ -85,6 +85,14 @@ def release_ingest_request(
url = "https://doi.org/{}".format(release.ext_ids.doi.lower())
link_source = "doi"
link_source_id = release.ext_ids.doi.lower()
+ elif release.ext_ids.doaj:
+ 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