diff --git a/productMods/templates/freemarker/body/partials/individual/individual-sparklineVisualization.ftl b/productMods/templates/freemarker/body/partials/individual/individual-sparklineVisualization.ftl index b816f727..3dba7b2c 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-sparklineVisualization.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-sparklineVisualization.ftl @@ -3,16 +3,16 @@ <#-- Template for sparkline visualization on individual profile page --> <#-- Determine whether this person is an author --> -<#assign authorship = propertyGroups.getProperty("${core}authorInAuthorship")!> +<#assign authorship = propertyGroups.getProperty("${core}authorInAuthorship")!false> <#assign isAuthor = p.hasStatements(authorship)!false /> <#-- Uncomment the following line for a quick confirmation on Publications logic --> <#--

Publications? <#if isAuthor>Ding Ding Ding!<#else>Wah Wuh!

--> <#-- Determine whether this person is involved in any grants --> -<#assign investigatorRole = propertyGroups.getProperty("${core}hasInvestigatorRole")!> -<#assign piRole = propertyGroups.getProperty("${core}hasPrincipalInvestigatorRole")!> -<#assign coPiRole = propertyGroups.getProperty("${core}hasCo-PrincipalInvestigatorRole")!> -<#if ( p.hasStatements(investigatorRole)?? || p.hasStatements(piRole)?? || p.hasStatements(coPiRole)?? )> +<#assign investigatorRole = propertyGroups.getProperty("${core}hasInvestigatorRole")!false> +<#assign piRole = propertyGroups.getProperty("${core}hasPrincipalInvestigatorRole")!false> +<#assign coPiRole = propertyGroups.getProperty("${core}hasCo-PrincipalInvestigatorRole")!false> +<#if ( p.hasStatements(investigatorRole) || p.hasStatements(piRole) || p.hasStatements(coPiRole) )> <#assign isInvestigator = true /> <#else> <#assign isInvestigator = false />