diff options
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 5 |
1 files changed, 3 insertions, 2 deletions
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() |