Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Project MUSE ONIX subject output logic #299

Merged
merged 7 commits into from
Oct 20, 2021
8 changes: 4 additions & 4 deletions thoth-app/src/models/work/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,25 +364,25 @@ impl DisplayWork for WorkWithRelations {
href={self.onix_projectmuse_endpoint()}
class="dropdown-item"
>
{"ONIX (Project MUSE)"}
{"ONIX 3.0 (Project MUSE)"}
</a>
<a
href={self.onix_oapen_endpoint()}
class="dropdown-item"
>
{"ONIX (OAPEN)"}
{"ONIX 3.0 (OAPEN/DOAB)"}
</a>
<a
href={self.onix_jstor_endpoint()}
class="dropdown-item"
>
{"ONIX (JSTOR)"}
{"ONIX 3.0 (JSTOR)"}
</a>
<a
href={self.onix_ebsco_host_endpoint()}
class="dropdown-item"
>
{"ONIX (EBSCO Host)"}
{"ONIX 2.1 (EBSCO Host)"}
</a>
<a
href={self.csv_endpoint()}
Expand Down
27 changes: 22 additions & 5 deletions thoth-export-server/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ lazy_static! {
id: "onix_3.0::project_muse",
name: "Project MUSE ONIX 3.0",
format: concat!(env!("THOTH_EXPORT_API"), "/formats/onix_3.0"),
accepted_by: vec![concat!(env!("THOTH_EXPORT_API"), "/platforms/project_muse"),],
accepted_by: vec![
concat!(env!("THOTH_EXPORT_API"), "/platforms/project_muse"),
concat!(env!("THOTH_EXPORT_API"), "/platforms/jstor"),
],
},
Specification {
id: "onix_3.0::oapen",
name: "OAPEN ONIX 3.0",
format: concat!(env!("THOTH_EXPORT_API"), "/formats/onix_3.0"),
accepted_by: vec![concat!(env!("THOTH_EXPORT_API"), "/platforms/oapen"),],
accepted_by: vec![
concat!(env!("THOTH_EXPORT_API"), "/platforms/oapen"),
concat!(env!("THOTH_EXPORT_API"), "/platforms/doab"),
],
},
Specification {
id: "onix_3.0::jstor",
Expand Down Expand Up @@ -76,13 +82,24 @@ lazy_static! {
),],
},
Platform {
id: "jstor",
name: "JSTOR",
id: "doab",
name: "DOAB",
accepts: vec![concat!(
env!("THOTH_EXPORT_API"),
"/specifications/onix_3.0::jstor"
"/specifications/onix_3.0::oapen"
),],
},
Platform {
id: "jstor",
name: "JSTOR",
accepts: vec![
concat!(env!("THOTH_EXPORT_API"), "/specifications/onix_3.0::jstor"),
concat!(
env!("THOTH_EXPORT_API"),
"/specifications/onix_3.0::project_muse"
),
],
},
Platform {
id: "ebsco_host",
name: "EBSCO Host",
Expand Down
Loading