diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-01-29 09:42:25 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-01-29 09:51:20 +0100 |
commit | d82fe52a02e43d905f34830162def346d851fc5a (patch) | |
tree | e92b1b06c7b7b44a7f571548091fca75f8c91984 /data | |
parent | 300b9b0ea365187240115afbfed0df7fa438a7b3 (diff) | |
download | pandoc-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')
-rw-r--r-- | data/templates/article.jats_publishing | 2 | ||||
-rw-r--r-- | data/templates/default.jats_articleauthoring | 2 |
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$ |