From 01bc4acd84b02403087f3a2b0c229a2945ced14d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 29 Jan 2019 15:14:15 -0800 Subject: ensure abstracts aren't stubs --- python/fatcat_tools/importers/crossref.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index 7fc915a3..00b039d9 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -260,10 +260,11 @@ class CrossrefImporter(EntityImporter): # abstracts abstracts = [] - if obj.get('abstract') != None: + abstract = clean(obj.get('abstract')) + if abstract and len(abstract) > 10: abstracts.append(fatcat_client.ReleaseEntityAbstracts( mimetype="application/xml+jats", - content=clean(obj.get('abstract')))) + content=abstract)) # extra fields extra = dict() -- cgit v1.2.3