From d82fe52a02e43d905f34830162def346d851fc5a Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 29 Jan 2021 09:42:25 +0100 Subject: [PATCH] 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. --- data/templates/article.jats_publishing | 2 ++ data/templates/default.jats_articleauthoring | 2 ++ doc/jats.md | 5 +++++ 3 files changed, 9 insertions(+) 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)$ $author.surname$ $author.given-names$ +$elseif(author.name)$ +$author.name$ $else$ $author$ $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)$ $author.surname$ $author.given-names$ +$elseif(author.name)$ +$author.name$ $else$ $author$ $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 [``][elem:given-names]. + `name` + : full name of the author; included only as a fallback if + `author.surname` is not available. Tagged with + [``][elem:string-name]. + `email` : the contributor's email address.