From 42f8aed42efdd0b61637809751442e74bf8fb58d Mon Sep 17 00:00:00 2001 From: bdc34 Date: Sat, 3 Apr 2010 22:42:06 +0000 Subject: [PATCH] Working on short view for educational background. --- .../forms/personHasEducationalBackground.jsp | 2 +- .../entity/edBackgroundShortView.jsp | 53 +++++++++++++------ 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/productMods/edit/forms/personHasEducationalBackground.jsp b/productMods/edit/forms/personHasEducationalBackground.jsp index 23e7c85b..62d8ada2 100644 --- a/productMods/edit/forms/personHasEducationalBackground.jsp +++ b/productMods/edit/forms/personHasEducationalBackground.jsp @@ -30,7 +30,7 @@ vreq.setAttribute("defaultNamespace", ""); //empty string triggers default new URI behavior String flagURI = null; - if (vreq.getAppBean().isFlag1Active()) { + if (wdf.getApplicationDao().isFlag1Active()) { flagURI = VitroVocabulary.vitroURI+"Flag1Value"+vreq.getPortal().getPortalId()+"Thing"; } else { flagURI = wdf.getVClassDao().getTopConcept().getURI(); // fall back to owl:Thing if not portal filtering diff --git a/productMods/templates/entity/edBackgroundShortView.jsp b/productMods/templates/entity/edBackgroundShortView.jsp index a7037440..226c695c 100644 --- a/productMods/templates/entity/edBackgroundShortView.jsp +++ b/productMods/templates/entity/edBackgroundShortView.jsp @@ -10,6 +10,12 @@ In this JSP that is the Educational Background, not the Person, Organization or DegreeType --%> + + + + @@ -18,8 +24,22 @@ - - + + + + + + + + + + , ${selectedOrganization.name} + + + + ${selectedOrganizationStr}, ${degreeDeptOrSchool} + + @@ -27,25 +47,26 @@ + + + + + - - - ">${degreeAbbreviation} in ${degreeMajor} ${selectedOrganizationName}, ${year} + <%-- degreeMajor, year, org and abbreviation are all required --%> + + ${degreeAbbreviation} in ${degreeMajor} ${selectedOrganizationStr}, ${year} ${degreeSupplementalInfo} ${contextNodeURL } + + + ${degreeAbbreviation} ${selectedOrganizationStr}, ${year} ${degreeDeptOrSchool} ${degreeSupplementalInfo} ${contextNodeURL } - - - ">${degreeAbbreviation} ${selectedOrganizationName}, ${year} + + ${degreeAbbreviation} {selectedOrganizationStr} ${degreeDeptOrSchool} ${degreeSupplementalInfo} ${contextNodeURL } - - - ">${degreeAbbreviation} ${selectedOrganizationName} - - - - ">${degreeAbbreviation} ${year} + + ${degreeAbbreviation} ${year} ${degreeDeptOrSchool} ${degreeSupplementalInfo} ${contextNodeURL } - ${individual.name}