Bug 23006: Cannot use inventory with barcodes containing special chars
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 29 May 2019 13:46:15 +0000 (13:46 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 11 Jun 2019 14:46:18 +0000 (14:46 +0000)
commit9c4c9d17e4c48db760d0f75e01f0a85c9c443e11
tree137e659153763a05acec61ff6e7b5c2651ddf35a
parent6a63b21c9f0c7abf516757e27395a5b347d1c4b6
Bug 23006: Cannot use inventory with barcodes containing special chars

If a barcode contains special characters like $, the regex in inventory
does no longer work.
This fix (as suggested by Jonathan) replaces the regex by a eq compare.

Test plan:
Pick one barcode and add a $ somewhere in the middle, say 123$456.
Include this barcode in a barcode file for inventory.
Run inventory on that file and verify that barcode was read and datelastseen
was updated. The barcode should not be reported as missing (not scanned).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 851d41ab6b9ec28901086d6a6ce15b3fd589182a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c868ccc360189d0b5ea5b7c096ba325a304070d0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
tools/inventory.pl