git.iko.soy/typeable/pandoc
on master help sign in
JATS writer: replace attribute "pub-type" with "publication-format".

The former attribute is deprecated.

commit2c99e0e3588d5645e901346572e1b04e8fb4fa3e authorAlbert Krewinkel <albert@zeitkraut.de> dateMon 15 Feb 2021, 13:15 (6 years ago) parent8621ed6
4 files changed+12−9
data/templates/article.jats_publishing+3−3 doc/jats.md+7−4 test/writer.jats_archiving+1−1 test/writer.jats_publishing+1−1
data/templates/article.jats_publishing+3−3
@@ -30,10 +30,10 @@ $if(journal.abbrev-title)$
3030$endif$
3131</journal-title-group>
3232$if(journal.pissn)$
33−<issn pub-type="ppub">$journal.pissn$</issn>
33+<issn publication-format="print">$journal.pissn$</issn>
3434$endif$
3535$if(journal.eissn)$
36−<issn pub-type="epub">$journal.eissn$</issn>
36+<issn publication-format="electronic">$journal.eissn$</issn>
3737$endif$
3838$-- At least one issn element is required; use empty issn as fallback
3939$if(journal.pissn)$
@@ -130,7 +130,7 @@ $endif$
130130</author-notes>
131131$endif$
132132$if(date)$
133−<pub-date pub-type="epub"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$>
133+<pub-date publication-format="electronic"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$>
134134$if(date.day)$
135135<day>$date.day$</day>
136136$endif$
doc/jats.md+7−4
@@ -173,7 +173,8 @@ Metadata Values
173173
174174 The publication date is recorded in the document via the
175175 [`<pub-date>`][elem:pub-date] element and its sub-elements. The
176− [`pub-type`][attr:pub-type] attribute is always set to `epub`.
176+ [`publication-format`][attr:publication-format] attribute is
177+ always set to `electronic`.
177178
178179 `iso-8601`
179180 : ISO-8601 representation of the publication date. Used as the
@@ -300,12 +301,14 @@ Metadata Values
300301 `pissn`
301302 : ISSN identifier of the publication's print version. Used as
302303 content of the [`<issn>`][elem:issn] element with the
303− [`pub-type`][attr:pub-type] attribute set to `ppub`.
304+ [`publication-format`][attr:publication-format] attribute
305+ set to `print`.
304306
305307 `eissn`
306308 : ISSN identifier of the publication's electronic version.
307309 Used as content of the [`<issn>`][elem:issn] element with
308− the [`pub-type`][attr:pub-type] attribute set to `epub`.
310+ the [`publication-format`][attr:publication-format]
311+ attribute set to `electronic`.
309312
310313 `publisher-name`
311314 : name of the publishing entity (person, company, or other).
@@ -352,7 +355,7 @@ Required metadata values:
352355[attr:kwd-group-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/kwd-group-type.html
353356[attr:license-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/license-type.html
354357[attr:pub-id-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/pub-id-type.html
355−[attr:pub-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/pub-type.html
358+[attr:publication-format]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/publication-format.html
356359[attr:ref-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/ref-type.html
357360[attr:rid]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/rid.html
358361[attr:subj-group-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/subj-group-type.html
test/writer.jats_archiving+1−1
@@ -24,7 +24,7 @@
2424<string-name>Anonymous</string-name>
2525</contrib>
2626</contrib-group>
27−<pub-date pub-type="epub" iso-8601-date="2006-07-17">
27+<pub-date publication-format="electronic" iso-8601-date="2006-07-17">
2828<day>17</day>
2929<month>7</month>
3030<year>2006</year>
test/writer.jats_publishing+1−1
@@ -24,7 +24,7 @@
2424<string-name>Anonymous</string-name>
2525</contrib>
2626</contrib-group>
27−<pub-date pub-type="epub" iso-8601-date="2006-07-17">
27+<pub-date publication-format="electronic" iso-8601-date="2006-07-17">
2828<day>17</day>
2929<month>7</month>
3030<year>2006</year>