From 19b9076902580a35e75b492dc606d2498b89b500 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Fri, 23 Jul 2010 17:41:25 +0000 Subject: [PATCH] Merge r1106 from http://svn.mannlib.cornell.edu/svn/vivo/branches/rel-1.1-maint --- .../entity/presenterRoleShortView.jsp | 1 + .../templates/entity/roleShortView.jsp | 26 ++++++++++++------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/productMods/templates/entity/presenterRoleShortView.jsp b/productMods/templates/entity/presenterRoleShortView.jsp index 1e0a8af5..b991bd39 100644 --- a/productMods/templates/entity/presenterRoleShortView.jsp +++ b/productMods/templates/entity/presenterRoleShortView.jsp @@ -5,5 +5,6 @@ + diff --git a/productMods/templates/entity/roleShortView.jsp b/productMods/templates/entity/roleShortView.jsp index 6fc220c1..11931b38 100644 --- a/productMods/templates/entity/roleShortView.jsp +++ b/productMods/templates/entity/roleShortView.jsp @@ -5,17 +5,23 @@ <%@ taglib uri="http://vitro.mannlib.cornell.edu/vitro/tags/StringProcessorTag" prefix="p" %> <%-- - This short view is intended to be called to handle short views for roles +This short view is intended to be called to handle short views for roles - The following vars should be set by the jsp that is calling this short view - personToRolePredicate: URI of the person to role predicate. - roleToPersonPredicate: URI of the role to person predicate. - roleActivityToRolePredicate: URI of the activity to role predicate. - 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 - this value because there is no specific role name. - roleActivityLabel: human readable label of activity used for error messages +The following vars should be set by the jsp that is calling this short view + personToRolePredicate: URI of the person to role predicate. + roleToPersonPredicate: URI of the role to person 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 + 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. + startYearPredicate: defaults to http://vivoweb.org/ontology/core#startYear if not specified --%> + +${! empty param.startYearPredicate ? param.startYearPredicate : 'http://vivoweb.org/ontology/core#startYear'} @@ -24,7 +30,7 @@ <%-- get years off role --%> - +