');
+
+ row.append($('').html(item.name));
+ row.append($(' | ').html(item.number_of_authored_works));
+
+ table.append(row);
+
+ });
+
+ table.prependTo('#' + tableContainer);
+ $('#' + tableContainer + " #loadingData").remove();
+}
+
+function nodeClickedJS(json){
+
+ var obj = jQuery.parseJSON(json);
+
+ $("#dataPanel").attr("style","visibility:visible");
+ $("#authorName").empty().append(obj.name);
+ $("#works").empty().append(obj.number_of_authored_works);
+
+ /*
+ * Here obj.url points to the uri of that individual
+ */
+ if(obj.url){
+ $("#profileUrl").attr("href", getWellFormedURLs(obj.url, "profile"));
+ $("#coAuthorshipVisUrl").attr("href", getWellFormedURLs(obj.url, "coauthorship"));
+ processProfileInformation("",
+ "profileMoniker",
+ "profileImage",
+ jQuery.parseJSON(getWellFormedURLs(obj.url, "profile_info")),
+ true);
+
+ } else{
+ $("#profileUrl").attr("href","#");
+ $("#coAuthorshipVisUrl").attr("href","#");
+ }
+
+ $("#coAuthorName").empty().append(obj.name);
+
+ $("#coAuthors").empty().append(obj.num_coauthors);
+
+ $("#firstPublication").empty().append(obj.earliest_publication);
+ (obj.earliest_publication)?$("#fPub").attr("style","visibility:visible"):$("#fPub").attr("style","visibility:hidden");
+ $("#lastPublication").empty().append(obj.latest_publication);
+ (obj.latest_publication)?$("#lPub").attr("style","visibility:visible"):$("#lPub").attr("style","visibility:hidden");
+
+ // obj.url:the url parameter for node
+
+}
+
+function renderCoAuthorshipVisualization() {
+
+ // Version check for the Flash Player that has the ability to start Player
+ // Product Install (6.0r65)
+ var hasProductInstall = DetectFlashVer(6, 0, 65);
+
+ // Version check based upon the values defined in globals
+ var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
+
+ if ( hasProductInstall && !hasRequestedVersion ) {
+ // DO NOT MODIFY THE FOLLOWING FOUR LINES
+ // Location visited after installation is complete if installation is
+ // required
+ var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
+ var MMredirectURL = window.location;
+ document.title = document.title.slice(0, 47) + " - Flash Player Installation";
+ var MMdoctitle = document.title;
+
+ AC_FL_RunContent(
+ "src", "playerProductInstall",
+ "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
+ "width", "600",
+ "height", "840",
+ "align", "middle",
+ "id", "CoAuthor",
+ "quality", "high",
+ "bgcolor", "#ffffff",
+ "name", "CoAuthor",
+ "allowScriptAccess","sameDomain",
+ "type", "application/x-shockwave-flash",
+ "pluginspage", "http://www.adobe.com/go/getflashplayer"
+ );
+ } else if (hasRequestedVersion) {
+ // if we've detected an acceptable version
+ // embed the Flash Content SWF when all tests are passed
+ AC_FL_RunContent(
+ "src", swfLink,
+ "flashVars", "graphmlUrl=" + egoCoAuthorshipDataFeederURL,
+ "width", "600",
+ "height", "790",
+ "align", "top",
+ "id", "CoAuthor",
+ "quality", "high",
+ "bgcolor", "#ffffff",
+ "name", "CoAuthor",
+ "allowScriptAccess","sameDomain",
+ "type", "application/x-shockwave-flash",
+ "pluginspage", "http://www.adobe.com/go/getflashplayer"
+ );
+ } else { // flash is too old or we can't detect the plugin
+ var alternateContent = 'Alternate HTML content should be placed here. '
+ + 'This content requires the Adobe Flash Player. '
+ + 'Get Flash';
+ document.write(alternateContent); // insert non-flash content
+ }
+
+}
\ No newline at end of file
diff --git a/webapp/web/templates/entity/entityBasic.jsp b/webapp/web/templates/entity/entityBasic.jsp
index 5bf7b9e04..7cd191529 100644
--- a/webapp/web/templates/entity/entityBasic.jsp
+++ b/webapp/web/templates/entity/entityBasic.jsp
@@ -122,6 +122,10 @@ if (VitroRequestPrep.isSelfEditing(request) || LoginFormBean.loggedIn(request, L
+
+
+
+
<%-- Links --%>
diff --git a/webapp/web/templates/entity/entity_inject_head.jsp b/webapp/web/templates/entity/entity_inject_head.jsp
index bae07bc95..634d5dddc 100644
--- a/webapp/web/templates/entity/entity_inject_head.jsp
+++ b/webapp/web/templates/entity/entity_inject_head.jsp
@@ -26,6 +26,7 @@
+
@@ -34,3 +35,4 @@
+
diff --git a/webapp/web/templates/entity/sparklineVisualization.jsp b/webapp/web/templates/entity/sparklineVisualization.jsp
new file mode 100644
index 000000000..3424ac8bb
--- /dev/null
+++ b/webapp/web/templates/entity/sparklineVisualization.jsp
@@ -0,0 +1,156 @@
+<%@ 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 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()) {
+ //System.out.println(">> " + currClass.getName());
+ if (currClass.getName().equalsIgnoreCase("Person")) {
+ displayVisualization = true;
+ break;
+ }
+
+ }
+ }
+ //System.out.println("visualization is supposed to be displayed? > " + displayVisualization);
+ if (displayVisualization) {
+
+%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- PDF Visualization URL
+
+ For now we have disabled this.
+
+
+
+
+
+
+
+
+
+ --%>
+
+
+
+
+
+
+
+ ${entity.URI}
+
+
+
+
+
+ <%--
+
+ For now we have disabled PDF report vis.
+
+
+ This is the link to PDF report.
+
+
+ --%>
+
+
+
+<%
+
+ }
+
+%>
\ No newline at end of file
diff --git a/webapp/web/templates/page/blankPage.jsp b/webapp/web/templates/page/blankPage.jsp
new file mode 100644
index 000000000..36f3f9f64
--- /dev/null
+++ b/webapp/web/templates/page/blankPage.jsp
@@ -0,0 +1,46 @@
+<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
+
+<% /***********************************************
+ Display a single Page in the most basic fashion.
+ The html is generated followed by the banners and menu.
+ After that the result of the jsp in the attribute bodyJsp is inserted.
+ Finally comes the footer.
+
+ request.attributes:
+ "bodyJsp" - jsp of the body of this page.
+ "title" - title of page
+ "css" - optional additional css for page
+ "scripts" - optional name of file containing
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<%-- Label --%>
+
+
+<%-- Moniker--%>
+
+
+<%-- Image --%>
+
+
+<%-- Sparkline --%>
+
+
+
+
+ ${requestScope.egoURIParam}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6 Works
+ 78 Co-author(s)
+
+ First
+ Publication
+ Last Publication
+
+
+
+
+
+
+
+
+
+
+Download co-authorship newtwork as .graphml file.
+
+
+
+
+
+
+
+
+
+ Publications per year
+
+
+ Year |
+ Publications |
+
+
+
+
+ 2004 |
+ 4 |
+
+
+ 2005 |
+ 2 |
+
+
+ 11 |
+
+
+ Unknown |
+ 1 |
+
+
+
+
+Download data as .csv file.
+
+
+ Co - Authorhips
+
+
+ Name |
+ Publications |
+
+
+
+
+ 2004 |
+ 4 |
+
+
+ 2005 |
+ 2 |
+
+
+ 11 |
+
+
+ Unknown |
+ 1 |
+
+
+
+
+
+
+
+
+
+
+
+ |