diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-06-30 18:39:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-06-30 18:39:48 -0700 |
commit | 8a34f3747a6881eab66775388a9b6d7878c00a6c (patch) | |
tree | f5e3a97b3a4e7ca2a9d59f56e51e82abb49500a3 /fatcat_scholar | |
parent | e9b9abb51d03f8d8dc0b324a5c97e3758e0d2ec9 (diff) | |
download | fatcat-scholar-8a34f3747a6881eab66775388a9b6d7878c00a6c.tar.gz fatcat-scholar-8a34f3747a6881eab66775388a9b6d7878c00a6c.zip |
refs: include (source) release_stage in output
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/schema.py | 1 | ||||
-rw-r--r-- | fatcat_scholar/transform.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index b8a1923..e6d0422 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -282,6 +282,7 @@ class RefStructured(BaseModel): biblio: RefBiblio release_ident: Optional[str] work_ident: Optional[str] + release_stage: Optional[str] release_year: Optional[int] index: Optional[int] key: Optional[str] diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index 409e7a2..6904770 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -639,6 +639,7 @@ def refs_from_grobid(release: ReleaseEntity, tei_dict: dict) -> List[RefStructur ), release_ident=release.ident, work_ident=release.work_id, + release_stage=release.release_stage, release_year=release.release_year, index=ref.get("index"), key=ref.get("id"), |