]> 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:53:59 +0000 (11:53 -0300)
commit87e47855e2c7aedb533bd3d1318eba6906b97d7c
treed1217b33aee1a0b6124cd27130bc4567d40a54ce
parentf7d6d8754365da99721622736f18dd59eb3a03d1
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