From 633f05cc58bd0bb3987af98e6ff6470dd98e2857 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Thu, 4 Mar 2010 20:08:39 +0000 Subject: [PATCH] Fix date formatting in ServiceActivity custom short view. For now, displaying mm/yyyy, but may want to change to just yyyy. --- .../entity/serviceActivityShortView.jsp | 37 +++++++++++++------ 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/productMods/templates/entity/serviceActivityShortView.jsp b/productMods/templates/entity/serviceActivityShortView.jsp index 3c5d3b64..ef2cda94 100644 --- a/productMods/templates/entity/serviceActivityShortView.jsp +++ b/productMods/templates/entity/serviceActivityShortView.jsp @@ -8,6 +8,8 @@ PREDICATE - predicateUri OBJECT - individual + Predicates: professionalServiceActivity on Person page: Person professionalServiceActivity ServiceActivity + organizationRelatedActivity on Organization page: Organization organizationRelatedActivity ServiceActivity --%> @@ -20,13 +22,21 @@ <%-- Get the time span of the service activity --%> - <%-- RY FIX the display --%> - + <%-- 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" + --%> + + + - + <%-- --%> + + + @@ -46,19 +56,18 @@ - - <%-- There's not even an organization name, so just display the title in place of the name --%> - - <%-- don't output title twice --%> - + <%-- otherwise case defined below --%> <%-- CASE 2: SUBJECT is Organization, OBJECT is ServiceActivity --%> - - - + + + + + + <%-- else case handled below --%> <%-- CASE 3: Other predicate --%> @@ -67,6 +76,12 @@ + <%-- No objName defined in either Case 1 or Case 2 --%> + + + <%-- don't output title twice --%> + + <%-- Create an html link element to the objUri --%>