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:
parent
4f7d3b8302
commit
c2a0816ec1
10 changed files with 189 additions and 1687 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue