From c4091eaa1f24f12fd7ae221341cfbf95e1d0b6c6 Mon Sep 17 00:00:00 2001 From: hjkhjk54 Date: Thu, 23 Feb 2012 18:15:04 +0000 Subject: [PATCH] Changes for NIHVIVO-3629: removing spaces in the href links and ids for property groups and replacing them with underscores. --- .../body/partials/individual/individual-properties.ftl | 4 +++- .../partials/individual/individual-propertyGroupMenu.ftl | 6 ++++-- webapp/web/templates/freemarker/lib/lib-properties.ftl | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl b/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl index fc322ab25..4a341d795 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/individual-properties.ftl @@ -16,7 +16,9 @@ <#-- Display the group heading --> <#if groupName?has_content> -

${groupName?capitalize}

+ <#--the function replaces spaces in the name with underscores, also called for the property group menu--> + <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) > +

${groupName?capitalize}

<#else>

Properties

diff --git a/webapp/web/templates/freemarker/body/partials/individual/individual-propertyGroupMenu.ftl b/webapp/web/templates/freemarker/body/partials/individual/individual-propertyGroupMenu.ftl index 04fec93b7..a7b7bf618 100644 --- a/webapp/web/templates/freemarker/body/partials/individual/individual-propertyGroupMenu.ftl +++ b/webapp/web/templates/freemarker/body/partials/individual/individual-propertyGroupMenu.ftl @@ -12,11 +12,13 @@