From 08b15990becc44a8e607e43b45e64abbc0b7f743 Mon Sep 17 00:00:00 2001 From: Tim Worrall Date: Thu, 20 Aug 2015 10:36:12 -0400 Subject: [PATCH] VIVO-1046: ensure that vcard individuals with only a last name display in the list of authors for information resources --- .../propStatement-informationResourceInAuthorship.ftl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-informationResourceInAuthorship.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-informationResourceInAuthorship.ftl index 67a810a2..a24a0262 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-informationResourceInAuthorship.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-informationResourceInAuthorship.ftl @@ -14,7 +14,11 @@ <#macro showAuthorship statement> <#if statement.author??> <#if statement.subclass?? && statement.subclass?contains("vcard")> - ${statement.authorName} + <#if statement.authorName?replace(" ","")?length == statement.authorName?replace(" ","")?last_index_of(",") + 1 > + ${statement.authorName?replace(",","")} + <#else> + ${statement.authorName} + <#else> ${statement.authorName}