1. Refactored the vis code geenrators for publication, coauthor, coinvestigator, grants sparklines to remove unused code.

2. Changed logic to not to generate link to csv downloads if there is 0 publication/grant for an individual.
This commit is contained in:
cdtank 2011-02-08 21:22:55 +00:00
parent 4f7d3b8302
commit c2a0816ec1
10 changed files with 189 additions and 1687 deletions

View file

@ -187,9 +187,11 @@
if (totalPubs !== totalPublicationCount) {
sparksText += ' (' + totalPublicationCount + ' total)';
}
if (totalPublicationCount) {
sparksText += ' <br /><a href="${sparklineVO.downloadDataLink}">(.CSV File)</a> ';
}
sparksText += ' <br /><a href="${sparklineVO.downloadDataLink}">(.CSV File)</a> ';
</#if>
if (!onlyUnknownYearPublications) {

View file

@ -189,7 +189,10 @@
sparksText += ' (' + totalGrantCount + ' total)';
}
sparksText += '<br /> <a href="${sparklineVO.downloadDataLink}">(.CSV File)</a> ';
if (totalGrantCount) {
sparksText += '<br /> <a href="${sparklineVO.downloadDataLink}">(.CSV File)</a> ';
}
</#if>
if (!onlyUnknownYearGrants) {

View file

@ -188,10 +188,11 @@
if (totalGrants !== totalGrantCount) {
sparksText += ' (' + totalGrantCount + ' total)';
}
if (totalGrantCount) {
sparksText += '<br /> <a href="${sparklineVO.downloadDataLink}" >(.CSV File)</a> ';
}
sparksText += '<br /> <a href="${sparklineVO.downloadDataLink}" >(.CSV File)</a> ';
</#if>
if (!onlyUnknownYearGrants) {

View file

@ -189,8 +189,11 @@
if (totalPubs !== totalPublicationCount) {
sparksText += ' (' + totalPublicationCount + ' total)';
}
sparksText += ' <br /><a href="${sparklineVO.downloadDataLink}">(.CSV File)</a> ';
if (totalPublicationCount) {
sparksText += ' <br /><a href="${sparklineVO.downloadDataLink}">(.CSV File)</a> ';
}
</#if>
if (!onlyUnknownYearPublications) {