From cdc8848c7235d5c8f92284ad2b0ee2c4b2093e8a Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Mon, 3 Aug 2020 17:30:00 +0200 Subject: [PATCH] Updates for templates --- .../freemarker/elenphExcerpt-internal.ftl | 15 ++++++++++----- .../main/webapp/templates/freemarker/rubrics.ftl | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/elenphExcerpt-internal.ftl b/webapp/src/main/webapp/templates/freemarker/elenphExcerpt-internal.ftl index 01650cde..9c7e409a 100644 --- a/webapp/src/main/webapp/templates/freemarker/elenphExcerpt-internal.ftl +++ b/webapp/src/main/webapp/templates/freemarker/elenphExcerpt-internal.ftl @@ -125,12 +125,17 @@ + <#assign htmlExcerpt = propertyGroups.pullProperty("https://iph.ras.ru/text_structures#htmlExcerpt")!> - <#if htmlExcerpt.statements?has_content && htmlExcerpt.type == "data"> -
- <@p.dataPropertyList htmlExcerpt editable /> - <#-- object property --> -
+ <#if htmlExcerpt?has_content > + <#if htmlExcerpt.statements?has_content && htmlExcerpt.type == "data"> +
+ <@p.dataPropertyList htmlExcerpt editable /> + <#-- object property --> +
+ <#else> +
Текст отрывка: <@p.addLink htmlExcerpt editable /> <@p.verboseDisplay htmlExcerpt />
+ <#assign works = propertyGroups.pullProperty("https://iph.ras.ru/text_structures#works")!> diff --git a/webapp/src/main/webapp/templates/freemarker/rubrics.ftl b/webapp/src/main/webapp/templates/freemarker/rubrics.ftl index 75d0b045..ae08ad5a 100644 --- a/webapp/src/main/webapp/templates/freemarker/rubrics.ftl +++ b/webapp/src/main/webapp/templates/freemarker/rubrics.ftl @@ -2,7 +2,7 @@ <#if !rubric.parentUri??> <#assign childs = rubric.childs?number> + <@openButton childs=childs/>${rubric.name}