Skip to content

Commit

Permalink
Fixed formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-oconnell committed Mar 29, 2024
1 parent 23e16f8 commit 23325e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions thoth-api/src/graphql/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3040,10 +3040,13 @@ impl Imprint {
self.imprint_url.as_ref()
}

#[graphql(description = "DOI of the imprint's Crossmark policy page, if publisher participates. Crossmark 'gives readers quick and easy access to the current status of an item of content, including any corrections, retractions, or updates'. More: https://www.crossref.org/services/crossmark/")]
#[graphql(
description = "DOI of the imprint's Crossmark policy page, if publisher participates. Crossmark 'gives readers quick and easy access to the
current status of an item of content, including any corrections, retractions, or updates'. More: https://www.crossref.org/services/crossmark/"
)]
pub fn crossmark_doi(&self) -> Option<&Doi> {
self.crossmark_doi.as_ref()
}
self.crossmark_doi.as_ref()
}

pub fn created_at(&self) -> Timestamp {
self.created_at.clone()
Expand Down
6 changes: 3 additions & 3 deletions thoth-api/src/model/imprint/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::model::Doi;
use serde::Deserialize;
use serde::Serialize;
use strum::Display;
use strum::EnumString;
use uuid::Uuid;
use crate::model::Doi;

use crate::graphql::utils::Direction;
use crate::model::publisher::Publisher;
Expand Down Expand Up @@ -146,8 +146,8 @@ fn test_imprintfield_fromstr() {
ImprintField::ImprintUrl
);
assert_eq!(
ImprintField::from_str("CrossmarkDOI").unwrap(),
ImprintField::CrossmarkDoi
ImprintField::from_str("CrossmarkDOI").unwrap(),
ImprintField::CrossmarkDoi
);
assert_eq!(
ImprintField::from_str("CreatedAt").unwrap(),
Expand Down
1 change: 1 addition & 0 deletions thoth-export-server/src/xml/onix3_thoth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,7 @@ mod tests {
imprint: WorkImprint {
imprint_name: "OA Editions Imprint".to_string(),
imprint_url: Some("https://imprint.oa".to_string()),
crossmark_doi: None,
publisher: WorkImprintPublisher {
publisher_name: "OA Editions".to_string(),
publisher_shortname: None,
Expand Down

0 comments on commit 23325e8

Please sign in to comment.