diff --git a/data/filters/time.lua b/data/filters/time.lua index f368464..13be1f9 100644 --- a/data/filters/time.lua +++ b/data/filters/time.lua @@ -41,5 +41,8 @@ function Meta (meta) meta.submitted = format_date(meta.submitted_parts) meta.published = format_date(meta.published_parts) + + meta.copyright = meta.copyright or {} + meta.copyright.year = meta.published_parts.year return meta end diff --git a/test/expected-draft/paper.jats/paper.jats b/test/expected-draft/paper.jats/paper.jats index 6d114ce..9ff56c8 100644 --- a/test/expected-draft/paper.jats/paper.jats +++ b/test/expected-draft/paper.jats/paper.jats @@ -88,7 +88,7 @@ publishing pipeline Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC BY 4.0) -2022 +1970 The article authors Authors of papers retain copyright and release the work under diff --git a/test/expected-pub/paper.jats/paper.jats b/test/expected-pub/paper.jats/paper.jats index bf895b1..b702ce9 100644 --- a/test/expected-pub/paper.jats/paper.jats +++ b/test/expected-pub/paper.jats/paper.jats @@ -88,7 +88,7 @@ publishing pipeline Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC BY 4.0) -2022 +2020 The article authors Authors of papers retain copyright and release the work under