diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-01-08 03:27:05 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-01-08 03:27:05 +0100 |
commit | 7d3ccb1c079f619ce664a984eef4f295294dd741 (patch) | |
tree | 153962e717c5cc1b0bd0e3c1328c1242ef43456d /python/fatcat_tools | |
parent | 21e5cb620f7c8cb14f0c9d72b0504eeb7ff31977 (diff) | |
download | fatcat-7d3ccb1c079f619ce664a984eef4f295294dd741.tar.gz fatcat-7d3ccb1c079f619ce664a984eef4f295294dd741.zip |
datacite: use more specific release_type, if possible
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 6 |
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() |