diff --git a/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl b/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl index ee7f9098c..32a73d007 100644 --- a/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl +++ b/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl @@ -5,12 +5,12 @@
<#-- Image --> <#assign individualImage> - <@p.imageLinks individual=individual - propertyGroups=propertyGroups - namespaces=namespaces - editable=editable - showPlaceholder="with_add_link" - placeholder="${urls.images}/placeholders/non.person.thumbnail.jpg" /> + <@p.image individual=individual + propertyGroups=propertyGroups + namespaces=namespaces + editable=editable + showPlaceholder="with_add_link" + placeholder="${urls.images}/placeholders/non.person.thumbnail.jpg" /> <#if ( individualImage?contains(' diff --git a/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl b/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl index 9713c1f0f..adb5f31d8 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/lib-properties.ftl @@ -129,7 +129,7 @@ name will be used as the label. --> <#-- Main image links --> <#-- Values for showPlaceholder: "always", "never", "with_add_link" --> -<#macro imageLinks individual propertyGroups namespaces editable showPlaceholder="never" placeholder=""> +<#macro image individual propertyGroups namespaces editable showPlaceholder="never" placeholder=""> <#local mainImage = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitroPublic}mainImage")!> <#local thumbUrl = individual.thumbUrl!> <#-- Don't assume that if the mainImage property is populated, there is a thumbnail image (though that is the general case).