My changes from r1974 were lost but the publication(s) malarkey is squashed once again
This commit is contained in:
parent
9332e8f9bc
commit
5030119bae
1 changed files with 18 additions and 2 deletions
|
@ -69,7 +69,15 @@
|
||||||
renderedShortSparks += data.getValue(value, 1);
|
renderedShortSparks += data.getValue(value, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#${sparklineContainerID} td.sparkline_number').text(parseInt(renderedShortSparks) + parseInt(${sparklineVO.unknownYearPublications})).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> publication(s) <br/></span>");
|
var totalPubs = parseInt(renderedShortSparks) + parseInt(${sparklineVO.unknownYearPublications});
|
||||||
|
|
||||||
|
if ( totalPubs > 1 ) {
|
||||||
|
var pubDisplay = "publications";
|
||||||
|
} else {
|
||||||
|
var pubDisplay = "publication";
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#${sparklineContainerID} td.sparkline_number').text(totalPubs).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> "+ pubDisplay +"<br/></span>");
|
||||||
|
|
||||||
var sparksText = ' within the last 10 years';
|
var sparksText = ' within the last 10 years';
|
||||||
|
|
||||||
|
@ -80,7 +88,15 @@
|
||||||
* any year associated with it. Hence.
|
* any year associated with it. Hence.
|
||||||
* */
|
* */
|
||||||
var renderedSparks = ${sparklineVO.renderedSparks};
|
var renderedSparks = ${sparklineVO.renderedSparks};
|
||||||
$('#${sparklineContainerID} td.sparkline_number').text(parseInt(renderedSparks) + parseInt(${sparklineVO.unknownYearPublications})).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> publication(s) <br/></span>");
|
var totalPubs = parseInt(renderedSparks) + parseInt(${sparklineVO.unkownYearPublications});
|
||||||
|
|
||||||
|
if ( totalPubs > 1 ) {
|
||||||
|
var pubDisplay = "publications";
|
||||||
|
} else {
|
||||||
|
var pubDisplay = "publication";
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#${sparklineContainerID} td.sparkline_number').text(totalPubs).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> "+ pubDisplay +"<br/></span>");
|
||||||
|
|
||||||
var sparksText = ' from <span class="sparkline_range">${sparklineVO.earliestYearConsidered?c}'
|
var sparksText = ' from <span class="sparkline_range">${sparklineVO.earliestYearConsidered?c}'
|
||||||
+ ' to ${sparklineVO.latestRenderedPublicationYear?c}</span> '
|
+ ' to ${sparklineVO.latestRenderedPublicationYear?c}</span> '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue