]> git.koha-community.org Git - koha.git/commit
Bug 31253: Item search in staff interface should call barcodedecode if the search...
authorKyle Hall <kyle@bywatersolutions.com>
Thu, 28 Jul 2022 13:13:09 +0000 (09:13 -0400)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 18 Jul 2023 11:48:26 +0000 (11:48 +0000)
commit6130a7482dc9def91b514f059380e8f2f5eab6e9
tree629232fb012c4ae2da408028433958df779a7f36
parentd024f6a22521b9242fae58bb789feb92d4b3b736
Bug 31253: Item search in staff interface should call barcodedecode if the search index is a barcode

We should run any inputted barcode through barcodedecode before passing it to any subroutines.
This was missed during the initial development of bug 26351.

Test Plan:
1) Set itemBarcodeInputFilter to "Remove spaces from"
2) Create an item with the barcode "MYTEST"
3) Browse to the staff side advanced search
4) Run a barcode search for "MY TEST"
5) Note no results are round
6) Apply this patch
7) Restart all the things!
8) Repeat your search
9) Note the item was found!

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: fixed typo in comment
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d735a5804ba5f2a63bf1dcd3925ace9f872ae0ce)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 41d9b86323dec57a98bee6387a608a051d85f450)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
catalogue/itemsearch.pl