-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Here's some JATS XML that has author roles in it. It would be cool if pandoc supported this!
<article-meta>
<article-id pub-id-type="doi">10.1002/leap.1210</article-id>
…
<contrib-group>
<contrib contrib-type="author">
<contrib-id content-type="orcid">0000-0002-9298-3168</contrib-id>
<name>
<surname>Allen</surname>
<given-names>Liz</given-names>
</name>
<role vocab="credit" vocab-identifier="https://credit.niso.org/"
vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/"
vocab-term="Conceptualization">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/"
vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/"
vocab-term="Writing – original draft">Writing – original
draft</role>
</contrib>
This is the template where this would need to get handled:
pandoc/data/templates/article.jats_publishing
Lines 92 to 129 in 180d2b5
<contrib contrib-type="author"$if(author.equal-contrib)$ equal-contrib="yes"$endif$$if(author.cor-id)$ corresp="yes"$endif$> | |
$if(author.orcid)$ | |
<contrib-id contrib-id-type="orcid">$author.orcid$</contrib-id> | |
$endif$ | |
$if(author.surname)$ | |
<name> | |
<surname>$if(author.non-dropping-particle)$${author.non-dropping-particle} $endif$$author.surname$</surname> | |
<given-names>$author.given-names$$if(author.dropping-particle)$ ${author.dropping-particle}$endif$</given-names> | |
$if(author.prefix)$ | |
<prefix>${author.suffix}</prefix> | |
$endif$ | |
$if(author.suffix)$ | |
<suffix>${author.suffix}</suffix> | |
$endif$ | |
</name> | |
$elseif(author.name)$ | |
<string-name>$author.name$</string-name> | |
$else$ | |
<string-name>$author$</string-name> | |
$endif$ | |
$if(author.email)$ | |
<email>$author.email$</email> | |
$endif$ | |
$-- if affiliations are listed separately, then create links. Otherwise | |
$-- include them here. | |
$if(affiliation)$ | |
$for(author.affiliation)$ | |
<xref ref-type="aff" rid="aff-$author.affiliation$"/> | |
$endfor$ | |
$else$ | |
$for(author.affiliation)$ | |
${ it:affiliations.jats() } | |
$endfor$ | |
$endif$ | |
$if(author.cor-id)$ | |
<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> | |
$endif$ | |
</contrib> |
This is where this needs to get documented:
Line 15 in 180d2b5
`author` |
I am happy to try getting this working myself!
estedeahora