From 846c610931c30ecda1390aa54d92c9f55243633b Mon Sep 17 00:00:00 2001 From: bdc34 Date: Fri, 2 Apr 2010 16:15:23 +0000 Subject: [PATCH] Adding custom short view for educational background. NIHVIVO-284 --- .../entity/edBackgroundShortView.jsp | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 productMods/templates/entity/edBackgroundShortView.jsp diff --git a/productMods/templates/entity/edBackgroundShortView.jsp b/productMods/templates/entity/edBackgroundShortView.jsp new file mode 100644 index 00000000..a7037440 --- /dev/null +++ b/productMods/templates/entity/edBackgroundShortView.jsp @@ -0,0 +1,102 @@ +<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> + +<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://vitro.mannlib.cornell.edu/vitro/tags/StringProcessorTag" prefix="p" %> + +<%-- + This is a custom short view render for educational background. + The variable individual is the OBJECT of the property statement to be rendered. -- + In this JSP that is the Educational Background, not the Person, Organization or DegreeType + --%> + + + + + <%-- SUBJECT is a Person --%> + + + + + + + + + + + + + + + + + ">${degreeAbbreviation} in ${degreeMajor} ${selectedOrganizationName}, ${year} + + + + ">${degreeAbbreviation} ${selectedOrganizationName}, ${year} + + + + ">${degreeAbbreviation} ${selectedOrganizationName} + + + + ">${degreeAbbreviation} ${year} + + + + ${individual.name} + + + + + <%-- SUBJECT is a Degree Type --%> + + + + + + + + + + + + + ">${personName} in ${degreeMajor} ${selectedOrganizationName}, ${year} + + + + ">${personName} in ${degreeMajor} ${selectedOrganizationName} + + + + ">${personName} in ${degreeMajor} + + + + ">${personName} ${selectedOrganizationName}, ${year} + + + + ${individual.name} + + + + + <%-- The predicate was not one of the predicted ones, so create a normal link --%> + + + ${individual.name} + + + + + + + <%-- This clause is when there is no object individual defined, it should never be reached. --%> + + + +