]> git.koha-community.org Git - koha.git/commit
Bug 19585: Inventory: Allow additional separators in a barcode file
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 2 Nov 2017 09:55:42 +0000 (10:55 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 19 Jan 2018 18:50:32 +0000 (15:50 -0300)
commit2c4974cc1246ceb5d84ed01ce70456ef34b9b330
treedd8bcc7f2e893043cf8d8fa14273e3d5624a39fa
parentdfc82dbc418bc79781df3a9e231e60491c501220
Bug 19585: Inventory: Allow additional separators in a barcode file

This patch makes \n, \r, |, comma, semicolon and hyphen ('-') all valid
separators between barcodes passed to inventory.
An additional grep removes empty barcodes. (Note: The grep looks for at
least one non-whitespace character. We could be more specific, but this
allows for more flexibility like testing with alphanumeric barcodes etc.)

Test plan:
Upload a barcode file that contains various allowed separators.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jenny Way <jwayway@hotmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
tools/inventory.pl