diff --git a/productMods/edit/forms/addRoleToPersonTwoStage.jsp b/productMods/edit/forms/addRoleToPersonTwoStage.jsp index 0fc24568..40bbba8f 100644 --- a/productMods/edit/forms/addRoleToPersonTwoStage.jsp +++ b/productMods/edit/forms/addRoleToPersonTwoStage.jsp @@ -151,31 +151,6 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. <%= (mode == EditMode.ADD || mode == EditMode.REPAIR) ?"\"nonempty\"," : "" %> <%= (mode == EditMode.ADD || mode == EditMode.REPAIR) ?"\"nonempty\"" : "" %> -<%-- - - - - - - - - ---%> - - - ${vivoCore}year - ${vivoCore}startYear - - - - ?role <${startYearPredicate}> ?startYear . - - - - - ?role <${endYearPredicate}> ?endYear . - - ?role <${label}> ?roleLabel . @@ -233,14 +208,6 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp. ?existingActivity rdfs:label ?existingTitle . } - - SELECT ?existingStartYear WHERE { ?role <${startYearPredicate}> ?existingStartYear .} - - - - SELECT ?existingStartYear WHERE { ?role <${endYearPredicate}> ?existingStartYear .} - - PREFIX core: <${vivoCore}> SELECT ?existingActivity WHERE { ?role core:roleIn ?existingActivity . } diff --git a/productMods/templates/entity/authorshipShortView.jsp b/productMods/templates/entity/authorshipShortView.jsp deleted file mode 100644 index 866c1317..00000000 --- a/productMods/templates/entity/authorshipShortView.jsp +++ /dev/null @@ -1,78 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> - - - <%-- individual is the OBJECT of the property referenced -- the Authorship individual, not the Person or Publication --%> - - - - <%-- SUBJECT is a Person, so get info from Authorship about related Publication --%> - - <%-- this Authorship is linked to an InformationResource --%> - - - - - - - <%-- this Position is not linked to a Publication yet; use Authorship name as a placeholder and add link to the Authorship so user can add more information --%> - - - - - - - - - - - - - - <%-- SUBJECT is a Publication, so get info from Authorship about the related Person --%> - - <%-- there is a related Person --%> - - - - - - <%-- only an author name has been specified --%> - - - <%-- no related Person yet (likely from before custom form available) --%> - - - - - - - - - - - - - - - - - - - ">${name} ${label} ${year} - - - ${name} ${label} ${year} - - - - - - - - - - - - diff --git a/productMods/templates/entity/clinicalRoleShortView.jsp b/productMods/templates/entity/clinicalRoleShortView.jsp deleted file mode 100644 index e4ba13df..00000000 --- a/productMods/templates/entity/clinicalRoleShortView.jsp +++ /dev/null @@ -1,7 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - diff --git a/productMods/templates/entity/educationalTrainingShortView.jsp b/productMods/templates/entity/educationalTrainingShortView.jsp deleted file mode 100644 index a65ee313..00000000 --- a/productMods/templates/entity/educationalTrainingShortView.jsp +++ /dev/null @@ -1,129 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ page import="edu.cornell.mannlib.vitro.webapp.utils.StringUtils" %> - -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> - -<%-- - 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 Training object, not the Person, Organization or DegreeType - --%> - - - - - <%-- SUBJECT is a Person --%> - - - <%-- Degree type and major --%> - - - - - - - - <%-- RY 12/10/10 majorField is no longer required, so make sure we display something reasonable if there is no major field. --%> - - - - - - - - - - - - - - - - - - <%-- Organization granting degree --%> - - - - - - ${selectedOrganization.name} - - - <%-- Optional department/school to organization --%> - - - - - <%-- Year of degree --%> - - - <%-- Supplemental information --%> - - - <%-- Build the output string --%> - - - educational background ${individual.name} - - - <%= StringUtils.join(", ", (String) pageContext.getAttribute("degreeStr"), - (String) pageContext.getAttribute("selectedOrganizationStr"), - (String) pageContext.getAttribute("degreeDeptOrSchool"), - (String) pageContext.getAttribute("year"), - (String) pageContext.getAttribute("degreeSupplementalInfo") ) %> - - - - - <%-- SUBJECT is a Degree Type --%> - - - - - - - - - - - ${personName} - - - - - - ${personLink} in ${degreeMajor}, ${selectedOrganizationName}, ${year} - - - ${personLink} in ${degreeMajor}, ${selectedOrganizationName} - - - ${personLink} in ${degreeMajor} - - - ${personLink} ${selectedOrganizationName}, ${year} - - - educational background ${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. --%> - - - - diff --git a/productMods/templates/entity/grantCoPiRoleShortView.jsp b/productMods/templates/entity/grantCoPiRoleShortView.jsp deleted file mode 100644 index e3c3770b..00000000 --- a/productMods/templates/entity/grantCoPiRoleShortView.jsp +++ /dev/null @@ -1,9 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - - diff --git a/productMods/templates/entity/grantPiRoleShortView.jsp b/productMods/templates/entity/grantPiRoleShortView.jsp deleted file mode 100644 index b25f12f6..00000000 --- a/productMods/templates/entity/grantPiRoleShortView.jsp +++ /dev/null @@ -1,9 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - - diff --git a/productMods/templates/entity/grantRoleShortView.jsp b/productMods/templates/entity/grantRoleShortView.jsp deleted file mode 100644 index 20ad027f..00000000 --- a/productMods/templates/entity/grantRoleShortView.jsp +++ /dev/null @@ -1,9 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - - diff --git a/productMods/templates/entity/headOfRoleShortView.jsp b/productMods/templates/entity/headOfRoleShortView.jsp deleted file mode 100644 index bb6ce9d5..00000000 --- a/productMods/templates/entity/headOfRoleShortView.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - diff --git a/productMods/templates/entity/informationResourceShortView.jsp b/productMods/templates/entity/informationResourceShortView.jsp deleted file mode 100644 index 8f3c2a71..00000000 --- a/productMods/templates/entity/informationResourceShortView.jsp +++ /dev/null @@ -1,43 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%-- rjy7 NIHVIVO-1158 Under core:authorInAuthorship on a person's page, we are now displaying the object property statements -for the related property core:linkedInformationResource, so that we can collate by publication subclass. The subject is the -Authorship, and the object is the InformationResource, so the authorship short view defined on Authorships no longer applies. -We thus define an information resource short view to display the publications. --%> - -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> - - - <%-- individual is the OBJECT of the property referenced -- the InformationResource individual --%> - - - - - - - - - - - - - - - - - ">${name} ${year} - - - ${name} ${year} - - - - - - - - - - - - diff --git a/productMods/templates/entity/memberRoleShortView.jsp b/productMods/templates/entity/memberRoleShortView.jsp deleted file mode 100644 index 775c94ff..00000000 --- a/productMods/templates/entity/memberRoleShortView.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - diff --git a/productMods/templates/entity/outreachRoleShortView.jsp b/productMods/templates/entity/outreachRoleShortView.jsp deleted file mode 100644 index 31a87784..00000000 --- a/productMods/templates/entity/outreachRoleShortView.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - diff --git a/productMods/templates/entity/positionShortView.jsp b/productMods/templates/entity/positionShortView.jsp deleted file mode 100644 index 6108709f..00000000 --- a/productMods/templates/entity/positionShortView.jsp +++ /dev/null @@ -1,140 +0,0 @@ -<%-- $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" %> - - - - <%-- individual is the OBJECT of the property referenced -- the Position, not the Person or Organization --%> - - - - - - - - - - - - - - - - - - - - <%-- use working title in preference to HR title --%> - - - - - - - - - - - - - - - <%-- SUBJECT is a Person, so get info from Position about related Organization --%> - - <%-- this Position is linked to an Organization --%> - - - - - - - - - - - - <%-- this Position is not linked to an Organization --%> - - <%-- an Organization name has been specified --%> - - - - <%-- not even an organization name, so just display the title in place of the name --%> - - <%-- don't show title twice --%> - - - - - - <%-- Hack to control extra spaces...should be done differently though. --%> - - - - - - - - ">${objName}${objLabel}${timeSpan} - - - ${objName}${objLabel}${timeSpan} - - - - - <%-- SUBJECT is an Organization, so get info from Position about the related Person --%> - - - - <%-- don't show because the position is not current --%> - - - <%-- there is a related Person --%> - - - - - - - - - - - - - - - ">${objName} ${objLabel} ${timeSpan} - - - ${objName} ${objLabel} ${timeSpan} - - - - - <%-- no related Person, which should not happen --%> - - - - - - - - - - - - - - - - - - - - - - diff --git a/productMods/templates/entity/presenterRoleShortView.jsp b/productMods/templates/entity/presenterRoleShortView.jsp deleted file mode 100644 index b991bd39..00000000 --- a/productMods/templates/entity/presenterRoleShortView.jsp +++ /dev/null @@ -1,10 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - - - diff --git a/productMods/templates/entity/researcherRoleShortView.jsp b/productMods/templates/entity/researcherRoleShortView.jsp deleted file mode 100644 index 5f19ff8e..00000000 --- a/productMods/templates/entity/researcherRoleShortView.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - diff --git a/productMods/templates/entity/roleShortView.jsp b/productMods/templates/entity/roleShortView.jsp deleted file mode 100644 index df4e1040..00000000 --- a/productMods/templates/entity/roleShortView.jsp +++ /dev/null @@ -1,138 +0,0 @@ -<%-- $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 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. - - 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'} -${ startYearPredicate == 'http://vivoweb.org/ontology/core#startYear' } - - - - <%-- individual is the OBJECT of the property referenced -- the Role individual, not the Person or grant --%> - - - - <%-- get years off role --%> - - - - - - - - - - - - - - - - <%-- SUBJECT is a Person, so get info from other part of the role --%> - - - - - - <%-- On the person page, it's redundant to display the role label in this case, since the object property - label contains the same information. --%> - - - - - - - - - <%-- This Role is not linked to anything yet; use name as a placeholder and - add link to the Role so user can add more information. --%> - - - - - - - - - <%-- SUBJECT is an activity of some sort, so get info from the Role about the related Person --%> - - - - <%-- there is a related Person --%> - - - - - - - - - - - - - <%-- this is a Role with out a Person (likely from before custom form available) --%> - - - - - - - - - - - - - - - - - - - - - <%-- only show error messages if logged in --%> - - - - - <%-- output the actual html --%> - - - - ">${name} ${label} ${startYear}${endYearVal} ${errorMsg} - - - ${name} ${label} ${errorMsg} - - - - - - - - - - - - - diff --git a/productMods/templates/entity/serviceProviderRoleShortView.jsp b/productMods/templates/entity/serviceProviderRoleShortView.jsp deleted file mode 100644 index ef90c5cc..00000000 --- a/productMods/templates/entity/serviceProviderRoleShortView.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - - diff --git a/productMods/templates/entity/sparklineVisualization.jsp b/productMods/templates/entity/sparklineVisualization.jsp deleted file mode 100644 index 223c5454..00000000 --- a/productMods/templates/entity/sparklineVisualization.jsp +++ /dev/null @@ -1,144 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.ApplicationBean"%> -<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.VClass" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.flags.PortalFlagChoices" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory" %> -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> -<%@ page errorPage="/error.jsp"%> -<% /*********************************************** - Displays the sparkline visualizations on individual profile pages - - request.attributes: - an Entity object with the name "entity" - - - request.parameters: - None, should only work with requestScope attributes for security reasons. - - Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output - for debugging info. - - **********************************************/ - Individual entity = (Individual)request.getAttribute("entity"); - boolean displayVisualization = false; - - if (entity == null){ - String e = "sparklineVisuzalition.jsp expects that request attribute 'entity' be set to the Entity object to display."; - displayVisualization = false; - throw new JspException(e); - } else { - for (VClass currClass : entity.getVClasses()) { - if ("http://xmlns.com/foaf/0.1/Person".equalsIgnoreCase(currClass.getURI())) { - displayVisualization = true; - break; - } - } - } - //System.out.println("visualization is supposed to be displayed? > " + displayVisualization); - if (displayVisualization) { - -%> - - - - - - - - - - - - - - - <%-- PDF Visualization URL - - For now we have disabled this. - - - - - - - - - - --%> - - - - - - - -
 
- - - - <%-- - - For now we have disabled PDF report vis. - -
- This is the link to PDF report. -
- - --%> - - - -<% - - } - -%> \ No newline at end of file diff --git a/productMods/templates/entity/teacherRoleShortView.jsp b/productMods/templates/entity/teacherRoleShortView.jsp deleted file mode 100644 index e147fde5..00000000 --- a/productMods/templates/entity/teacherRoleShortView.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - - - - - -