diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-23 08:45:39 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-23 09:11:54 +0100 |
commit | ddd1b856087b7620d9b314026a76dd53d52d65b6 (patch) | |
tree | 9cf87aa2e1a1f1c69c1005985af0f9de19db0a09 /data/templates/article.jats_publishing | |
parent | 7954070b0141700e17b6bc986d134fed90de7a02 (diff) | |
download | pandoc-ddd1b856087b7620d9b314026a76dd53d52d65b6.tar.gz |
JATS templates: fix affiliation tagging in articleauthoring output
Affiliations were `xlink`ed even in the articleauthoring tag set, but
`<aff>` are not allowed as children of `contrib-group` elements in that
tag set. Each affiliation must be listed directly in the contrib
element.
Diffstat (limited to 'data/templates/article.jats_publishing')
-rw-r--r-- | data/templates/article.jats_publishing | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/data/templates/article.jats_publishing b/data/templates/article.jats_publishing index bb69404c2..47ab8f197 100644 --- a/data/templates/article.jats_publishing +++ b/data/templates/article.jats_publishing @@ -106,15 +106,25 @@ $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> $endfor$ -${ affiliations.jats() } +$for(affiliation)$ +${ it:affiliations.jats() } +$endfor$ </contrib-group> $endif$ $if(article.author-notes)$ |