aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/elasticsearch/release_schema.json1
-rw-r--r--guide/src/entity_release.md10
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py1
3 files changed, 6 insertions, 6 deletions
diff --git a/extra/elasticsearch/release_schema.json b/extra/elasticsearch/release_schema.json
index 57ff4eb9..85026060 100644
--- a/extra/elasticsearch/release_schema.json
+++ b/extra/elasticsearch/release_schema.json
@@ -78,6 +78,7 @@
"in_ia": { "type": "boolean" },
"in_ia_sim": { "type": "boolean" },
"in_shadows": { "type": "boolean" },
+ "is_superceded": { "type": "boolean" },
"author": { "type": "alias", "path": "contrib_names" },
"journal": { "type": "alias", "path": "container_name" },
diff --git a/guide/src/entity_release.md b/guide/src/entity_release.md
index d9943d2a..872708a2 100644
--- a/guide/src/entity_release.md
+++ b/guide/src/entity_release.md
@@ -163,15 +163,13 @@ complete or correct in more obscure cases.
- `aliases` (array of strings) for additional titles this release might be
known by
- `container_name` (string) if not matched to a container entity
-- `subtitle` (string)
- `group-title` (string) for releases within an collection/group
- `translation_of` (release identifier) if this release is a translation of
another (usually under the same work)
-- `withdrawn_date` (string, ISO date format): if this release has been
- retracted (post-publication) or withdrawn (pre- or post-publication), this is
- the datetime of that event. Retractions also result in a `retraction` release
- under the same `work` entity. This is intended to migrate from "extra" to a
- full release entity field.
+- `superceded` (boolean) if there is another release under the same work that
+ should be referenced/indicated instead. Intended as a temporary hint until
+ proper work-based search is implemented. As an example use, all arxiv release
+ versions except for the most recent get this set.
#### `release_type` Vocabulary
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index f287fe10..8589d364 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -292,6 +292,7 @@ def container_to_elasticsearch(entity, force_bool=True):
if extra.get('ia'):
if extra['ia'].get('sim'):
any_ia_sim = True
+ t['is_superceded'] = bool(extra.get('superceded'))
t['in_doaj'] = bool(in_doaj)
t['in_road'] = bool(in_road)