From 797db8d30631cbd704575ee11d3bdda5bf57270f Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 20 Nov 2020 18:57:06 +0100 Subject: JATS writer: support author affiliations (#6867) Closes: #6687 --- data/templates/affiliations.jats | 35 ++++++++++++++++++++++++++++ data/templates/article.jats_publishing | 7 +++--- data/templates/default.jats_articleauthoring | 7 +++--- 3 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 data/templates/affiliations.jats (limited to 'data') 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)$ + +$-- wrap affiliation if it has a known institution identifier +$if(affiliation.group)$ +$affiliation.group$ +$endif$ +$if(affiliation.department)$ +$affiliation.department$ +$endif$ + +$if(affiliation.organization)$ +$affiliation.organization$ +$else$ +$affiliation.name$ +$endif$ +$if(affiliation.isni)$ +$affiliation.isni$ +$endif$ +$if(affiliation.ringgold)$ +$affiliation.ringgold$ +$endif$ +$if(affiliation.ror)$ +$affiliation.ror$ +$endif$ +$if(affiliation.street-address)$, +$for(affiliation.street-address)$ +$affiliation.street-address$$sep$, +$endfor$ +$else$$if(affiliation.city)$, $affiliation.city$$endif$$endif$$if(affiliation.country)$, +$affiliation.country$$endif$ + +$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)$ $author.email$ $endif$ -$if(author.aff-id)$ - -$endif$ +$for(author.affiliation)$ + +$endfor$ $if(author.cor-id)$ * $endif$ $endfor$ +${ affiliations.jats() } $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)$ $author.email$ $endif$ -$if(author.aff-id)$ - -$endif$ +$for(author.affiliation)$ + +$endfor$ $if(author.cor-id)$ * $endif$ $endfor$ +${ affiliations.jats() } $endif$ $if(copyright)$ -- cgit v1.2.3