summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-06 19:17:23 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-06 19:17:23 +0100
commit6fb2a2bda8b2e1e704075f18ef27a459cf6789c3 (patch)
treee777ac91f7b67ece6705afccc86a6d2eeec65856 /python/fatcat_tools
parentb7675e276520c7ce595b9b5dbb10c02a42f5a9b1 (diff)
downloadfatcat-6fb2a2bda8b2e1e704075f18ef27a459cf6789c3.tar.gz
fatcat-6fb2a2bda8b2e1e704075f18ef27a459cf6789c3.zip
datacite: filter out 'Cites' relation as well
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/datacite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 2fad1264..9a1e9935 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -560,7 +560,7 @@ class DataciteImporter(EntityImporter):
relIds = attributes.get('relatedIdentifiers', []) or []
for rel in relIds:
- if not rel.get('relationType', '') == 'References':
+ if not rel.get('relationType', '') in ('References', 'Cites'):
continue
ref_extra = dict()
if rel.get('relatedIdentifierType', '') == 'DOI':