diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-01 16:40:39 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-01 16:40:39 -0800 |
commit | d5d3d17b681ce7ba91ae4aedad52cd306b254c91 (patch) | |
tree | d8af9f9d66d01b6384ee47d39974d67c593d1f6c /python/fatcat_tools | |
parent | da113570daf4b2d17cd828e3b512774485870ff0 (diff) | |
download | fatcat-d5d3d17b681ce7ba91ae4aedad52cd306b254c91.tar.gz fatcat-d5d3d17b681ce7ba91ae4aedad52cd306b254c91.zip |
do actually require title for crossref import
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 6 |
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 |