VIVO-1046: ensure that vcard individuals with only a last name display in the list of authors for information resources

This commit is contained in:
Tim Worrall 2015-08-20 10:36:12 -04:00
parent fdffad7fcd
commit 08b15990be

View file

@ -14,7 +14,11 @@
<#macro showAuthorship statement>
<#if statement.author??>
<#if statement.subclass?? && statement.subclass?contains("vcard")>
<#if statement.authorName?replace(" ","")?length == statement.authorName?replace(" ","")?last_index_of(",") + 1 >
${statement.authorName?replace(",","")}
<#else>
${statement.authorName}
</#if>
<#else>
<a href="${profileUrl(statement.uri("author"))}" title="${i18n().author_name}">${statement.authorName}</a>
</#if>