Skip to content

Commit

Permalink
Merge branch 'release/v0.11.18'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Mar 7, 2024
2 parents f570a6a + 45bd4ab commit 5b0b0b7
Show file tree
Hide file tree
Showing 31 changed files with 3,566 additions and 127 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[0.11.18]](https://github.com/thoth-pub/thoth/releases/tag/v0.11.18) - 2024-03-07
### Added
- [441](https://github.com/thoth-pub/thoth/issues/441) - Implement ONIX 3.0 "Thoth" specification (i.e. complete record reflecting full data model)
- [401](https://github.com/thoth-pub/thoth/issues/401) - Add BDS Live to list of supported platforms for JSTOR ONIX output

### Fixed
- [475](https://github.com/thoth-pub/thoth/issues/475) - Add seconds to timestamp for Crossref metadata output
- [571](https://github.com/thoth-pub/thoth/issues/571) - Fix overlapping URL text for Locations in Thoth Admin panel on website in Safari and Chromium browsers

### Changed
- [578](https://github.com/thoth-pub/thoth/pull/578) - Upgrade `actix-identity` to v0.7.1
- [578](https://github.com/thoth-pub/thoth/pull/578) - Upgrade `actix-session` to v0.9.0

### Security
- [572](https://github.com/thoth-pub/thoth/pull/572) - Upgrade `mio` to v0.8.11

## [[0.11.17]](https://github.com/thoth-pub/thoth/releases/tag/v0.11.17) - 2024-02-29
### Changed
- [568](https://github.com/thoth-pub/thoth/issues/568) - Allow building `thoth-app` directly from cargo, using a build script in `thoth-app-server`
Expand Down
55 changes: 15 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth"
version = "0.11.17"
version = "0.11.18"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -16,11 +16,11 @@ maintenance = { status = "actively-developed" }
members = ["thoth-api", "thoth-api-server", "thoth-app", "thoth-app-server", "thoth-client", "thoth-errors", "thoth-export-server"]

[dependencies]
thoth-api = { version = "0.11.17", path = "thoth-api", features = ["backend"] }
thoth-api-server = { version = "0.11.17", path = "thoth-api-server" }
thoth-app-server = { version = "0.11.17", path = "thoth-app-server" }
thoth-errors = { version = "0.11.17", path = "thoth-errors" }
thoth-export-server = { version = "0.11.17", path = "thoth-export-server" }
thoth-api = { version = "0.11.18", path = "thoth-api", features = ["backend"] }
thoth-api-server = { version = "0.11.18", path = "thoth-api-server" }
thoth-app-server = { version = "0.11.18", path = "thoth-app-server" }
thoth-errors = { version = "0.11.18", path = "thoth-errors" }
thoth-export-server = { version = "0.11.18", path = "thoth-export-server" }
clap = { version = "4.4.7", features = ["cargo", "env"] }
dialoguer = { version = "0.11.0", features = ["password"] }
dotenv = "0.15.0"
Expand Down
10 changes: 5 additions & 5 deletions thoth-api-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-api-server"
version = "0.11.17"
version = "0.11.18"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -9,12 +9,12 @@ repository = "https://github.com/thoth-pub/thoth"
readme = "README.md"

[dependencies]
thoth-api = { version = "0.11.17", path = "../thoth-api", features = ["backend"] }
thoth-errors = { version = "0.11.17", path = "../thoth-errors" }
thoth-api = { version = "0.11.18", path = "../thoth-api", features = ["backend"] }
thoth-errors = { version = "0.11.18", path = "../thoth-errors" }
actix-web = "4.5.1"
actix-cors = "0.7.0"
actix-identity = "0.6.0"
actix-session = { version = "0.8.0", features = ["cookie-session"] }
actix-identity = "0.7.1"
actix-session = { version = "0.9.0", features = ["cookie-session"] }
env_logger = "0.11.2"
juniper = "0.15.12"
serde = { version = "1.0", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions thoth-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-api"
version = "0.11.17"
version = "0.11.18"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -16,7 +16,7 @@ maintenance = { status = "actively-developed" }
backend = ["diesel", "diesel-derive-enum", "diesel_migrations", "futures", "actix-web", "jsonwebtoken"]

[dependencies]
thoth-errors = { version = "0.11.17", path = "../thoth-errors" }
thoth-errors = { version = "0.11.18", path = "../thoth-errors" }
actix-web = { version = "4.5.1", optional = true }
argon2rs = "0.2.5"
isbn2 = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion thoth-app-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-app-server"
version = "0.11.17"
version = "0.11.18"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions thoth-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-app"
version = "0.11.17"
version = "0.11.18"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down Expand Up @@ -36,8 +36,8 @@ uuid = { version = "0.8.2", features = ["serde", "v4"] }
# `getrandom` is a dependency of `uuid`, we need to explicitly import and include the `js` feature to enable wasm
# https://docs.rs/getrandom/latest/getrandom/#webassembly-support
getrandom = { version = "0.2", features = ["js"] }
thoth-api = { version = "0.11.17", path = "../thoth-api" }
thoth-errors = { version = "0.11.17", path = "../thoth-errors" }
thoth-api = { version = "0.11.18", path = "../thoth-api" }
thoth-errors = { version = "0.11.18", path = "../thoth-errors" }

[build-dependencies]
dotenv = "0.15.0"
2 changes: 1 addition & 1 deletion thoth-app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start_url": "/?homescreen=1",
"background_color": "#ffffff",
"theme_color": "#ffdd57",
"version": "0.11.17",
"version": "0.11.18",
"icons": [
{
"src": "\/android-icon-36x36.png",
Expand Down
4 changes: 2 additions & 2 deletions thoth-app/src/component/locations_form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,13 @@ impl LocationsFormComponent {
<i class="fas fa-file-invoice-dollar" aria-hidden="true"></i>
</span>
<div class="field-body">
<div class="field" style="width: 11em;">
<div class="field" style="width: 11em; word-wrap: break-word;">
<label class="label">{ "Landing Page" }</label>
<div class="control is-expanded">
{&l.landing_page.clone().unwrap_or_default()}
</div>
</div>
<div class="field" style="width: 11em;">
<div class="field" style="width: 11em; word-wrap: break-word;">
<label class="label">{ "Full Text URL" }</label>
<div class="control is-expanded">
{&l.full_text_url.clone().unwrap_or_default()}
Expand Down
14 changes: 14 additions & 0 deletions thoth-app/src/models/work/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub trait DisplayWork {
fn marc21_thoth_endpoint(&self) -> String;
fn marc21markup_thoth_endpoint(&self) -> String;
fn marc21xml_thoth_endpoint(&self) -> String;
fn onix_thoth_endpoint(&self) -> String;
fn onix_projectmuse_endpoint(&self) -> String;
fn onix_oapen_endpoint(&self) -> String;
fn onix_jstor_endpoint(&self) -> String;
Expand Down Expand Up @@ -156,6 +157,13 @@ impl DisplayWork for WorkWithRelations {
)
}

fn onix_thoth_endpoint(&self) -> String {
format!(
"{}/specifications/onix_3.0::thoth/work/{}",
THOTH_EXPORT_API, &self.work_id
)
}

fn onix_projectmuse_endpoint(&self) -> String {
format!(
"{}/specifications/onix_3.0::project_muse/work/{}",
Expand Down Expand Up @@ -424,6 +432,12 @@ impl DisplayWork for WorkWithRelations {
</div>
<div class="dropdown-menu" id="dropdown-menu" role="menu">
<div class="dropdown-content">
<a
href={self.onix_thoth_endpoint()}
class="dropdown-item"
>
{"ONIX 3.0 (Thoth)"}
</a>
<a
href={self.onix_projectmuse_endpoint()}
class="dropdown-item"
Expand Down
8 changes: 4 additions & 4 deletions thoth-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-client"
version = "0.11.17"
version = "0.11.18"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -10,8 +10,8 @@ readme = "README.md"
build = "build.rs"

[dependencies]
thoth-api = {version = "0.11.17", path = "../thoth-api" }
thoth-errors = {version = "0.11.17", path = "../thoth-errors" }
thoth-api = {version = "0.11.18", path = "../thoth-api" }
thoth-errors = {version = "0.11.18", path = "../thoth-errors" }
graphql_client = "0.13.0"
chrono = { version = "0.4.31", features = ["serde"] }
reqwest = { version = "0.11", features = ["json"] }
Expand All @@ -22,4 +22,4 @@ serde_json = "1.0"
uuid = { version = "0.8.2", features = ["serde"] }

[build-dependencies]
thoth-api = { version = "0.11.17", path = "../thoth-api", features = ["backend"] }
thoth-api = { version = "0.11.18", path = "../thoth-api", features = ["backend"] }
1 change: 1 addition & 0 deletions thoth-client/assets/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ fragment Work on Work {
place
firstPage
lastPage
pageCount
pageInterval
landingPage
imprint {
Expand Down
12 changes: 12 additions & 0 deletions thoth-client/src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ impl fmt::Display for work_query::LanguageCode {
}
}

impl fmt::Display for work_query::CurrencyCode {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{self:?}")
}
}

impl fmt::Display for work_query::SubjectType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{self:?}")
Expand All @@ -38,6 +44,12 @@ impl fmt::Display for work_query::PublicationType {
}
}

impl fmt::Display for work_query::LocationPlatform {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{self:?}")
}
}

#[derive(GraphQLQuery)]
#[graphql(
schema_path = "assets/schema.graphql",
Expand Down
Loading

0 comments on commit 5b0b0b7

Please sign in to comment.