aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-01-29 09:42:25 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-01-29 09:51:20 +0100
commitd82fe52a02e43d905f34830162def346d851fc5a (patch)
treee92b1b06c7b7b44a7f571548091fca75f8c91984 /data/templates
parent300b9b0ea365187240115afbfed0df7fa438a7b3 (diff)
downloadpandoc-d82fe52a02e43d905f34830162def346d851fc5a.tar.gz
JATS templates: tag author.name as string-name
The partitioning the components of a name into surname, given names, etc. is not always possible or not available. Using `author.name` allows to give the full name as a fallback to be used when `author.surname` is not available.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/article.jats_publishing2
-rw-r--r--data/templates/default.jats_articleauthoring2
2 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/article.jats_publishing b/data/templates/article.jats_publishing
index 4bdb3f278..15d2e3b08 100644
--- a/data/templates/article.jats_publishing
+++ b/data/templates/article.jats_publishing
@@ -95,6 +95,8 @@ $if(author.surname)$
<surname>$author.surname$</surname>
<given-names>$author.given-names$</given-names>
</name>
+$elseif(author.name)$
+<string-name>$author.name$</string-name>
$else$
<string-name>$author$</string-name>
$endif$
diff --git a/data/templates/default.jats_articleauthoring b/data/templates/default.jats_articleauthoring
index 94c929548..ef2aed769 100644
--- a/data/templates/default.jats_articleauthoring
+++ b/data/templates/default.jats_articleauthoring
@@ -28,6 +28,8 @@ $if(author.surname)$
<surname>$author.surname$</surname>
<given-names>$author.given-names$</given-names>
</name>
+$elseif(author.name)$
+<string-name>$author.name$</string-name>
$else$
<string-name>$author$</string-name>
$endif$