1. Made minor style change for short sparkline.

2. Added more conditions & appropriate text for edge cases like 0 co-authorships.
This commit is contained in:
cdtank 2010-07-09 02:01:22 +00:00
parent 154c9e6dba
commit 835cf78a2b
2 changed files with 31 additions and 31 deletions

View file

@ -81,7 +81,7 @@
margin-left:24%; margin-left:24%;
margin-top:-2%; margin-top:-2%;
position:absolute; position:absolute;
width:380px; /*width:380px;*/
} }
</style> </style>

View file

@ -162,7 +162,12 @@
</c:when> </c:when>
<c:otherwise> <c:otherwise>
</h2> </h2>
<span id="no_coauthorships">Currently there are no multi-author papers for <span id="no_coauthorships_person">this author</span> in the VIVO database.</span>
<c:if test='${numOfAuthors > 0}'>
<c:set var='authorsText' value='multi-author' />
</c:if>
<span id="no_coauthorships">Currently there are no ${authorsText} papers for <span id="no_coauthorships_person">this author</span> in the VIVO database.</span>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
@ -208,9 +213,11 @@
</c:if> </c:if>
<div class="vis_stats"> <c:if test='${numOfAuthors > 0}'>
<h2 class="sub_headings">Tables</h2> <div class="vis_stats">
<h2 class="sub_headings">Tables</h2>
<div class="vis-tables"> <div class="vis-tables">
<p id="publications_table_container" class="datatable"> <p id="publications_table_container" class="datatable">
@ -226,33 +233,26 @@
</c:if> </c:if>
</div> </div>
</c:if>
</div> </div>
<script language="JavaScript" type="text/javascript"> <script language="JavaScript" type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){
<c:choose> <c:if test='${numOfCoAuthorShips > 0}'>
<c:when test='${numOfCoAuthorShips > 0}'>
$("#coauth_table_container").empty().html('<img id="loadingData" with="auto" src="${loadingImageLink}" />'); $("#coauth_table_container").empty().html('<img id="loadingData" with="auto" src="${loadingImageLink}" />');
</c:when> </c:if>
<c:otherwise>
setProfileName('no_coauthorships_person', $('#ego_label').text());
</c:otherwise>
</c:choose>
processProfileInformation("ego_label", processProfileInformation("ego_label",
"ego_moniker", "ego_moniker",
"ego_profile_image", "ego_profile_image",
jQuery.parseJSON(getWellFormedURLs("${requestScope.egoURIParam}", "profile_info"))); jQuery.parseJSON(getWellFormedURLs("${requestScope.egoURIParam}", "profile_info")));
<c:if test='${numOfCoAuthorShips <= 0}'>
setProfileName('no_coauthorships_person', $('#ego_label').text());
</c:if>