aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/src/entity_crud.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index cbf9592b..32b2fcef 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -2270,7 +2270,11 @@ impl EntityCrud for ReleaseEntity {
withdrawn_status: model.withdrawn_status.clone(),
withdrawn_date: model.withdrawn_date,
withdrawn_year: model.withdrawn_year,
- doi: model.ext_ids.doi.clone(),
+ doi: match model.ext_ids.doi.clone() {
+ None => None,
+ // NOTE: DOI lowercase is *not* currently being enforced here, but could be
+ Some(s) => Some(s),
+ },
pmid: model.ext_ids.pmid.clone(),
pmcid: model.ext_ids.pmcid.clone(),
wikidata_qid: model.ext_ids.wikidata_qid.clone(),