1. Added fix for inappropriate display of tables.

2. Minor styling changes.
3. Code cleanup
This commit is contained in:
cdtank 2010-07-09 16:49:36 +00:00
parent 48d27df80d
commit eae82a00b4
3 changed files with 29 additions and 25 deletions

View file

@ -149,9 +149,12 @@ public class VisualizationCodeGenerator {
" border-spacing: 0;" + " border-spacing: 0;" +
" vertical-align: inherit;" + " vertical-align: inherit;" +
"}" + "}" +
/*".sparkline_wrapper_table table{" + "table.sparkline_wrapper_table td, th {" +
" vertical-align: bottom;" + " vertical-align: bottom;" +
"}" +*/ "}" +
".vis_link {" +
" padding-top: 5px;" +
"}" +
"td.sparkline_number { text-align:right; padding-right:5px; }" + "td.sparkline_number { text-align:right; padding-right:5px; }" +
"td.sparkline_text {text-align:left;}" + "td.sparkline_text {text-align:left;}" +
/*"#sparkline_data_table {" + /*"#sparkline_data_table {" +
@ -557,20 +560,6 @@ public class VisualizationCodeGenerator {
String fullTimelineLink; String fullTimelineLink;
if (yearToPublicationCount.size() > 0) { if (yearToPublicationCount.size() > 0) {
// String fullTimelineNetworkURL = uri.toString() + "?" +
// VisualizationFrameworkConstants.INDIVIDUAL_URI_URL_HANDLE +
// "=" + URLEncoder.encode(individualURI,
// VisualizationController.URL_ENCODING_SCHEME).toString() +
// "&" +
// "vis" +
// "=" + URLEncoder.encode(VisualizationController
// .PERSON_PUBLICATION_COUNT_VIS_URL_VALUE,
// VisualizationController.URL_ENCODING_SCHEME).toString() +
// "&" +
// VisualizationFrameworkConstants.RENDER_MODE_URL_HANDLE +
// "=" + URLEncoder.encode(VisualizationFrameworkConstants.STANDALONE_RENDER_MODE_URL_VALUE,
// VisualizationController.URL_ENCODING_SCHEME).toString();
String fullTimelineNetworkURL = contextPath String fullTimelineNetworkURL = contextPath
+ "/admin/visQuery" + "/admin/visQuery"
@ -599,7 +588,7 @@ public class VisualizationCodeGenerator {
} }
divContextCode.append("<p>" + fullTimelineLink + "</p>"); divContextCode.append("<p class=\"vis_link\">" + fullTimelineLink + "</p>");
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace(); e.printStackTrace();

View file

@ -83,8 +83,20 @@
position:absolute; position:absolute;
/*width:380px;*/ /*width:380px;*/
} }
</style> </style>
<!--[if IE]>
<style type="text/css">
#vis_container {
padding-bottom:15px;
}
</style>
<![endif]-->
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--

View file

@ -59,7 +59,8 @@
.sub_headings { .sub_headings {
color: #121b3c; color: #121b3c;
padding-top: 5px; padding-top: 10px;
margin-bottom: 0.3em;
} }
.sub_headings a { .sub_headings a {
@ -67,6 +68,9 @@
font-weight:normal; font-weight:normal;
} }
table.sparkline_wrapper_table td, th {
vertical-align: bottom;
}
.inline_href { .inline_href {
} }
@ -167,7 +171,8 @@
<c:set var='authorsText' value='multi-author' /> <c:set var='authorsText' value='multi-author' />
</c:if> </c:if>
<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> <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>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
@ -195,6 +200,7 @@
<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>
<div class="italicize"><span id="profileMoniker" class="author_moniker"></span></div> <div class="italicize"><span id="profileMoniker" class="author_moniker"></span></div>
<div><a href="#" id="profileUrl">VIVO profile</a> | <a href="#" id="coAuthorshipVisUrl">Co-author network</a></div>
<br /> <br />
<div class="works"><span class="numbers" style="width: 40px;" id="works"></span>&nbsp;&nbsp;<span class="title">Works</span></div> <div class="works"><span class="numbers" style="width: 40px;" id="works"></span>&nbsp;&nbsp;<span class="title">Works</span></div>
<div class="works"><span class="numbers" style="width: 40px;" id="coAuthors"></span>&nbsp;&nbsp;<span>Co-author(s)</span></div> <div class="works"><span class="numbers" style="width: 40px;" id="coAuthors"></span>&nbsp;&nbsp;<span>Co-author(s)</span></div>
@ -202,11 +208,6 @@
<div class="works" id="fPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="firstPublication"></span>&nbsp;&nbsp;<span>First Publication</span></div> <div class="works" id="fPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="firstPublication"></span>&nbsp;&nbsp;<span>First Publication</span></div>
<div class="works" id="lPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="lastPublication"></span>&nbsp;&nbsp;<span>Last Publication</span></div> <div class="works" id="lPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="lastPublication"></span>&nbsp;&nbsp;<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> </div>
</div> </div>
@ -232,6 +233,8 @@
</div> </div>
</c:if> </c:if>
<div style="clear:both;"></div>
</div> </div>
</c:if> </c:if>