@@ -, +, @@ --- virtualshelves/shelves.pl | 1 + 1 file changed, 1 insertion(+) --- a/virtualshelves/shelves.pl +++ a/virtualshelves/shelves.pl @@ -154,6 +154,7 @@ if ( $op eq 'add_form' ) { if ( $shelf->can_biblios_be_added( $loggedinuser ) ) { my @barcodes = split /\n/, $barcodes; # Entries are effectively passed in as a separated list foreach my $barcode (@barcodes){ + $barcode =~ s/^\s+//; # trim all whitespaces at the beginning $barcode =~ s/\r$//; # strip any naughty return chars next if $barcode eq ''; my $item = Koha::Items->find({barcode => $barcode}); --