From dbd51e342c429535e253aee819168f34ce0d4b0e Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Thu, 7 May 2026 20:09:59 +0200 Subject: [PATCH] Bug 42555: (Bug 25314 follow-up) Destroyed labels for customized facets After applying Bug 25314, customized facets generated from mappings.yaml are displayed with the technical type_id instead of the proper label. Test plan: ========== 1. In KTD with Elasticsearch enabled, add the following to admin/searchengine/elasticsearch/mappings.yaml su-gen: facet_order: 33 label: Genre/Form mappings: - facet: 1 marc_field: 655a marc_type: marc21 sort: 1 suggestible: '' opac: 1 staff_client: 1 type: '' Reindex with: koha-elasticsearch --rebuild -r -d -b kohadev 2. In the OPAC, at the bottom of the facets area, you should see a facet labeled su-gen_id instead of Genre/Form. 3. Apply the patch ; restart_all. 4. The facet should now display the correct label: Genre/Form. Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc index b83b0c06cb..36a26e8cad 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -81,7 +81,7 @@ [% CASE 'Languages' %] Languages [% CASE %] - [% facets_loo.type_id | html %] + [% facets_loo.label | html %] [% END %]