summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorbnewbold <bnewbold@archive.org>2021-02-23 23:46:19 +0000
committerbnewbold <bnewbold@archive.org>2021-02-23 23:46:19 +0000
commitbebd90f8010efe4bc5fff0987fd32d66f438913c (patch)
tree4e98ffcdb1add11d642fe9e2ed72eab571105ba6 /python/fatcat_tools/transforms
parent99e37fca2ad74cd3e48d09b12b0d8a005d0de59e (diff)
parentd31434324cfc1924d4d27b52dcc89f3b3e81ef19 (diff)
downloadfatcat-bebd90f8010efe4bc5fff0987fd32d66f438913c.tar.gz
fatcat-bebd90f8010efe4bc5fff0987fd32d66f438913c.zip
Merge branch 'bnewbold-es-schema' into 'master'
ES schema tweaks See merge request webgroup/fatcat!95
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index db860a09..f37aadba 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -72,6 +72,8 @@ def release_to_elasticsearch(entity: ReleaseEntity, force_bool: bool = True) ->
jstor_id = release.ext_ids.jstor,
ark_id = release.ext_ids.ark,
mag_id = release.ext_ids.mag,
+ dblp_id = release.ext_ids.dblp,
+ doaj_id = release.ext_ids.doaj,
)
t.update(dict(
@@ -84,6 +86,7 @@ def release_to_elasticsearch(entity: ReleaseEntity, force_bool: bool = True) ->
in_ia_sim = False,
in_kbart = None,
in_jstor = False,
+ in_doaj= bool(release.ext_ids.doaj),
in_shadows = False,
))
@@ -280,6 +283,7 @@ def _rte_container_helper(container: ContainerEntity, release_year: Optional[int
if c_extra.get('doaj'):
if c_extra['doaj'].get('as_of'):
t['is_oa'] = True
+ t['in_doaj'] = True
if c_extra.get('road'):
if c_extra['road'].get('as_of'):
t['is_oa'] = True