From 1e2b4f19d45d28b374697bf12d9f95e17e3cb726 Mon Sep 17 00:00:00 2001 From: Brendan OConnell Date: Tue, 5 Mar 2024 09:41:19 +0100 Subject: [PATCH 1/4] Added seconds to timestamp --- thoth-export-server/src/xml/doideposit_crossref.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thoth-export-server/src/xml/doideposit_crossref.rs b/thoth-export-server/src/xml/doideposit_crossref.rs index b8c77db9..e26f536e 100644 --- a/thoth-export-server/src/xml/doideposit_crossref.rs +++ b/thoth-export-server/src/xml/doideposit_crossref.rs @@ -42,7 +42,7 @@ impl XmlSpecification for DoiDepositCrossref { "Not enough data".to_string(), )), [work] => { - let timestamp = Utc::now().format("%Y%m%d%H%M").to_string(); + let timestamp = Utc::now().format("%Y%m%d%H%M%S").to_string(); let work_id = format!("{}_{}", work.work_id, timestamp); write_full_element_block("doi_batch", Some(CROSSREF_NS.to_vec()), w, |w| { From 2692c8f5149db1cb58fd77cfd1e03e56689a0cb9 Mon Sep 17 00:00:00 2001 From: Brendan OConnell Date: Tue, 5 Mar 2024 09:47:39 +0100 Subject: [PATCH 2/4] Updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2da061fa..f645ec2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [499](https://github.com/thoth-pub/thoth/issues/499) - Default main\_contribution to true ### Fixed + - [573](https://github.com/thoth-pub/thoth/pull/573) - Add seconds to timestamp for Crossref metadata output - [564](https://github.com/thoth-pub/thoth/issues/564) - Fix error in BibTeX not outputting editors in work types other than edited volume - [447](https://github.com/thoth-pub/thoth/issues/447) - Prevents Google Books Onix3 format output from Export API if Thoth record doesn't contain at least one BIC, BISAC or LCC subject code - [404](https://github.com/thoth-pub/thoth/issues/404) - Prevents JSTOR Onix3 format output from Export API if Thoth record doesn't contain at least one BISAC subject code From 579465fdb9aac3f5200b4a1b14ec3ea0f385db97 Mon Sep 17 00:00:00 2001 From: Brendan OConnell Date: Tue, 5 Mar 2024 11:01:21 +0100 Subject: [PATCH 3/4] Fixed changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f645ec2f..cc6dfe13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed + - [573](https://github.com/thoth-pub/thoth/pull/573) - Add seconds to timestamp for Crossref metadata output ## [[0.11.17]](https://github.com/thoth-pub/thoth/releases/tag/v0.11.17) - 2024-02-29 ### Changed @@ -23,7 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [499](https://github.com/thoth-pub/thoth/issues/499) - Default main\_contribution to true ### Fixed - - [573](https://github.com/thoth-pub/thoth/pull/573) - Add seconds to timestamp for Crossref metadata output - [564](https://github.com/thoth-pub/thoth/issues/564) - Fix error in BibTeX not outputting editors in work types other than edited volume - [447](https://github.com/thoth-pub/thoth/issues/447) - Prevents Google Books Onix3 format output from Export API if Thoth record doesn't contain at least one BIC, BISAC or LCC subject code - [404](https://github.com/thoth-pub/thoth/issues/404) - Prevents JSTOR Onix3 format output from Export API if Thoth record doesn't contain at least one BISAC subject code From b448af87b449224a0bbdc64803be233e55461a64 Mon Sep 17 00:00:00 2001 From: Brendan OConnell Date: Tue, 5 Mar 2024 12:33:18 +0100 Subject: [PATCH 4/4] Fixed changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc6dfe13..d277070e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Fixed - - [573](https://github.com/thoth-pub/thoth/pull/573) - Add seconds to timestamp for Crossref metadata output + - [475](https://github.com/thoth-pub/thoth/issues/475) - Add seconds to timestamp for Crossref metadata output ## [[0.11.17]](https://github.com/thoth-pub/thoth/releases/tag/v0.11.17) - 2024-02-29 ### Changed