From 7d3ccb1c079f619ce664a984eef4f295294dd741 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 8 Jan 2020 03:27:05 +0100 Subject: datacite: use more specific release_type, if possible --- python/fatcat_tools/importers/datacite.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/fatcat_tools') 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() -- cgit v1.2.3