2010-07-08 21:28:05 +00:00
<%@ page import="edu.cornell.mannlib.vitro.webapp.visualization.valueobjects.SparklineVOContainer"%>
2010-07-01 16:45:02 +00:00
2010-07-01 15:54:11 +00:00
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
2010-07-02 01:06:46 +00:00
<c:set var="portalBean" value="${requestScope.portalBean}" />
<c:set var="themeDir"><c:out value="${portalBean.themeDir}" /></c:set>
2010-07-01 22:26:36 +00:00
<c:url var="visImageContextPath" value="/${themeDir}site_icons/visualization/" />
2010-07-02 01:06:46 +00:00
<c:url var="loadingImageLink" value="/${themeDir}site_icons/visualization/ajax-loader.gif"></c:url>
2010-07-01 15:54:11 +00:00
2010-07-08 21:28:05 +00:00
<c:set var='egoPubSparkline' value='${requestScope.egoPubSparklineVO}' />
<c:set var='uniqueCoauthorsSparkline' value='${requestScope.uniqueCoauthorsSparklineVO}' />
<c:set var='egoPubSparklineContainerID' value='${requestScope.egoPubSparklineContainerID}' />
<c:set var='uniqueCoauthorsSparklineVisContainerID' value='${requestScope.uniqueCoauthorsSparklineVisContainerID}' />
2010-07-01 22:26:36 +00:00
2010-07-09 01:39:42 +00:00
<c:set var='numOfAuthors' value='${requestScope.numOfAuthors}' />
<c:set var='numOfCoAuthorShips' value='${requestScope.numOfCoAuthorShips}' />
2010-07-01 22:26:36 +00:00
<c:url var="egoSparklineDataURL" value="/admin/visQuery">
2010-07-01 15:54:11 +00:00
<c:param name="render_mode" value="data" />
2010-07-01 22:26:36 +00:00
<c:param name="vis" value="person_pub_count" />
2010-07-01 15:54:11 +00:00
<c:param name="uri" value="${requestScope.egoURIParam}" />
</c:url>
2010-07-01 22:26:36 +00:00
<c:url var="coAuthorshipDownloadFile" value="/admin/visQuery">
<c:param name="vis" value="person_level" />
<c:param name="render_mode" value="data" />
<c:param name="uri" value="${requestScope.egoURIParam}" />
2010-07-01 15:54:11 +00:00
</c:url>
2010-07-02 01:06:46 +00:00
<div id="body">
2010-07-01 15:54:11 +00:00
2010-07-01 22:26:36 +00:00
2010-07-02 01:06:46 +00:00
<style type="text/css">
2010-07-01 15:54:11 +00:00
2010-07-09 01:05:27 +00:00
#body h1 {
margin:0.0em;
}
2010-07-08 17:25:16 +00:00
.sparkline_wrapper_table {
display: inline;
2010-07-08 18:32:17 +00:00
vertical-align: bottom;
2010-07-08 17:25:16 +00:00
}
.author_name {
color: #13968c;
font-weight: bold;
}
2010-07-08 21:28:05 +00:00
.neutral_author_name {
color: black;
font-weight: bold;
}
2010-07-08 17:25:16 +00:00
.author_moniker {
color: #9C9C9C;
}
.sub_headings {
color: #121b3c;
padding-top: 5px;
}
.sub_headings a {
font-size:0.7em;
2010-07-08 18:32:17 +00:00
font-weight:normal;
2010-07-08 17:25:16 +00:00
}
.inline_href {
}
2010-07-09 01:05:27 +00:00
2010-07-02 01:06:46 +00:00
#ego_profile {
2010-07-09 01:05:27 +00:00
padding-left:10px;
padding-top:10px;
2010-07-06 20:35:29 +00:00
min-height: 100px;
2010-07-02 01:06:46 +00:00
}
#ego_label {
font-size:1.1em;
2010-07-09 01:05:27 +00:00
/*margin-left:100px;
2010-07-02 01:06:46 +00:00
margin-top:9px;
2010-07-09 01:05:27 +00:00
position:absolute;*/
2010-07-02 01:06:46 +00:00
}
2010-07-01 22:26:36 +00:00
2010-07-02 01:06:46 +00:00
#ego_moniker {
2010-07-09 01:05:27 +00:00
/*margin-left:100px;
2010-07-02 01:06:46 +00:00
margin-top:27px;
2010-07-09 01:05:27 +00:00
position:absolute;*/
2010-07-02 01:06:46 +00:00
}
2010-07-01 22:26:36 +00:00
2010-07-02 01:06:46 +00:00
#ego_profile_image {
2010-07-09 01:05:27 +00:00
float:left;
padding-right: 5px;
/*width: 100px;*/
2010-07-02 01:06:46 +00:00
}
2010-07-01 15:54:11 +00:00
2010-07-02 01:06:46 +00:00
#ego_sparkline {
cursor:pointer;
height:36px;
2010-07-06 20:35:29 +00:00
/*
2010-07-02 01:06:46 +00:00
margin-left:10px;
margin-top:69px;
2010-07-06 20:35:29 +00:00
position:absolute;*/
2010-07-02 01:06:46 +00:00
width:471px;
}
2010-07-01 15:54:11 +00:00
2010-07-06 20:35:29 +00:00
#dataPanel {
/*
float: left;
width: 150px;
visibility:hidden;*/
}
2010-07-02 01:06:46 +00:00
</style>
2010-07-01 15:54:11 +00:00
2010-07-09 01:05:27 +00:00
<!--[if IE]>
<style type="text/css">
#${egoPubSparklineContainerID},
#${uniqueCoauthorsSparklineVisContainerID} {
padding-bottom:15px;
}
</style>
<![endif]-->
2010-07-02 01:06:46 +00:00
<div id="ego_profile">
2010-07-09 01:05:27 +00:00
<%-- Image --%>
<span id="ego_profile_image"></span>
2010-07-02 01:06:46 +00:00
<%-- Label --%>
2010-07-08 17:25:16 +00:00
<h1><span id="ego_label" class="author_name"></span></h1>
2010-07-02 01:06:46 +00:00
<%-- Moniker--%>
<span id="ego_moniker" class="author_moniker"></span>
2010-07-09 01:05:27 +00:00
<div style="clear:both;"></div>
2010-07-06 20:35:29 +00:00
2010-07-02 01:06:46 +00:00
<%-- Sparkline --%>
2010-07-08 17:25:16 +00:00
<h2 class="sub_headings">General Statistics</h2>
2010-07-08 21:28:05 +00:00
<div id="${egoPubSparklineContainerID}">
${egoPubSparkline.sparklineContent}
2010-07-08 17:25:16 +00:00
</div>
2010-07-08 21:28:05 +00:00
<div id="${uniqueCoauthorsSparklineVisContainerID}">
${uniqueCoauthorsSparkline.sparklineContent}
</div>
2010-07-08 17:25:16 +00:00
2010-07-09 01:39:42 +00:00
<h2 class="sub_headings">Co-Author Network
<%-- A simple if/else condition --%>
<c:choose>
<c:when test='${numOfCoAuthorShips > 0}'>
<a href="${coAuthorshipDownloadFile}">(.GraphML File)</a></h2>
</c:when>
<c:otherwise>
</h2>
2010-07-09 02:01:22 +00:00
<c:if test='${numOfAuthors > 0}'>
<c:set var='authorsText' value='multi-author' />
</c:if>
2010-07-09 15:13:30 +00:00
<span id="no_coauthorships">Currently there are no ${authorsText} papers for <span id="no_coauthorships_person" class="author_name">this author</span> in the VIVO database.</span>
2010-07-09 01:39:42 +00:00
</c:otherwise>
</c:choose>
2010-07-01 15:54:11 +00:00
2010-07-09 01:05:27 +00:00
</div>
2010-07-01 15:54:11 +00:00
2010-07-09 01:39:42 +00:00
<c:if test='${numOfCoAuthorShips > 0}'>
2010-07-01 22:26:36 +00:00
2010-07-09 01:05:27 +00:00
<div id="bodyPannel">
2010-07-02 01:06:46 +00:00
2010-07-08 21:28:05 +00:00
<div id="visPanel" style="float: left; width: 600px;">
2010-07-02 01:06:46 +00:00
<script language="JavaScript" type="text/javascript">
<!--
renderCoAuthorshipVisualization();
//-->
</script>
</div>
2010-07-06 20:35:29 +00:00
<div id="dataPanel">
2010-07-02 01:06:46 +00:00
<div id="profileImage"></div>
2010-07-08 21:28:05 +00:00
<div class="bold"><strong><span id="authorName" class="neutral_author_name"> </span></strong></div>
2010-07-02 01:06:46 +00:00
<div class="italicize"><span id="profileMoniker" class="author_moniker"></span></div>
<br />
<div class="works"><span class="numbers" style="width: 40px;" id="works"></span> <span class="title">Works</span></div>
<div class="works"><span class="numbers" style="width: 40px;" id="coAuthors"></span> <span>Co-author(s)</span></div>
<div class="works" id="fPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="firstPublication"></span> <span>First Publication</span></div>
<div class="works" id="lPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="lastPublication"></span> <span>Last Publication</span></div>
<br /><br />
<div><a href="#" id="profileUrl">VIVO profile</a></div>
<br />
<div><a href="#" id="coAuthorshipVisUrl">Co-author network of <span id="coAuthorName"></span></a></div>
</div>
2010-07-01 22:26:36 +00:00
2010-07-02 01:06:46 +00:00
</div>
2010-07-01 22:26:36 +00:00
2010-07-09 01:39:42 +00:00
</c:if>
2010-07-09 02:01:22 +00:00
<c:if test='${numOfAuthors > 0}'>
2010-07-09 01:05:27 +00:00
2010-07-09 02:01:22 +00:00
<div class="vis_stats">
<h2 class="sub_headings">Tables</h2>
2010-07-09 01:39:42 +00:00
<div class="vis-tables">
2010-07-09 02:01:22 +00:00
<p id="publications_table_container" class="datatable">
${egoPubSparkline.table}
</p>
2010-07-09 01:39:42 +00:00
</div>
2010-07-09 02:01:22 +00:00
<c:if test='${numOfCoAuthorShips > 0}'>
2010-07-09 01:39:42 +00:00
2010-07-09 02:01:22 +00:00
<div class="vis-tables">
<p id="coauth_table_container" class="datatable"></p>
</div>
</c:if>
</div>
</c:if>
2010-07-02 01:54:00 +00:00
</div>
2010-07-02 01:06:46 +00:00
<script language="JavaScript" type="text/javascript">
2010-07-01 15:54:11 +00:00
$(document).ready(function(){
2010-07-09 02:01:22 +00:00
<c:if test='${numOfCoAuthorShips > 0}'>
2010-07-09 01:39:42 +00:00
$("#coauth_table_container").empty().html('<img id="loadingData" with="auto" src="${loadingImageLink}" />');
2010-07-09 02:01:22 +00:00
</c:if>
2010-07-01 15:54:11 +00:00
processProfileInformation("ego_label",
"ego_moniker",
2010-07-01 16:45:02 +00:00
"ego_profile_image",
2010-07-01 15:54:11 +00:00
jQuery.parseJSON(getWellFormedURLs("${requestScope.egoURIParam}", "profile_info")));
2010-07-09 02:01:22 +00:00
<c:if test='${numOfCoAuthorShips <= 0}'>
2010-07-09 15:13:30 +00:00
if ($('#ego_label').text().length > 0) {
setProfileName('no_coauthorships_person', $('#ego_label').text());
}
2010-07-09 02:01:22 +00:00
</c:if>
2010-07-09 01:39:42 +00:00
2010-07-09 02:01:22 +00:00
2010-07-09 01:39:42 +00:00
2010-07-01 15:54:11 +00:00
});
2010-07-01 22:26:36 +00:00
</script>