Fix list view and template for vCard authors

This commit is contained in:
gneissone 2018-09-26 15:17:32 -04:00 committed by Andrew Woods
parent 8d6cc7a3c9
commit 3bc86714dd
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@
bind ( COALESCE(?firstName, "") As ?firstName1) .
bind ( COALESCE(?middleName, "") As ?middleName1) .
bind ( COALESCE(?lastName, "") As ?lastName1) .
bind (concat(str(?lastName1 + ", "),str(?firstName1 + " "),str(?middleName1)) as ?authorName) .
bind (concat(str(?lastName1),", ",str(?firstName1)," ",str(?middleName1)) as ?authorName) .
OPTIONAL {
<precise-subquery>?subject ?property ?authorship .

View file

@ -19,7 +19,7 @@
<#if statement.authorName?replace(" ","")?length == statement.authorName?replace(" ","")?last_index_of(",") + 1 >
${statement.authorName?replace(",","")}
<#else>
${statement.authorName}
${statement.authorName!i18n().missing_author}
</#if>
<#else>
<a href="${profileUrl(statement.uri("author"))}" title="${i18n().author_name}">${statement.authorName}</a>