From eec30791e06e5e9ee9437bdc46d42bec690d604e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 12 Oct 2018 15:32:20 -0400 Subject: don't filter out crossref works based on container-title --- python/fatcat/crossref_importer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/fatcat/crossref_importer.py b/python/fatcat/crossref_importer.py index bab3fe2f..37005965 100644 --- a/python/fatcat/crossref_importer.py +++ b/python/fatcat/crossref_importer.py @@ -46,8 +46,7 @@ class FatcatCrossrefImporter(FatcatImporter): return None # Other ways to be out of scope (provisionally) - if ((not 'type' in obj) or (not 'container-title' in obj) or - len(obj['container-title']) < 1): + if (not 'type' in obj): return None # contribs @@ -97,7 +96,8 @@ class FatcatCrossrefImporter(FatcatImporter): publisher = obj.get('publisher') ce = None - if container_id is None and self.create_containers and issnl != None: + if (container_id is None and self.create_containers and issnl != None + and obj.get('container-title') and len(obj['container-title']) > 0): ce = fatcat_client.ContainerEntity( issnl=issnl, publisher=publisher, -- cgit v1.2.3