From 3fd25b04d1548786462520ffb8bfdb46389b7655 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 16:44:33 -0800 Subject: drop creators with no display name at all --- python/fatcat_tools/importers/orcid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py index e64cdcc2..a055801b 100644 --- a/python/fatcat_tools/importers/orcid.py +++ b/python/fatcat_tools/importers/orcid.py @@ -55,9 +55,9 @@ class OrcidImporter(EntityImporter): display = sur elif given: display = given - else: - # must have *some* name - return None + if not display: + # must have *some* name + return None orcid = obj['orcid-identifier']['path'] if not self.is_orcid(orcid): sys.stderr.write("Bad ORCID: {}\n".format(orcid)) -- cgit v1.2.3