aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-08 03:27:05 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-08 03:27:05 +0100
commit7d3ccb1c079f619ce664a984eef4f295294dd741 (patch)
tree153962e717c5cc1b0bd0e3c1328c1242ef43456d
parent21e5cb620f7c8cb14f0c9d72b0504eeb7ff31977 (diff)
downloadfatcat-7d3ccb1c079f619ce664a984eef4f295294dd741.tar.gz
fatcat-7d3ccb1c079f619ce664a984eef4f295294dd741.zip
datacite: use more specific release_type, if possible
-rw-r--r--python/fatcat_tools/importers/datacite.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index fe98d62a..58dfc556 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -613,6 +613,12 @@ class DataciteImporter(EntityImporter):
))
ref_index += 1
+ # More specific release_type via 'Reviews' relationsship.
+ for rel in relIds:
+ if rel.get('relatedIdentifierType', '') != 'Reviews':
+ continue
+ release_type = 'review'
+
# Extra information.
extra_datacite = dict()