From 29beb62cd436af016dcb184a5943aa3577f1542c Mon Sep 17 00:00:00 2001 From: Ville Korjus Date: Tue, 23 May 2023 10:10:05 +0300 Subject: [PATCH] Bug 33734: Use raw filters with search filter links in facets.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using html filters breaks scandic characters in search term if one uses custom search filters. Use raw filters instead. To test: 1. Enable SavedSearchFilters syspref 2. Perform search with bib-level:("a") 3. Click "Save search as filter" and save 4. Perform search containing scandic character (åöä) 5. Use filter you just created => notice that scandic characters in search term are displayed incorrectly e.g. ä turns to ä 6. Apply this patch 7. Repeat steps 4 and 5 => scandic characters should now be displayed correctly Sponsored-by: Koha-Suomi Oy Signed-off-by: Sam Lau --- koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc index 2c56036f04..dcd17b1dee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc @@ -15,9 +15,9 @@ [% FOREACH search_filter IN search_filters %]
  • [% IF active_filters.${search_filter.id} %] - [% search_filter.name | html %][x] + [% search_filter.name | html %][x] [% ELSE %] - [% search_filter.name | html %] + [% search_filter.name | $raw %] [% END %]
  • [% END %] -- 2.30.2