aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-01 16:40:39 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-01 16:40:39 -0800
commitd5d3d17b681ce7ba91ae4aedad52cd306b254c91 (patch)
treed8af9f9d66d01b6384ee47d39974d67c593d1f6c
parentda113570daf4b2d17cd828e3b512774485870ff0 (diff)
downloadfatcat-d5d3d17b681ce7ba91ae4aedad52cd306b254c91.tar.gz
fatcat-d5d3d17b681ce7ba91ae4aedad52cd306b254c91.zip
do actually require title for crossref import
-rw-r--r--python/fatcat_tools/importers/crossref.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index a75b1d5e..1ea47707 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -75,9 +75,9 @@ class CrossrefImporter(FatcatImporter):
returns a ReleaseEntity
"""
- # Previously required the 'author' and 'title' keys to exsit, but now don't
- #if (not 'author' in obj) or (not 'title' in obj):
- # return None
+ # Do require the 'title' keys to exsit, as release entities do
+ if (not 'title' in obj) or (not obj['title']):
+ return None
# Ways to be out of scope (provisionally)
# journal-issue and journal-volume map to None, but allowed for now