aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-10-01 15:00:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-10-01 15:00:10 -0700
commit9d1c375b2afe5d9230a54da6bc96da499ad646a3 (patch)
tree677b02a491ffe63cbd0dc932b35e2d35f73b6f80
parent6cec32572282a786e57d9f59785bcaef7f1a0e2a (diff)
downloadfatcat-9d1c375b2afe5d9230a54da6bc96da499ad646a3.tar.gz
fatcat-9d1c375b2afe5d9230a54da6bc96da499ad646a3.zip
for now, store is_longtail_oa in container_is_longtail_oa
-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)