NIHVIVO-2259: modified text on foaf person sparkline to clarify these are VIVO only pubs
This commit is contained in:
parent
21991a545d
commit
1a3e72ad33
2 changed files with 31 additions and 34 deletions
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<#assign googleJSAPI = "https://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221%22%2C%22packages%22%3A%5B%22imagesparkline%22%5D%7D%5D%7D">
|
<#assign googleJSAPI = "https://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221%22%2C%22packages%22%3A%5B%22imagesparkline%22%5D%7D%5D%7D">
|
||||||
|
|
||||||
<img class="infoIcon" src="${urls.images}/iconInfo.png" alt="information icon" title="The publication information may be incomplete" />
|
<span id="sparklineHeading">Publications in VIVO</span>
|
||||||
|
|
||||||
<div id="vis_container_coauthor"> </div>
|
<div id="vis_container_coauthor"> </div>
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var visualizationUrl = '${urls.base}/visualizationAjax?uri=${individual.uri?url}';
|
var visualizationUrl = '${urls.base}/visualizationAjax?uri=${individual.uri?url}';
|
||||||
|
var infoIconSrc = '${urls.images}/iconInfo.png';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<#if isInvestigator>
|
<#if isInvestigator>
|
||||||
|
|
|
@ -146,20 +146,16 @@
|
||||||
*/
|
*/
|
||||||
var totalPubs = onlyUnknownYearPublications ? unknownYearPublicationCounts : renderedShortSparks;
|
var totalPubs = onlyUnknownYearPublications ? unknownYearPublicationCounts : renderedShortSparks;
|
||||||
|
|
||||||
if (totalPubs === 1) {
|
$('#${sparklineContainerID} td.sparkline_number').text(totalPubs + " in the last 10 full").css("font-weight", "bold").css("font-size",".85em").attr("class", "grey");
|
||||||
var pubDisplay = "publication";
|
|
||||||
} else {
|
|
||||||
var pubDisplay = "publications";
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#${sparklineContainerID} td.sparkline_number').text(totalPubs).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> "+ pubDisplay +"<br/></span>");
|
var sparksText = "years";
|
||||||
|
|
||||||
var sparksText = ' within the last 10 years';
|
|
||||||
|
|
||||||
if (totalPubs !== totalPublicationCount) {
|
if (totalPubs !== totalPublicationCount) {
|
||||||
sparksText += ' (' + totalPublicationCount + ' total)';
|
sparksText += ' (' + totalPublicationCount + ' total)' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sparksText += " <img class='infoIcon' src='" + infoIconSrc + "' height='16px' width='16px' alt='information icon' title='These numbers are based solely on publications that have been loaded into this VIVO application.' />" ;
|
||||||
|
|
||||||
<#else>
|
<#else>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue