[Koha-bugs] [Bug 24219] Elasticsearch needs to remember sort preference when returning to result list
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 24 13:54:01 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24219
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #96390|0 |1
is obsolete| |
--- Comment #5 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 99512
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99512&action=edit
Bug 24219: Preserve sort order when returning to result list
There is a mismatch between sort_cgi, sort and sort_by variables.
* sort_cgi
I did not find relevant occurrences of sort_cgi in the git log of both
search.pl and results.tt. So it seems that it never worked correctly.
* sort
It is the JS variable use in browser.js
* sort_by is the search.pl parameter to set the sort_by option
Test plan:
1. Perform a search in the staff client
2. Change the sort order to something different (try Author A-Z)
3. Click on a result to view the record
4. Click on "Results" button on left side to return to result list
=> Without this patch the result list is sorted by relevancy
=> With this patch applied the Author A-Z is kept
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list