Substringing operation had a one-off error. Find a simpler way.
This commit is contained in:
parent
ba0154afac
commit
d5d1a14344
1 changed files with 4 additions and 4 deletions
|
@ -16,10 +16,10 @@
|
||||||
<#macro showAuthorship statement>
|
<#macro showAuthorship statement>
|
||||||
<#local resourceTitle>
|
<#local resourceTitle>
|
||||||
<#if statement.infoResource??>
|
<#if statement.infoResource??>
|
||||||
<a href="${profileUrl(statement.uri("infoResource"))}" title="resource name">${statement.infoResourceName}</a>.
|
<a href="${profileUrl(statement.uri("infoResource"))}" title="resource name">${statement.infoResourceName}</a>
|
||||||
<#else>
|
<#else>
|
||||||
<#-- This shouldn't happen, but we must provide for it -->
|
<#-- This shouldn't happen, but we must provide for it -->
|
||||||
<a href="${profileUrl(statement.uri("authorship"))}" title="missing resource">missing information resource</a>.
|
<a href="${profileUrl(statement.uri("authorship"))}" title="missing resource">missing information resource</a>
|
||||||
</#if>
|
</#if>
|
||||||
</#local>
|
</#local>
|
||||||
|
|
||||||
|
@ -101,9 +101,9 @@
|
||||||
the resource name in the resourceTitle section above
|
the resource name in the resourceTitle section above
|
||||||
-->
|
-->
|
||||||
<#if citationDetails?has_content>
|
<#if citationDetails?has_content>
|
||||||
${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" />
|
${resourceTitle}. ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" />
|
||||||
<#else>
|
<#else>
|
||||||
${resourceTitle?substring(0,resourceTitle?last_index_of(".") - 1)} <@dt.yearSpan "${statement.dateTime!}" />
|
${resourceTitle} <@dt.yearSpan "${statement.dateTime!}" />
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
Loading…
Add table
Reference in a new issue