aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-10-12 15:32:20 -0400
committerBryan Newbold <bnewbold@robocracy.org>2018-10-12 15:32:20 -0400
commiteec30791e06e5e9ee9437bdc46d42bec690d604e (patch)
tree52b78db7afd3ec192ab465b58055a1fc3cc83326
parentb16965cbbe7221b97d2a226de8f954f6f8e48d1d (diff)
downloadfatcat-eec30791e06e5e9ee9437bdc46d42bec690d604e.tar.gz
fatcat-eec30791e06e5e9ee9437bdc46d42bec690d604e.zip
don't filter out crossref works based on container-title
-rw-r--r--python/fatcat/crossref_importer.py6
1 files 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,