aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-23 18:45:20 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-12-23 19:09:22 +0100
commite54f6dcd7a6367d6d6408a4a5151b703aef3c533 (patch)
tree1e0d8ac7de97e4529f32974af3d37965e39f6a05
parentfae63b09bb5034b961118181d80a4377d12d223b (diff)
downloadpandoc-e54f6dcd7a6367d6d6408a4a5151b703aef3c533.tar.gz
JATS template: fix position of contrib affiliations in authoring set
Any `<aff>` element must come before any `<email>` element.
-rw-r--r--data/templates/affiliations.jats2
-rw-r--r--data/templates/default.jats_articleauthoring6
2 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/affiliations.jats b/data/templates/affiliations.jats
index 2df99d75e..17c3cf164 100644
--- a/data/templates/affiliations.jats
+++ b/data/templates/affiliations.jats
@@ -1,7 +1,7 @@
$--
$-- Affiliations
$--
-<aff id="aff-$affiliation.id$">
+<aff id="aff-$it.id$">
$-- wrap affiliation if it has a known institution identifier
$if(it.group)$
<institution content-type="group">${it.group}</institution>
diff --git a/data/templates/default.jats_articleauthoring b/data/templates/default.jats_articleauthoring
index 29abe86c5..01042b001 100644
--- a/data/templates/default.jats_articleauthoring
+++ b/data/templates/default.jats_articleauthoring
@@ -36,12 +36,12 @@ $elseif(author.name)$
$else$
<string-name>$author$</string-name>
$endif$
-$if(author.email)$
-<email>$author.email$</email>
-$endif$
$for(author.affiliation)$
${ it:affiliations.jats() }
$endfor$
+$if(author.email)$
+<email>$author.email$</email>
+$endif$
$if(author.cor-id)$
<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref>
$endif$