]> git.koha-community.org Git - koha.git/commit
Bug 34058: Use buildSearchPatronQuery when searching for patrons on left side filters
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 27 Jun 2023 09:08:52 +0000 (09:08 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 9 Nov 2023 17:42:20 +0000 (14:42 -0300)
commitbd4f59cd9aef0b271450d97bd87ae29c60730bcd
tree80520695fc378ed38f87a45cd004a76a08869109
parentc162b8aa465bc5f5cd29751a5d8561789d0597a0
Bug 34058: Use buildSearchPatronQuery when searching for patrons on left side filters

This will now use the centered logic from buildSearchPatronQuery, not only
fixing the original issue of not being considering all the terms in the
search input, but also reusing already established code.

Test plan, k-t-d:
1) Install FreeForm, enable ILLModule sys pref, run:
bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) Create a FreeForm ILL request and input 23529000035676 in the cardnumber, that's "Henry Acevedo".
3) Go back to the ILL list table, input "henry" in the bottom "Patron" filter input and press the "Search" button, notice it fetches the request correctly.
4) Now do the the same search but with "henry acevedo", notice the request is not retrieved.
5) Apply patch. Repeat. Do the same for the "patron" input field and the "keyword" input field.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js