NIHVIVO-2325 Display core:hasPreseneterRole date as non-interval

This commit is contained in:
ryounes 2011-03-28 22:25:10 +00:00
parent a097dc2784
commit be6c3c5a30
2 changed files with 14 additions and 2 deletions

View file

@ -11,10 +11,15 @@
SELECT DISTINCT <collated>?subclass</collated> SELECT DISTINCT <collated>?subclass</collated>
?role ?role
?startDateOnly
?roleLabel ?roleLabel
?activity ?activityName ?activity ?activityName
?dateTimeStart ?dateTimeEnd WHERE { ?dateTimeStart ?dateTimeEnd WHERE {
?subject ?property ?role ?subject ?property ?role
LET (?startDateOnly := (?property = core:hasPresenterRole) )
OPTIONAL { ?role core:roleIn ?activity . OPTIONAL { ?role core:roleIn ?activity .
?activity rdfs:label ?activityName ?activity rdfs:label ?activityName
} }

View file

@ -10,7 +10,6 @@
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the <#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
next statement --> next statement -->
<#macro showRole statement> <#macro showRole statement>
<#local linkedIndividual> <#local linkedIndividual>
<#if statement.activity??> <#if statement.activity??>
<a href="${profileUrl(statement.activity)}">${statement.activityLabel!statement.activityName}</a> <a href="${profileUrl(statement.activity)}">${statement.activityLabel!statement.activityName}</a>
@ -20,6 +19,14 @@
</#if> </#if>
</#local> </#local>
${linkedIndividual} ${statement.roleLabel!} <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" /> <#local dateTime>
<#if statement.startDateOnly == "true">
<@dt.yearSpan statement.dateTimeStart! />
<#else>
<@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
</#if>
</#local>
${linkedIndividual} ${statement.roleLabel!} ${dateTime!}
</#macro> </#macro>