NIHVIVO-1339 Completed core:relatedRole custom list view thanks to Rebecca's help in using rdfs:subPropertyOf to keep this streamlined and generic. It does not assume that the individual in the role is of class foaf:Person

This commit is contained in:
nac26 2011-01-06 16:01:40 +00:00
parent 29a628bc02
commit 4739e32b34
2 changed files with 18 additions and 15 deletions

View file

@ -12,11 +12,11 @@
<#macro showRole statement>
<#local linkedIndividual>
<#if statement.person??>
<a href="${profileUrl(statement.person)}">${statement.personName}</a>
<#if statement.indivInRole??>
<a href="${profileUrl(statement.indivInRole)}">${statement.indivName}</a>
<#else>
<#-- This shouldn't happen, but we must provide for it -->
<a href="${profileUrl(statement.role)}">${statement.roleName}</a> (no linked person)
<a href="${profileUrl(statement.role)}">${statement.roleName}</a> (no linked individual in this role)
</#if>
</#local>