From cdd8b0b91d646fef9853cc8cf0bf8b2d71437c45 Mon Sep 17 00:00:00 2001 From: ryounes Date: Tue, 29 Mar 2011 13:46:24 +0000 Subject: [PATCH] NIHVIVO-2325 Retrieve property in core:hasRole list view query, since the view supports multiple properties, so the template knows which property is being displayed. --- .../body/partials/individual/propStatement-default.ftl | 6 +++++- .../body/partials/individual/propStatement-vitroLink.ftl | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/webapp/web/templates/freemarker/body/partials/individual/propStatement-default.ftl b/webapp/web/templates/freemarker/body/partials/individual/propStatement-default.ftl index 0d42bb0e2..5ae9359f1 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/propStatement-default.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/propStatement-default.ftl @@ -1,5 +1,9 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> -<#-- Default object property statement template --> +<#-- Default object property statement template. + + This template must be self-contained and not rely on other variables set for the individual page, because it + is also used to generate the property statement during a deletion. + --> ${statement.name!} ${statement.moniker!} diff --git a/webapp/web/templates/freemarker/body/partials/individual/propStatement-vitroLink.ftl b/webapp/web/templates/freemarker/body/partials/individual/propStatement-vitroLink.ftl index 51e785bfd..ddae44715 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/propStatement-vitroLink.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/propStatement-vitroLink.ftl @@ -1,6 +1,10 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> -<#-- Template for vitro:primaryLink and vitro:additionalLink --> +<#-- Template for vitro:primaryLink and vitro:additionalLink. + + This template must be self-contained and not rely on other variables set for the individual page, because it + is also used to generate the property statement during a deletion. + --> <#assign linkText> <#if statement.anchor??>${statement.anchor}