JATS template: allow multiple licenses to be given.

The `license` metadata field can now be used to set the license of an
article; a list can be used to add multiple license statements.
This commit is contained in:
Albert Krewinkel 2022-04-04 10:02:07 +02:00
parent 836c3c5241
commit dbc80c1a6b
No known key found for this signature in database
GPG key ID: 388DC0B21F631124
3 changed files with 36 additions and 3 deletions

View file

@ -188,6 +188,11 @@ $if(copyright.text)$
<license-p>$copyright.text$</license-p>
</license>
$endif$
$for(license)$
<license$if(it.type)$ license-type="${it.type}"$endif$$if(it.link)$ xlink:href="${it.link}"$endif$>
<license-p>$if(it.text)$${it.text}$else$${it}$endif$</license-p>
</license>
$endfor$
</permissions>
$endif$
$if(abstract)$

View file

@ -65,6 +65,11 @@ $if(copyright.text)$
<license-p>$copyright.text$</license-p>
</license>
$endif$
$for(license)$
<license$if(it.type)$ license-type="${it.type}"$endif$$if(it.link)$ xlink:href="${it.link}"$endif$>
<license-p>$if(it.text)$${it.text}$else$${it}$endif$</license-p>
</license>
$endfor$
</permissions>
$endif$
<abstract>

View file

@ -152,11 +152,13 @@ Metadata Values
(if the latter is present).
`copyright`
: Licensing and copyright information. This information is
: Copyright and licensing information. This information is
rendered via the [`<permissions>`][elem:permissions] element.
The variables `type`, `link`, and `text` should always be used
together.
It is recommended to use the `license` field (described below)
for licensing information. If licensing information is
included below `copyright`, then the variables `type`, `link`,
and `text` should always be used together.
`statement`
: copyright notice or statement; used as content of the
@ -348,6 +350,27 @@ Metadata Values
: place of publication. Used as the content of the
[`<publisher-loc>`][elem:publisher-loc] element.
`license`
: Article licensing information. Each item of this field is
rendered as a `<license>` element within the
[`<permissions>`][elem:permissions] element.
Item content should be either a single paragraph, or a map
with the fields listed below.
`text`
: inline text describing a license under which the text is
published; included via the
[`<license-p>`][elem:copyright-holder] element.
`type`
: type of the license; used as value of the
[`license-type`][attr:license-type] attribute.
`link`
: external link describing the license; used as value of a
`xlink:href` attribute in the `<license>` element.
`notes`
: Additional notes concerning the whole article. Added to the
article's frontmatter via the [`<notes>`][elem:notes] element.