From ddd1b856087b7620d9b314026a76dd53d52d65b6 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 23 Dec 2021 08:45:39 +0100 Subject: JATS templates: fix affiliation tagging in articleauthoring output Affiliations were `xlink`ed even in the articleauthoring tag set, but `` are not allowed as children of `contrib-group` elements in that tag set. Each affiliation must be listed directly in the contrib element. --- data/templates/article.jats_publishing | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'data/templates/article.jats_publishing') 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)$ $author.email$ $endif$ +$-- if affiliations are listed separately, then create links. Otherwise +$-- include them here. +$if(affiliation)$ $for(author.affiliation)$ $endfor$ +$else$ +$for(author.affiliation)$ +${ it:affiliations.jats() } +$endfor$ +$endif$ $if(author.cor-id)$ * $endif$ $endfor$ -${ affiliations.jats() } +$for(affiliation)$ +${ it:affiliations.jats() } +$endfor$ $endif$ $if(article.author-notes)$ -- cgit v1.2.3