Bug 30840: Add support for barcode filters to course reserves
authorNick Clemens <nick@bywatersolutions.com>
Tue, 24 May 2022 18:27:30 +0000 (18:27 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Tue, 21 Jun 2022 13:40:30 +0000 (15:40 +0200)
commit4855d41952e3737f92f57a1ad2197472d47681b6
treecfe9cf1101048d119574e6191d922b6af191f561
parent88e6f1f3bbbb89d4fa3e36ff6555880561c0676d
Bug 30840: Add support for barcode filters to course reserves

This bug adds support for barcode filters on the inputs in the course reserves module.

To test:
1 - Set itemBarcodeInputFilter to 'Remove spaces from'
2 - Find a barcode in your system and add spaces between each characters
    e.g. 3 9 9 9 9 0 0 0 0 0 0 8 1 8
3 - Past that barcode into the checkin box, success
4 - Browse to course reserves, ensure you have a course or create on
5 - Test adding a reserve, batch adding a reserve, and batch removing reserves
6 - The pasted barcode does not in any
7 - Apply patch and restart
8 - Pasted barcode with spaces can now successfuly be added, batch added, and batch removed from courses

Signed-off-by: Jason Robb <jrobb@sekls.org>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b8a18702d291210f9d62ca9daa747ec06f2cc8f6)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 93cd916cc18e9180943cbb76ea3ba6740318a549)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
course_reserves/add_items.pl
course_reserves/batch_add_items.pl
course_reserves/batch_rm_items.pl