]> git.koha-community.org Git - koha.git/commit
Bug 37466: Add correct filter for sort_by in results.tt
authorDavid Cook <dcook@prosentient.com.au>
Thu, 25 Jul 2024 06:44:37 +0000 (06:44 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 13 Aug 2024 14:05:31 +0000 (11:05 -0300)
commit3af9002a0b7d297fcb10cda6f7e9d44c8de5a20b
tree615573b9e0ad1258fa1df5ec4f0691dd7d311ee3
parentff7d9c255a40d38e2690efd9bd25c28e1af32840
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 <victor@tuxayo.net>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt