diff --git a/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl b/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl index 60227a67..356c759b 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-visualizationFoafPerson.ftl @@ -22,9 +22,9 @@ <#assign coAuthorVisUrl = individual.coAuthorVisUrl> <#assign mapOfScienceVisUrl = individual.mapOfScienceUrl> - <#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"> - information icon + Publications in VIVO
 
@@ -52,6 +52,7 @@ <#if isInvestigator> diff --git a/productMods/templates/freemarker/visualization/publication/personPublicationSparklineContent.ftl b/productMods/templates/freemarker/visualization/publication/personPublicationSparklineContent.ftl index e5303fca..360c29dd 100644 --- a/productMods/templates/freemarker/visualization/publication/personPublicationSparklineContent.ftl +++ b/productMods/templates/freemarker/visualization/publication/personPublicationSparklineContent.ftl @@ -129,38 +129,34 @@ var totalPublicationCount = knownYearPublicationCounts + unknownYearPublicationCounts; - <#if sparklineVO.shortVisMode> - - <#-- We want to display how many publication counts were considered, so this is used to calculate this. --> - - var shortSparkRows = sparklineDataView.getViewRows(); - var renderedShortSparks = 0; - $.each(shortSparkRows, function(index, value) { - renderedShortSparks += data.getValue(value, 1); - }); - - /* - In case that there are only unknown publications we want the text to mention these counts, - which would not be mentioned in the other case because the renderedShortSparks only hold counts - of publications which have any date associated with it. - */ - var totalPubs = onlyUnknownYearPublications ? unknownYearPublicationCounts : renderedShortSparks; - - if (totalPubs === 1) { - var pubDisplay = "publication"; - } else { - var pubDisplay = "publications"; - } - - $('#${sparklineContainerID} td.sparkline_number').text(totalPubs).css("font-weight", "bold").attr("class", "grey").append(" "+ pubDisplay +"
"); - - var sparksText = ' within the last 10 years'; - - if (totalPubs !== totalPublicationCount) { - sparksText += ' (' + totalPublicationCount + ' total)'; - } - - <#else> + <#if sparklineVO.shortVisMode> + + <#-- We want to display how many publication counts were considered, so this is used to calculate this. --> + + var shortSparkRows = sparklineDataView.getViewRows(); + var renderedShortSparks = 0; + $.each(shortSparkRows, function(index, value) { + renderedShortSparks += data.getValue(value, 1); + }); + + /* + In case that there are only unknown publications we want the text to mention these counts, + which would not be mentioned in the other case because the renderedShortSparks only hold counts + of publications which have any date associated with it. + */ + var totalPubs = onlyUnknownYearPublications ? unknownYearPublicationCounts : renderedShortSparks; + + $('#${sparklineContainerID} td.sparkline_number').text(totalPubs + " in the last 10 full").css("font-weight", "bold").css("font-size",".85em").attr("class", "grey"); + + var sparksText = "years"; + + if (totalPubs !== totalPublicationCount) { + sparksText += ' (' + totalPublicationCount + ' total)' ; + } + + sparksText += " information icon" ; + + <#else> /* * Sparks that will be rendered will always be the one's which has