Bug 34171: Use barcodedecode when attaching items to another record
Bug 26351 added barcodecode that transforms scanned barcodes either by using itemBarcodeInputFilter or via a plugin to various pages in Koha, including checkout and checkin. But the feature for attaching items to a new record was missed. To test: * Add an item with barcode "ab" to any record * Set itemBarcodeInputFilter to "Remove spaces from" * Search for another record in the catalog * Edit > attach item > "a b" * The item is not found. * Apply patch, restart_all * Try again with "a b" * Verify that the item is found and attached to the record Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitcd033bfc60
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commite65437199a
) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
f76155250d
commit
c8eb02e5c8
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,7 @@ use Modern::Perl;
|
|||
|
||||
use CGI qw ( -utf8 );
|
||||
use C4::Auth qw( get_template_and_user );
|
||||
use C4::Circulation qw( barcodedecode );
|
||||
use C4::Output qw( output_html_with_http_headers );
|
||||
|
||||
use Koha::Biblios;
|
||||
|
@ -34,7 +35,8 @@ my $query = CGI->new;
|
|||
my $biblionumber = $query->param('biblionumber');
|
||||
|
||||
# The barcode of the item to move
|
||||
my $barcode = $query->param('barcode');
|
||||
my $barcode = barcodedecode($query->param('barcode'));
|
||||
|
||||
|
||||
my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue