JATS writer: add date-type to pub-date elements
This commit is contained in:
parent
2c99e0e358
commit
b5b576184c
4 changed files with 13 additions and 6 deletions
|
@ -130,7 +130,7 @@ $endif$
|
|||
</author-notes>
|
||||
$endif$
|
||||
$if(date)$
|
||||
<pub-date publication-format="electronic"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$>
|
||||
<pub-date date-type="$if(date.type)$$date.type$$else$pub$endif$" publication-format="electronic"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$>
|
||||
$if(date.day)$
|
||||
<day>$date.day$</day>
|
||||
$endif$
|
||||
|
|
13
doc/jats.md
13
doc/jats.md
|
@ -172,13 +172,13 @@ Metadata Values
|
|||
pass these components directly.
|
||||
|
||||
The publication date is recorded in the document via the
|
||||
[`<pub-date>`][elem:pub-date] element and its sub-elements. The
|
||||
[`<pub-date>`] element and its sub-elements. The
|
||||
[`publication-format`][attr:publication-format] attribute is
|
||||
always set to `electronic`.
|
||||
|
||||
`iso-8601`
|
||||
: ISO-8601 representation of the publication date. Used as the
|
||||
value of the [`pub-date`][elem:pub-date] element's
|
||||
value of the [`<pub-date>`] element's
|
||||
[`iso-8601-date`][attr:iso-8601-date] attribute.
|
||||
|
||||
This value is set automatically if pandoc can parse the
|
||||
|
@ -192,6 +192,12 @@ Metadata Values
|
|||
The values are set automatically if pandoc can parse the
|
||||
`date` value as a date.
|
||||
|
||||
`type`
|
||||
: The type of event marked by this date. The value is set as
|
||||
the [`date-type`][attr:date-type] attribute on the
|
||||
[`<pub-date>`] element and defaults to "pub" if not
|
||||
specified.
|
||||
|
||||
`article`
|
||||
: information concerning the article that identifies or describes
|
||||
it. The key-value pairs within this map are typically used
|
||||
|
@ -348,6 +354,7 @@ Required metadata values:
|
|||
|
||||
[Ringgold]: https://ringgold.com/
|
||||
[attr:content-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/content-type.html
|
||||
[attr:date-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/date-type.html
|
||||
[attr:fn-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/fn-type.html
|
||||
[attr:institution-id-type]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/institution-id-type.html
|
||||
[attr:iso-8601-date]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/attribute/iso-8601-date.html
|
||||
|
@ -380,7 +387,6 @@ Required metadata values:
|
|||
[elem:license]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/license.html
|
||||
[elem:notes]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/notes.html
|
||||
[elem:permissions]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/permissions.html
|
||||
[elem:pub-date]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/pub-date.html
|
||||
[elem:publisher-loc]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/publisher-loc.html
|
||||
[elem:publisher-name]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/publisher-name.html
|
||||
[elem:string-name]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/string-name.html
|
||||
|
@ -396,3 +402,4 @@ Required metadata values:
|
|||
[`<institution-id>`]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/institution-id.html
|
||||
[`<institution-wrap>`]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/institution-wrap.html
|
||||
[`<institution>`]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/institution.html
|
||||
[`<pub-date>`]: https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/pub-date.html
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<string-name>Anonymous</string-name>
|
||||
</contrib>
|
||||
</contrib-group>
|
||||
<pub-date publication-format="electronic" iso-8601-date="2006-07-17">
|
||||
<pub-date date-type="pub" publication-format="electronic" iso-8601-date="2006-07-17">
|
||||
<day>17</day>
|
||||
<month>7</month>
|
||||
<year>2006</year>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<string-name>Anonymous</string-name>
|
||||
</contrib>
|
||||
</contrib-group>
|
||||
<pub-date publication-format="electronic" iso-8601-date="2006-07-17">
|
||||
<pub-date date-type="pub" publication-format="electronic" iso-8601-date="2006-07-17">
|
||||
<day>17</day>
|
||||
<month>7</month>
|
||||
<year>2006</year>
|
||||
|
|
Loading…
Reference in a new issue