In Investigator Role short view displays on person page, don't display a role label, since it's the same as the object property heading ("principal investigator", etc.). Do display on profile page for the activity, since there the role is listed under a generic "related role" property that doesn't reveal the nature of the role.

This commit is contained in:
rjy7 2010-07-15 17:56:19 +00:00
parent 90eabc5fdd
commit 1a604d6c50

View file

@ -40,7 +40,9 @@
<c:when test="${!empty individual.objectPropertyMap['http://vivoweb.org/ontology/core#roleIn']}"> <c:when test="${!empty individual.objectPropertyMap['http://vivoweb.org/ontology/core#roleIn']}">
<c:set var="roleActivity" value="${individual.objectPropertyMap['http://vivoweb.org/ontology/core#roleIn'].objectPropertyStatements[0].object}" /> <c:set var="roleActivity" value="${individual.objectPropertyMap['http://vivoweb.org/ontology/core#roleIn'].objectPropertyStatements[0].object}" />
<c:set var="name" value="${roleActivity.name}"/> <c:set var="name" value="${roleActivity.name}"/>
<c:set var="label" value="${roleLabel}" /> <%-- On the person page, it's redundant to display the role label in this case, since the object property
label contains the same information. --%>
<c:set var="label" value="${! empty param.roleLabelForPerson ? '' : individual.name}" />
<c:set var="uri" value="${roleActivity.URI}"/> <c:set var="uri" value="${roleActivity.URI}"/>
</c:when> </c:when>
<c:otherwise><%-- this Role is not linked to anything yet; use name as a placeholder and add link to the Role so user can add more information --%> <c:otherwise><%-- this Role is not linked to anything yet; use name as a placeholder and add link to the Role so user can add more information --%>