[Koha-bugs] [Bug 35728] Add option to NOT redirect to result when search returns only one record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 9 00:13:59 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35728

--- Comment #1 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 160668
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160668&action=edit
Bug 35728: Add ability to NOT redirect to result when search returns only one
record

This enhancement adds a new system preference RedirectToSoleResult. By default
it is enabled, which matches current behaviour - to redirect to the detail page
if it is the only search result.

To test:

1) Apply the patch, install database updates, restart services.
2) Go to Koha Administration -> Global system preferences. The
RedirectToSoleResult system preference is in the Searching tab. Confirm it is
enabled (set to "Redirect") by default.
3) Conduct a catalogue search on the staff interface that you know will return
a single result. Confirm you are redirected to the detail page.
4) Do the same search on the OPAC. Confirm you are redirected to the detail
page.
5) Go back to the system preferences and disable the RedirectToSoleResult
system preference by setting it to "Don't redirect"
6) Do the searches again on the staff interface and OPAC. Confirm you are NOT
redirected to the detail page, and the search results page shows as expected.

Sponsored-by: Education Services Australia SCIS

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list