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>');" + "var row = $('<tr>');" +
"sparklineImgTD = $('<td>');" + "sparklineImgTD = $('<td>');" +
"sparklineImgTD.attr('id', '" + sparklineID + "_img');" + "sparklineImgTD.attr('id', '" + sparklineID + "_img');" +
"sparklineImgTD.attr('width', '75');" + "sparklineImgTD.attr('width', '65');" +
"sparklineImgTD.attr('align', 'right');" + "sparklineImgTD.attr('align', 'right');" +
"sparklineImgTD.attr('class', '" + visualizationStyleClass + "');" + "sparklineImgTD.attr('class', '" + visualizationStyleClass + "');" +
"row.append(sparklineImgTD);" + "row.append(sparklineImgTD);" +

View file

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

View file

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

View file

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