summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-29 15:14:15 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-29 15:14:15 -0800
commit01bc4acd84b02403087f3a2b0c229a2945ced14d (patch)
tree4125972b5eb4232c141a3967293a54de506a28fd
parentaf04083c4d97bb133ec5a7b40b98cbaf245584ec (diff)
downloadfatcat-01bc4acd84b02403087f3a2b0c229a2945ced14d.tar.gz
fatcat-01bc4acd84b02403087f3a2b0c229a2945ced14d.zip
ensure abstracts aren't stubs
-rw-r--r--python/fatcat_tools/importers/crossref.py5
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()