From 50cbfd096c289583a4773edccf928e0cbd767d12 Mon Sep 17 00:00:00 2001 From: Francois Prunayre Date: Tue, 8 Oct 2024 07:59:18 +0200 Subject: [PATCH] Record view / Does not display thesaurus block if no keywords. --- .../catalog/views/default/less/gn_result_default.less | 3 +++ .../catalog/views/default/templates/recordView/technical.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web-ui/src/main/resources/catalog/views/default/less/gn_result_default.less b/web-ui/src/main/resources/catalog/views/default/less/gn_result_default.less index 53c83cc4b6d..48d5ead834f 100644 --- a/web-ui/src/main/resources/catalog/views/default/less/gn_result_default.less +++ b/web-ui/src/main/resources/catalog/views/default/less/gn_result_default.less @@ -331,6 +331,9 @@ } } // keywords + .gn-thesaurus:not(:has(button)) { + display: none !important; + } [data-gn-keyword-badges] { .btn { word-break: break-word; diff --git a/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html b/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html index 12495938b65..0fdc21a8737 100644 --- a/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html +++ b/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html @@ -62,7 +62,7 @@

cl_couplingType

&& viewConfig.internalThesaurus && viewConfig.internalThesaurus.indexOf(key) !== -1) || highlightedThesaurus.indexOf(key) === -1" - class="gn-margin-bottom flex-row" + class="gn-margin-bottom flex-row gn-thesaurus" >