1. Made changes to make sparklines be less ditant from the surrounding text.

2. Made style changes.
3. Enabled displaying of flash vis when there is atleast 1 publication, previously we looked for at least 1 co-authorship.
4. Made style changes to the tables displaying stats.
This commit is contained in:
cdtank 2010-07-09 20:16:42 +00:00
parent 8e05bf4de4
commit 8c77970189
4 changed files with 18 additions and 7 deletions

View file

@ -404,7 +404,7 @@ public class VisualizationCodeGenerator {
"var row = $('<tr>');" +
"sparklineImgTD = $('<td>');" +
"sparklineImgTD.attr('id', '" + sparklineID + "_img');" +
"sparklineImgTD.attr('width', '75');" +
"sparklineImgTD.attr('width', '65');" +
"sparklineImgTD.attr('align', 'right');" +
"sparklineImgTD.attr('class', '" + visualizationStyleClass + "');" +
"row.append(sparklineImgTD);" +

View file

@ -416,7 +416,7 @@ public class VisualizationCodeGenerator {
"var row = $('<tr>');" +
"sparklineImgTD = $('<td>');" +
"sparklineImgTD.attr('id', '" + sparklineID + "_img');" +
"sparklineImgTD.attr('width', '75');" +
"sparklineImgTD.attr('width', '65');" +
"sparklineImgTD.attr('align', 'right');" +
"sparklineImgTD.attr('class', '" + visualizationStyleClass + "');" +
"row.append(sparklineImgTD);" +

View file

@ -182,8 +182,11 @@ function createTable(tableID, tableContainer, tableData) {
var row = $('<tr>');
row.append($('<th>').html("Author"));
row.append($('<th>').html("Count"));
var authorTH = $('<th>');
authorTH.html("Author");
row.append(authorTH);
row.append($('<th>').html("Publications with <br />" + $('#ego_label').text()));
header.append(row);

View file

@ -119,6 +119,10 @@ table.sparkline_wrapper_table td, th {
visibility:hidden;*/
}
#coauthorships_table th {
vertical-align: top;
}
</style>
<!--[if IE]>
@ -129,7 +133,9 @@ table.sparkline_wrapper_table td, th {
padding-bottom:15px;
}
#ego_label {
margin-left:-3px;
}
</style>
<![endif]-->
@ -161,7 +167,7 @@ table.sparkline_wrapper_table td, th {
<h2 class="sub_headings">Co-Author Network
<%-- A simple if/else condition --%>
<c:choose>
<c:when test='${numOfCoAuthorShips > 0}'>
<c:when test="${numOfCoAuthorShips > 0 || numOfAuthors > 0}">
<a href="${coAuthorshipDownloadFile}">(.GraphML File)</a></h2>
</c:when>
<c:otherwise>
@ -180,7 +186,7 @@ table.sparkline_wrapper_table td, th {
</div>
<c:if test='${numOfCoAuthorShips > 0}'>
<c:if test='${numOfCoAuthorShips > 0 || numOfAuthors > 0}'>
<div id="bodyPannel">
@ -195,6 +201,8 @@ table.sparkline_wrapper_table td, th {
<div id="dataPanel">
<br />
<br />
<div id="profileImage"></div>
<div class="bold"><strong><span id="authorName" class="neutral_author_name">&nbsp;</span></strong></div>