Merge r1106 from http://svn.mannlib.cornell.edu/svn/vivo/branches/rel-1.1-maint
This commit is contained in:
parent
417363603d
commit
19b9076902
2 changed files with 17 additions and 10 deletions
|
@ -5,5 +5,6 @@
|
||||||
<jsp:param name="roleToPersonPredicate" value="http://vivoweb.org/ontology/core#presenterRoleOf"/>
|
<jsp:param name="roleToPersonPredicate" value="http://vivoweb.org/ontology/core#presenterRoleOf"/>
|
||||||
<jsp:param name="roleActivityToRolePredicate" value="http://vivoweb.org/ontology/core#relatedRole"/>
|
<jsp:param name="roleActivityToRolePredicate" value="http://vivoweb.org/ontology/core#relatedRole"/>
|
||||||
<jsp:param name="roleActivityLabel" value="presenter role"/>
|
<jsp:param name="roleActivityLabel" value="presenter role"/>
|
||||||
|
<jsp:param name="startYearPredicate" value="http://vivoweb.org/ontology/core#year" />
|
||||||
</jsp:include>
|
</jsp:include>
|
||||||
|
|
||||||
|
|
|
@ -11,12 +11,18 @@
|
||||||
personToRolePredicate: URI of the person to role predicate.
|
personToRolePredicate: URI of the person to role predicate.
|
||||||
roleToPersonPredicate: URI of the role to person predicate.
|
roleToPersonPredicate: URI of the role to person predicate.
|
||||||
roleActivityToRolePredicate: URI of the activity to role predicate.
|
roleActivityToRolePredicate: URI of the activity to role predicate.
|
||||||
|
|
||||||
|
roleActivityLabel: human readable label of activity used for error messages
|
||||||
|
|
||||||
|
Optional vars:
|
||||||
roleLabelForPerson: human readable label for person when viewing from non-person side of role. Most short views
|
roleLabelForPerson: human readable label for person when viewing from non-person side of role. Most short views
|
||||||
don't specify this value because the role name is displayed instead. Grant-related short views specify
|
don't specify this value because the role name is displayed instead. Grant-related short views specify
|
||||||
this value because there is no specific role name.
|
this value because there is no specific role name.
|
||||||
roleActivityLabel: human readable label of activity used for error messages
|
startYearPredicate: defaults to http://vivoweb.org/ontology/core#startYear if not specified
|
||||||
--%>
|
--%>
|
||||||
|
|
||||||
|
<c:set var="startYearPredicate">${! empty param.startYearPredicate ? param.startYearPredicate : 'http://vivoweb.org/ontology/core#startYear'}</c:set>
|
||||||
|
|
||||||
<c:set var="errorMsg" value=""/>
|
<c:set var="errorMsg" value=""/>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${!empty individual}"><%-- individual is the OBJECT of the property referenced -- the Role individual, not the Person or grant --%>
|
<c:when test="${!empty individual}"><%-- individual is the OBJECT of the property referenced -- the Role individual, not the Person or grant --%>
|
||||||
|
@ -24,7 +30,7 @@
|
||||||
<c:when test="${!empty predicateUri}">
|
<c:when test="${!empty predicateUri}">
|
||||||
|
|
||||||
<%-- get years off role --%>
|
<%-- get years off role --%>
|
||||||
<c:set var="startYear" value="${individual.dataPropertyMap['http://vivoweb.org/ontology/core#startYear'].dataPropertyStatements[0].data}"/>
|
<c:set var="startYear" value="${individual.dataPropertyMap[startYearPredicate].dataPropertyStatements[0].data}"/>
|
||||||
<c:if test="${not empty startYear}">
|
<c:if test="${not empty startYear}">
|
||||||
<c:set var="endYear" value="${individual.dataPropertyMap['http://vivoweb.org/ontology/core#endYear'].dataPropertyStatements[0].data}"/>
|
<c:set var="endYear" value="${individual.dataPropertyMap['http://vivoweb.org/ontology/core#endYear'].dataPropertyStatements[0].data}"/>
|
||||||
<c:if test="${not empty endYear }">
|
<c:if test="${not empty endYear }">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue