From 96c91a9195dcb715d4a7a752877f36e4d53b5c26 Mon Sep 17 00:00:00 2001 From: nac26 Date: Fri, 1 Oct 2010 20:01:46 +0000 Subject: [PATCH] Merge r1431,1436 from rel-1.1-maint branch (IE6 fix for coathorship visualization page) NIHVIVO-954 --- .../entity/sparklineVisualization.jsp | 260 ++++++++---------- .../templates/visualization/person_level.jsp | 135 ++------- .../css/visualization/personlevel/page.css | 81 ++++++ 3 files changed, 224 insertions(+), 252 deletions(-) diff --git a/productMods/templates/entity/sparklineVisualization.jsp b/productMods/templates/entity/sparklineVisualization.jsp index 4c0301da..ef58dfd6 100644 --- a/productMods/templates/entity/sparklineVisualization.jsp +++ b/productMods/templates/entity/sparklineVisualization.jsp @@ -9,159 +9,135 @@ <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ page errorPage="/error.jsp"%> <% /*********************************************** - Displays the little group of things at the bottom of the page - for administrators and editors. - - 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. - - bdc34 2006-01-22 created - **********************************************/ - 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) { - + 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. - - - - - - - - - - --%> - - + + + + + + + + + <%-- PDF Visualization URL - - -
 
- - - + --%> - - - <%-- - - For now we have disabled PDF report vis. - -
- This is the link to PDF report. -
- - --%> - - + $(document).ready(function() { + + function renderVisualization(visualizationURL) { + <%-- + $("#vis_container").empty().html(''); + --%> + $.ajax({ + url: visualizationURL, + dataType: "html", + success:function(data){ + $("#vis_container").html(data); + + } + }); + } + + renderVisualization('${visualizationURL}'); + + }); + + //--> + + +
 
+ + + + <%-- + + 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/visualization/person_level.jsp b/productMods/templates/visualization/person_level.jsp index 2d6c5e50..c3e4d086 100644 --- a/productMods/templates/visualization/person_level.jsp +++ b/productMods/templates/visualization/person_level.jsp @@ -34,91 +34,31 @@ + +
- - -