Lines 23-28
use CGI qw( -utf8 );
Link Here
|
23 |
use List::MoreUtils qw( uniq ); |
23 |
use List::MoreUtils qw( uniq ); |
24 |
|
24 |
|
25 |
use C4::Auth qw( get_template_and_user ); |
25 |
use C4::Auth qw( get_template_and_user ); |
|
|
26 |
use C4::Circulation qw( barcodedecode ); |
26 |
use C4::Output qw( output_html_with_http_headers ); |
27 |
use C4::Output qw( output_html_with_http_headers ); |
27 |
use C4::CourseReserves qw( GetCourse GetCourseItem GetItemCourseReservesInfo DelCourse DelCourseReserve ); |
28 |
use C4::CourseReserves qw( GetCourse GetCourseItem GetItemCourseReservesInfo DelCourse DelCourseReserve ); |
28 |
|
29 |
|
Lines 52-57
elsif ( $action eq 'batch_rm' ) {
Link Here
|
52 |
my @item_and_count; |
53 |
my @item_and_count; |
53 |
|
54 |
|
54 |
foreach my $bar (@barcodes) { |
55 |
foreach my $bar (@barcodes) { |
|
|
56 |
$bar = barcodedecode($bar) if $bar; |
55 |
my $item = Koha::Items->find( { barcode => $bar } ); |
57 |
my $item = Koha::Items->find( { barcode => $bar } ); |
56 |
if($item) { |
58 |
if($item) { |
57 |
my $courseitem = GetCourseItem(itemnumber => $item->id); |
59 |
my $courseitem = GetCourseItem(itemnumber => $item->id); |
58 |
- |
|
|