Bug 27546: Add 'Search within results' search box
authorNick Clemens <nick@bywatersolutions.com>
Thu, 21 Jan 2021 14:23:35 +0000 (14:23 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Jul 2022 12:23:25 +0000 (09:23 -0300)
commit869b1d9f8f1e00de6ad7f8b4a957751fafd2e24f
tree5a6fbbf843dc33a324c1dfd0bfaf0e36d7c6cdff
parent7b03771eb2f02d809ecca9ddfbeb49d0b33deec1
Bug 27546: Add 'Search within results' search box

This enhancement adds a new input above the search results allowing one to search within the results. The search
box will take a query and add it as a limit to the previous search

These patches make a slight change to the search header, passing the dropdown selection as a parameter rather thandirectly.

Searching this way is functionally equivaled to adding 'AND' with the new term to original results.

To test:
1 - Apply patch
2 - Search on staff client wiht a term that returns results
3 - Note the new 'Search within results box'
4 - Add a search term
5 - Note new results and confirm they are as expected
6 - Enable IntranetCatalogSearchPulldown and confirm the dropdown works as expected
7 - Edit your search - the reinfements appear in the limits section and can be removed

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt