diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-11-20 18:57:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 09:57:06 -0800 |
commit | 797db8d30631cbd704575ee11d3bdda5bf57270f (patch) | |
tree | 68dd6b182f7b2ee977cc67112a29f0e8e8cecd7b /data | |
parent | c647948ff186411c2dc93ae92d134805726aea54 (diff) | |
download | pandoc-797db8d30631cbd704575ee11d3bdda5bf57270f.tar.gz |
JATS writer: support author affiliations (#6867)
Closes: #6687
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/affiliations.jats | 35 | ||||
-rw-r--r-- | data/templates/article.jats_publishing | 7 | ||||
-rw-r--r-- | data/templates/default.jats_articleauthoring | 7 |
3 files changed, 43 insertions, 6 deletions
diff --git a/data/templates/affiliations.jats b/data/templates/affiliations.jats new file mode 100644 index 000000000..b6cc4f7d5 --- /dev/null +++ b/data/templates/affiliations.jats @@ -0,0 +1,35 @@ +$-- +$-- Affiliations +$-- +$for(affiliation)$ +<aff id="aff-$affiliation.id$"> +$-- wrap affiliation if it has a known institution identifier +$if(affiliation.group)$ +<institution content-type="group">$affiliation.group$</institution> +$endif$ +$if(affiliation.department)$ +<institution content-type="dept">$affiliation.department$</institution> +$endif$ +<institution-wrap> +$if(affiliation.organization)$ +<institution>$affiliation.organization$</institution> +$else$ +<institution>$affiliation.name$</institution> +$endif$ +$if(affiliation.isni)$ +<institution-id institution-id-type="ISNI">$affiliation.isni$</institution-id> +$endif$ +$if(affiliation.ringgold)$ +<institution-id institution-id-type="Ringgold">$affiliation.ringgold$</institution-id> +$endif$ +$if(affiliation.ror)$ +<institution-id institution-id-type="ROR">$affiliation.ror$</institution-id> +$endif$ +</institution-wrap>$if(affiliation.street-address)$, +$for(affiliation.street-address)$ +<addr-line>$affiliation.street-address$</addr-line>$sep$, +$endfor$ +$else$$if(affiliation.city)$, <city>$affiliation.city$</city>$endif$$endif$$if(affiliation.country)$, +<country$if(affiliation.country-code)$ country="$affiliation.country-code$"$endif$>$affiliation.country$</country>$endif$ +</aff> +$endfor$ diff --git a/data/templates/article.jats_publishing b/data/templates/article.jats_publishing index b64425fd8..4bdb3f278 100644 --- a/data/templates/article.jats_publishing +++ b/data/templates/article.jats_publishing @@ -101,14 +101,15 @@ $endif$ $if(author.email)$ <email>$author.email$</email> $endif$ -$if(author.aff-id)$ -<xref ref-type="aff" rid="aff-$contrib.aff-id$"/> -$endif$ +$for(author.affiliation)$ +<xref ref-type="aff" rid="aff-$author.affiliation$"/> +$endfor$ $if(author.cor-id)$ <xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> $endif$ </contrib> $endfor$ +${ affiliations.jats() } </contrib-group> $endif$ $if(article.author-notes)$ diff --git a/data/templates/default.jats_articleauthoring b/data/templates/default.jats_articleauthoring index f86bb2d3b..94c929548 100644 --- a/data/templates/default.jats_articleauthoring +++ b/data/templates/default.jats_articleauthoring @@ -34,14 +34,15 @@ $endif$ $if(author.email)$ <email>$author.email$</email> $endif$ -$if(author.aff-id)$ -<xref ref-type="aff" rid="aff-$contrib.aff-id$"/> -$endif$ +$for(author.affiliation)$ +<xref ref-type="aff" rid="aff-$author.affiliation$"/> +$endfor$ $if(author.cor-id)$ <xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> $endif$ </contrib> $endfor$ +${ affiliations.jats() } </contrib-group> $endif$ $if(copyright)$ |