aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--data/templates/article.jats_publishing2
-rw-r--r--data/templates/default.jats_articleauthoring2
-rw-r--r--doc/jats.md5
3 files changed, 9 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$
diff --git a/doc/jats.md b/doc/jats.md
index 362ae3bef..0faea8b06 100644
--- a/doc/jats.md
+++ b/doc/jats.md
@@ -33,6 +33,11 @@ Metadata Values
See [`<given-names>`][elem:given-names].
+ `name`
+ : full name of the author; included only as a fallback if
+ `author.surname` is not available. Tagged with
+ [`<string-name>`][elem:string-name].
+
`email`
: the contributor's email address.