<%-- $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" %> <%-- Custom short view for ServiceActivity SUBJECT - entity PREDICATE - predicateUri OBJECT - individual Predicates: professionalServiceActivity on Person page: Person professionalServiceActivity ServiceActivity organizationRelatedActivity on Organization page: Organization organizationRelatedActivity ServiceActivity --%> <%-- individual is the OBJECT of the property referenced - in this case, a ServiceActivity object --%> <%-- Get the ServiceActivity title --%> <%-- Get the time span of the service activity --%> <%-- RY Don't know whether we should display just the year, or month and year. Latter looks like too much info, but why collect it if we aren't going to display it? Needs reformatting, otherwise we get e.g., "2008-10 - 2009-12" --%> <%-- --%> <%-- CASE 1: SUBJECT is Person, OBJECT is ServiceActivity --%> <%-- The head object of the short view is the Organization object's name or data property organization name. Get it from the service activity. --%> <%-- This ServiceActivity object is linked to an Organization object --%> <%-- The ServiceActivity object has an organization name data property --%> <%-- otherwise case defined below --%> <%-- CASE 2: SUBJECT is Organization, OBJECT is ServiceActivity --%> <%-- else case handled below --%> <%-- CASE 3: Other predicate --%> <%-- No objName defined in either Case 1 or Case 2 --%> <%-- don't output title twice --%> <%-- Create an html link element to the objUri --%> <%-- Final output --%> ${openLink}${objName}${closeLink}${title}${timeSpan} <%-- no predicate --%> <%-- no object --%>