@@ -, +, @@ https://github.com/bywatersolutions/koha-plugin-barcode-transformer/releases/ type in some valid barcodes, but prefix them with X and postfix them with Y, e.g. X123456Y --- labels/label-edit-batch.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/labels/label-edit-batch.pl +++ a/labels/label-edit-batch.pl @@ -23,9 +23,10 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Output qw( output_html_with_http_headers ); +use C4::Circulation qw( barcodedecode ); use C4::Creators qw( get_label_summary html_table ); use C4::Labels; +use C4::Output qw( output_html_with_http_headers ); use Koha::Items; @@ -89,6 +90,7 @@ elsif ($op eq 'add') { push @item_numbers, $number; } elsif ($number_type eq "barcode" ) { # we must test in case an invalid barcode is passed in; we effectively disgard them atm + $number = barcodedecode($number) if $number; my $item = Koha::Items->find({barcode => $number}); push @item_numbers, $item->itemnumber if $item; } --