Bug 35916: Purchase suggestions bibliographic filter should be a "contains" search
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Fri, 23 Feb 2024 19:16:27 +0000 (14:16 -0500)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 8 Mar 2024 17:58:27 +0000 (18:58 +0100)
commit3d7ea3bd99a0b6c68d7bcd763559d43910c4c9e7
treeceda514793c303a2551710c05396c0800adceaa0
parentc91a43ca1f1cbc9b4174ac435428086fc3ed03db
Bug 35916: Purchase suggestions bibliographic filter should be a "contains" search

Make all bibliographic information fields filter do a contain match
rather than an exact match

Test plan:
1. Create a purchase suggestion with a multi-word title (e.g. one day in december)
   1.1. Go to Acquisitions > Suggestions > New purchase suggestion
   1.2. Enter a title (e.g. one day in december)
   1.3. Click on Submit your suggestion

2. Search for one of the words in the title
   2.1. In the "Filter by" section, click on Bibliographic information
   2.2. In the title field, enter one of the words of the title (e.g. december)
   2.3. Click Go
   --> No results

3. Apply the patch
4. Redo step 2 and notice there is now a valid result

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
suggestion/suggestion.pl