From 6fb2a2bda8b2e1e704075f18ef27a459cf6789c3 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Mon, 6 Jan 2020 19:17:23 +0100 Subject: datacite: filter out 'Cites' relation as well --- python/fatcat_tools/importers/datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools/importers') 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': -- cgit v1.2.3