summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-10-01 15:00:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-10-12 15:33:35 -0400
commita0f61293ab0b41ff41203470bb7e975a053550bf (patch)
treea5506b04eb527b1f8ae0fa27e9fa6ea0a50ad113 /extra
parent3ebe4eb9b546b25d23f6b044d5c6cd883d148e8c (diff)
downloadfatcat-a0f61293ab0b41ff41203470bb7e975a053550bf.tar.gz
fatcat-a0f61293ab0b41ff41203470bb7e975a053550bf.zip
for now, store is_longtail_oa in container_is_longtail_oa
Diffstat (limited to 'extra')
-rwxr-xr-xextra/elasticsearch/transform_release.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/elasticsearch/transform_release.py b/extra/elasticsearch/transform_release.py
index 4922a362..86d6e4b7 100755
--- a/extra/elasticsearch/transform_release.py
+++ b/extra/elasticsearch/transform_release.py
@@ -62,6 +62,8 @@ def transform(m):
extra = m.get('extra', dict())
if extra:
t['in_shadow'] = extra.get('in_shadow')
+ if extra.get('grobid') and extra['grobid'].get('is_longtail_oa'):
+ t['container_is_longtail_oa'] = True
t['any_abstract'] = bool(t.get('abstracts'))
t['is_kept'] = container_is_kept or extra.get('is_kept', False)