From eb2e44b89e9f2f872450847a60b2bfc34a2fe0d3 Mon Sep 17 00:00:00 2001 From: tylerjmchugh <163562062+tylerjmchugh@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:01:21 -0400 Subject: [PATCH] Update home page "browse by" to display facet as label if there is only one (#8426) (#8449) * Update home page to display facet as label if there is only one * Show label with a single facet * Fix bug with single facet --- .../resources/catalog/views/default/templates/home.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web-ui/src/main/resources/catalog/views/default/templates/home.html b/web-ui/src/main/resources/catalog/views/default/templates/home.html index 7027d391ea0..d63336292af 100644 --- a/web-ui/src/main/resources/catalog/views/default/templates/home.html +++ b/web-ui/src/main/resources/catalog/views/default/templates/home.html @@ -118,9 +118,12 @@

topMaps

- browseBy + browseBy + + {{::('facet-' + homeFacet.list[0]) | facetKeyTranslator}} +

-
+