From 3af9002a0b7d297fcb10cda6f7e9d44c8de5a20b Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 25 Jul 2024 06:44:37 +0000 Subject: [PATCH] Bug 37466: Add correct filter for sort_by in results.tt This patch replaces the $raw filter with the correct uri filter for the sort_by in results.tt Test plan: 1. Apply patch 2. Go to /cgi-bin/koha/catalogue/search.pl?count=20&sort_by=popularity_dsc&idx=kw&q=1 3. Click on "Edit this search" 4. Note that the "Popularity (most to least)" Sort by option is selected 5. Go to /cgi-bin/koha/catalogue/search.pl?count=20&sort_by=popularity_dsc&idx=kw&q=24y24ty2498294t9824yt9y23 6. Click on "Edit this search" 7. Note that the "Popularity (most to least)" Sort by option is selected Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Aleisha Amohia Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 3aef444d60..e3e9bcb3fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -65,7 +65,7 @@ [% UNLESS scan %] - Edit this search + Edit this search [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %] | Save search as filter [% END %] @@ -343,7 +343,7 @@ [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %][%# Coming from the basket or vendor view %]

View basket

[% END %] - Edit this search + Edit this search [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %] | Save search as filter [% END %] -- 2.39.5