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-top:-2%;
position:absolute;
width:380px;
/*width:380px;*/
}
</style>

View file

@ -162,7 +162,12 @@
</c:when>
<c:otherwise>
</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:choose>
@ -208,6 +213,8 @@
</c:if>
<c:if test='${numOfAuthors > 0}'>
<div class="vis_stats">
<h2 class="sub_headings">Tables</h2>
@ -227,32 +234,25 @@
</c:if>
</div>
</c:if>
</div>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
<c:choose>
<c:when test='${numOfCoAuthorShips > 0}'>
<c:if test='${numOfCoAuthorShips > 0}'>
$("#coauth_table_container").empty().html('<img id="loadingData" with="auto" src="${loadingImageLink}" />');
</c:when>
<c:otherwise>
setProfileName('no_coauthorships_person', $('#ego_label').text());
</c:otherwise>
</c:choose>
</c:if>
processProfileInformation("ego_label",
"ego_moniker",
"ego_profile_image",
jQuery.parseJSON(getWellFormedURLs("${requestScope.egoURIParam}", "profile_info")));
<c:if test='${numOfCoAuthorShips <= 0}'>
setProfileName('no_coauthorships_person', $('#ego_label').text());
</c:if>