summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index 645142de..a8e0227b 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -43,9 +43,11 @@ def release_to_elasticsearch(entity, force_bool=True):
state = release.state,
revision = release.revision,
title = release.title,
+ subtitle = release.subtitle,
original_title = release.original_title,
release_type = release.release_type,
- release_status = release.release_stage,
+ release_stage = release.release_stage,
+ withdrawn_status = release.withdrawn_status,
language = release.language,
license = release.license_slug,
doi = release.ext_ids.doi,
@@ -56,7 +58,8 @@ def release_to_elasticsearch(entity, force_bool=True):
core_id = release.ext_ids.core,
arxiv_id = release.ext_ids.arxiv,
jstor_id = release.ext_ids.jstor,
- # TODO: mag, ark
+ ark_id = release.ext_ids.ark,
+ mag_id = release.ext_ids.mag,
)
is_oa = None