diff --git a/productMods/templates/entity/sparklineVisualization.jsp b/productMods/templates/entity/sparklineVisualization.jsp index ef58dfd6..223c5454 100644 --- a/productMods/templates/entity/sparklineVisualization.jsp +++ b/productMods/templates/entity/sparklineVisualization.jsp @@ -1,143 +1,144 @@ -<%-- $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. -
- - --%> - - - -<% - - } - +<%-- $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