diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-02-15 13:15:14 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-02-15 13:15:14 +0100 |
commit | 2c99e0e3588d5645e901346572e1b04e8fb4fa3e (patch) | |
tree | a14f91de2c374bbfa5df4b9374efaed130394e09 | |
parent | 8621ed600af6bdc984fe2095dac400887c3cda78 (diff) | |
download | pandoc-2c99e0e3588d5645e901346572e1b04e8fb4fa3e.tar.gz |
JATS writer: replace attribute "pub-type" with "publication-format".
The former attribute is deprecated.
-rw-r--r-- | data/templates/article.jats_publishing | 6 | ||||
-rw-r--r-- | doc/jats.md | 11 | ||||
-rw-r--r-- | test/writer.jats_archiving | 2 | ||||
-rw-r--r-- | test/writer.jats_publishing | 2 |
4 files changed, 12 insertions, 9 deletions
diff --git a/data/templates/article.jats_publishing b/data/templates/article.jats_publishing index 15d2e3b08..3a3a8f8cf 100644 --- a/data/templates/article.jats_publishing +++ b/data/templates/article.jats_publishing @@ -30,10 +30,10 @@ $if(journal.abbrev-title)$ $endif$ </journal-title-group> $if(journal.pissn)$ -<issn pub-type="ppub">$journal.pissn$</issn> +<issn publication-format="print">$journal.pissn$</issn> $endif$ $if(journal.eissn)$ -<issn pub-type="epub">$journal.eissn$</issn> +<issn publication-format="electronic">$journal.eissn$</issn> $endif$ $-- At least one issn element is required; use empty issn as fallback $if(journal.pissn)$ @@ -130,7 +130,7 @@ $endif$ </author-notes> $endif$ $if(date)$ -<pub-date pub-type="epub"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$> +<pub-date publication-format="electronic"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$> $if(date.day)$ <day>$date.day$</day> $endif$ diff --git a/doc/jats.md b/doc/jats.md index 0faea8b06..0e717d0d8 100644 --- a/doc/jats.md +++ b/doc/jats.md @@ -173,7 +173,8 @@ Metadata Values The publication date is recorded in the document via the [`<pub-date>`][elem:pub-date] element and its sub-elements. The - [`pub-type`][attr:pub-type] attribute is always set to `epub`. + [`publication-format`][attr:publication-format] attribute is + always set to `electronic`. `iso-8601` : ISO-8601 representation of the publication date. Used as the @@ -300,12 +301,14 @@ Metadata Values `pissn` : ISSN identifier of the publication's print version. Used as content of the [`<issn>`][elem:issn] element with the - [`pub-type`][attr:pub-type] attribute set to `ppub`. + [`publication-format`][attr:publication-format] attribute + set to `print`. `eissn` : ISSN identifier of the publication's electronic version. Used as content of the [`<issn>`][elem:issn] element with - the [`pub-type`][attr:pub-type] attribute set to `epub`. + the [`publication-format`][attr:publication-format] + attribute set to `electronic`. `publisher-name` : name of the publishing entity (person, company, or other). @@ -352,7 +355,7 @@ Required metadata values: [attr:kwd-group-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/kwd-group-type.html [attr:license-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/license-type.html [attr:pub-id-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/pub-id-type.html -[attr:pub-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/pub-type.html +[attr:publication-format]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/publication-format.html [attr:ref-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/ref-type.html [attr:rid]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/rid.html [attr:subj-group-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/subj-group-type.html diff --git a/test/writer.jats_archiving b/test/writer.jats_archiving index 2d06c5cab..941f5e87d 100644 --- a/test/writer.jats_archiving +++ b/test/writer.jats_archiving @@ -24,7 +24,7 @@ <string-name>Anonymous</string-name> </contrib> </contrib-group> -<pub-date pub-type="epub" iso-8601-date="2006-07-17"> +<pub-date publication-format="electronic" iso-8601-date="2006-07-17"> <day>17</day> <month>7</month> <year>2006</year> diff --git a/test/writer.jats_publishing b/test/writer.jats_publishing index 915471576..f7d4a4720 100644 --- a/test/writer.jats_publishing +++ b/test/writer.jats_publishing @@ -24,7 +24,7 @@ <string-name>Anonymous</string-name> </contrib> </contrib-group> -<pub-date pub-type="epub" iso-8601-date="2006-07-17"> +<pub-date publication-format="electronic" iso-8601-date="2006-07-17"> <day>17</day> <month>7</month> <year>2006</year> |