NIHVIVO-2605 core:hasPresenterRole custom list view, temporarily without construct queries
This commit is contained in:
parent
4b641d5dc7
commit
cf82810a5e
3 changed files with 30 additions and 106 deletions
|
@ -15,18 +15,24 @@
|
|||
next statement -->
|
||||
<#macro showRole statement>
|
||||
<#local linkedIndividual>
|
||||
<#if statement.activity??>
|
||||
<a href="${profileUrl(statement.activity)}">${statement.activityLabel!statement.activityName}</a>
|
||||
<#if statement.presentation??>
|
||||
<a href="${profileUrl(statement.presentation)}">${statement.presentationLabel!statement.presentationName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.role)}">missing activity</a>
|
||||
<a href="${profileUrl(statement.role)}">missing presentation</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
<#local dateTime>
|
||||
<@dt.yearSpan statement.dateTimeStart! />
|
||||
<@dt.yearSpan statement.dateTime! />
|
||||
</#local>
|
||||
|
||||
<#local conference>
|
||||
<#if statement.conference?has_content && statement.conferenceLabel?has_content>
|
||||
<a href="${profileUrl(statement.conference)}">${statement.conferenceLabel}</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
${linkedIndividual} ${statement.roleLabel!} ${dateTime!}
|
||||
<@s.join [ linkedIndividual, statement.roleLabel!, conference! ] /> ${dateTime!}
|
||||
|
||||
</#macro>
|
|
@ -6,7 +6,6 @@
|
|||
is also used to generate the property statement during a deletion.
|
||||
-->
|
||||
|
||||
<#import "lib-sequence.ftl" as s>
|
||||
<#import "lib-datetime.ftl" as dt>
|
||||
|
||||
<@showRole statement />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue