Skip to content

Commit 77356c3

Browse files
committed
Add JATS expectation
1 parent 0a12567 commit 77356c3

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

data/defaults/jats.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ filters:
1818
# do it here for that reason.
1919
type: lua
2020
path: orcid-uri.lua
21+
22+
- type: lua
23+
path: prepare-credit.lua

test/expected-draft/paper.jats/paper.jats

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ publishing pipeline</article-title>
2828
<surname>Krewinkel</surname>
2929
<given-names>Albert</given-names>
3030
</name>
31+
<role vocab="credit" degree-contribution="Equal"
32+
vocab-identifier="https://credit.niso.org/"
33+
vocab-term-identifier="https://credit.niso.org/contributor-roles/software/"
34+
vocab-term="Software"
35+
>Software</role>
36+
<role vocab="credit
37+
vocab-identifier="https://credit.niso.org/"
38+
vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/"
39+
vocab-term="Methodology"
40+
>Methodology</role>
3141
<email>albert@zeitkraut.de</email>
3242
<xref ref-type="aff" rid="aff-1"/>
3343
<xref ref-type="aff" rid="aff-2"/>
@@ -40,6 +50,11 @@ publishing pipeline</article-title>
4050
<surname>Bazán</surname>
4151
<given-names>Juanjo</given-names>
4252
</name>
53+
<role vocab="credit" degree-contribution="Equal"
54+
vocab-identifier="https://credit.niso.org/"
55+
vocab-term-identifier="https://credit.niso.org/contributor-roles/software/"
56+
vocab-term="Software"
57+
>Software</role>
4358
<xref ref-type="aff" rid="aff-1"/>
4459
</contrib>
4560
<contrib contrib-type="author" equal-contrib="yes">
@@ -48,6 +63,16 @@ publishing pipeline</article-title>
4863
<surname>Smith</surname>
4964
<given-names>Arfon M.</given-names>
5065
</name>
66+
<role vocab="credit" degree-contribution="Equal"
67+
vocab-identifier="https://credit.niso.org/"
68+
vocab-term-identifier="https://credit.niso.org/contributor-roles/software/"
69+
vocab-term="Software"
70+
>Software</role>
71+
<role vocab="credit" degree-contribution="Lead"
72+
vocab-identifier="https://credit.niso.org/"
73+
vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/"
74+
vocab-term="Supervision"
75+
>Supervision</role>
5176
<xref ref-type="aff" rid="aff-1"/>
5277
<xref ref-type="aff" rid="aff-3"/>
5378
</contrib>

test/expected-pub/paper.jats/paper.jats

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ publishing pipeline</article-title>
2828
<surname>Krewinkel</surname>
2929
<given-names>Albert</given-names>
3030
</name>
31+
<role vocab="credit" degree-contribution="Equal"
32+
vocab-identifier="https://credit.niso.org/"
33+
vocab-term-identifier="https://credit.niso.org/contributor-roles/software/"
34+
vocab-term="Software"
35+
>Software</role>
36+
<role vocab="credit
37+
vocab-identifier="https://credit.niso.org/"
38+
vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/"
39+
vocab-term="Methodology"
40+
>Methodology</role>
3141
<email>albert@zeitkraut.de</email>
3242
<xref ref-type="aff" rid="aff-1"/>
3343
<xref ref-type="aff" rid="aff-2"/>
@@ -40,6 +50,11 @@ publishing pipeline</article-title>
4050
<surname>Bazán</surname>
4151
<given-names>Juanjo</given-names>
4252
</name>
53+
<role vocab="credit" degree-contribution="Equal"
54+
vocab-identifier="https://credit.niso.org/"
55+
vocab-term-identifier="https://credit.niso.org/contributor-roles/software/"
56+
vocab-term="Software"
57+
>Software</role>
4358
<xref ref-type="aff" rid="aff-1"/>
4459
</contrib>
4560
<contrib contrib-type="author" equal-contrib="yes">
@@ -48,6 +63,16 @@ publishing pipeline</article-title>
4863
<surname>Smith</surname>
4964
<given-names>Arfon M.</given-names>
5065
</name>
66+
<role vocab="credit" degree-contribution="Equal"
67+
vocab-identifier="https://credit.niso.org/"
68+
vocab-term-identifier="https://credit.niso.org/contributor-roles/software/"
69+
vocab-term="Software"
70+
>Software</role>
71+
<role vocab="credit" degree-contribution="Lead"
72+
vocab-identifier="https://credit.niso.org/"
73+
vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/"
74+
vocab-term="Supervision"
75+
>Supervision</role>
5176
<xref ref-type="aff" rid="aff-1"/>
5277
<xref ref-type="aff" rid="aff-3"/>
5378
</contrib>

0 commit comments

Comments
 (0)