]> git.koha-community.org Git - koha.git/commit
Bug 37333: Group search terms in a saved filter
authorNick Clemens <nick@bywatersolutions.com>
Thu, 11 Jul 2024 19:38:16 +0000 (19:38 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 18 Jul 2024 15:53:11 +0000 (17:53 +0200)
commit6cb3d72f49b519c101c61e7d64cab8e3286085f7
treed7bf6d02ee409953310e04b43917a9c512a05478
parent2accac5fd9a210c9aa0107c47522c7393b257c8c
Bug 37333: Group search terms in a saved filter

This patch surrounds the expanded query of a search filter in parnetheses to correctly
group the terms when searching

To test:
 1 - Enable system preference SavedSearchFilters
 2 - In staff client, perform an advanced search for:
     subject:internet OR subject:programming
 3 - Note results
 4 - Save search as filter, enabled in staff client and opac
 5 - Search for 'a'
 6 - Apply filter from top of facets on left hand side
 7 - Note results didn't change
 8 - Apply patch, restart all
 9 - Reload search, it now limits correctly
10 - Test on OPAC
11 - Test on both Zebra and Elastic
12 - Sign off :-)

Signed-off-by: Jake Deery <jake.deery@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/SearchFilter.pm
t/db_dependent/Koha/SearchFilters.t [new file with mode: 0755]