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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 11 Mar 2024 14:30:25 +0000 (15:30 +0100)
commit8644a1165f19a18e2e2010f51a7f32597e08a6ee
tree81753549180544b5ede4b4923e9f72fbdb5c7306
parentde4f54b3fa6ca3dd30dc23e10f1f42630028216e
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>
(cherry picked from commit 3d7ea3bd99a0b6c68d7bcd763559d43910c4c9e7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
suggestion/suggestion.pl