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:
parent
fdffad7fcd
commit
08b15990be
1 changed files with 5 additions and 1 deletions
|
@ -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}
|
||||
</#if>
|
||||
<#else>
|
||||
<a href="${profileUrl(statement.uri("author"))}" title="${i18n().author_name}">${statement.authorName}</a>
|
||||
</#if>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue