Skip to content

Commit

Permalink
Add a new APICURON term "provided_dataset"
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Oct 20, 2023
1 parent 9d683c7 commit cb8d08b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pombase/web/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1519,10 +1519,10 @@ impl WebData {

let timestamp = flex_fmt!("{}T{}.000Z", approved_date, approved_time);

let mut add_record = |annotation_curator: &AnnotationCurator| {
let mut add_record = |annotation_curator: &AnnotationCurator, activity_term: FlexStr| {
if let Some(ref curator_orcid) = annotation_curator.orcid {
curation_reports.push(ApicuronReport {
activity_term: flex_str!("publication_curated"),
activity_term,
curator_orcid: curator_orcid.clone(),
timestamp: timestamp.clone(),
entity_uri: flex_fmt!("{}/reference/{}", config.base_url, ref_details.uniquename),
Expand All @@ -1531,10 +1531,10 @@ impl WebData {
};

for annotation_curator in &ref_details.annotation_curators {
add_record(&annotation_curator);
add_record(&annotation_curator, flex_str!("publication_curated"));
}
for annotation_curator in &ref_details.annotation_file_curators {
add_record(&annotation_curator);
add_record(&annotation_curator, flex_str!("provided_dataset"));
}
}

Expand Down

0 comments on commit cb8d08b

Please sign in to comment.