summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat-cli/src/entities.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/fatcat-cli/src/entities.rs b/fatcat-cli/src/entities.rs
index 14c9c29..a2a571f 100644
--- a/fatcat-cli/src/entities.rs
+++ b/fatcat-cli/src/entities.rs
@@ -247,6 +247,12 @@ impl ApiModelMutate for models::ReleaseEntity {
("issue", val) => {
self.issue = val;
}
+ ("pages", val) => {
+ self.pages = val;
+ }
+ ("version", val) => {
+ self.version = val;
+ }
("number", val) => {
self.number = val;
}
@@ -256,6 +262,20 @@ impl ApiModelMutate for models::ReleaseEntity {
("language", val) => {
self.language = val;
}
+ // extids
+ ("doi", val) => self.ext_ids.doi = val,
+ ("pmid", val) => self.ext_ids.pmid = val,
+ ("pmcid", val) => self.ext_ids.pmcid = val,
+ ("wikidata_qid", val) => self.ext_ids.wikidata_qid = val,
+ ("arxiv", val) => self.ext_ids.arxiv = val,
+ ("isbn13", val) => self.ext_ids.isbn13 = val,
+ ("jstor", val) => self.ext_ids.jstor = val,
+ ("ark", val) => self.ext_ids.ark = val,
+ ("doaj", val) => self.ext_ids.doaj = val,
+ ("dblp", val) => self.ext_ids.dblp = val,
+ ("oai", val) => self.ext_ids.oai = val,
+ ("hdl", val) => self.ext_ids.hdl = val,
+
// None-only fields, for now
("release_date", None) => {
self.release_date = None;
@@ -292,6 +312,9 @@ impl ApiModelMutate for models::ContainerEntity {
("issnp", val) => {
self.issnp = val;
}
+ ("wikidata_qid", val) => {
+ self.wikidata_qid = val;
+ }
("publication_status", val) => {
self.publication_status = val;
}