Skip to content

Commit

Permalink
rust: prep for possible DOI lowercase enforcement
Browse files Browse the repository at this point in the history
See also: #83

This commit is no behavior change, just leaving a note to self.
  • Loading branch information
bnewbold committed Oct 13, 2021
1 parent 11fdff3 commit 54cb27a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/src/entity_crud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 54cb27a

Please sign in to comment.