Bug 8132: No changes but disable checkboxes
[koha.git] / tools / batchMod.pl
index 8b13257..a7e3188 100755 (executable)
@@ -633,6 +633,7 @@ sub BuildItemsData{
             $this_row{biblionumber} = $biblio->biblionumber;
             $this_row{holds}        = $biblio->holds->count;
             $this_row{item_holds}   = Koha::Holds->search( { itemnumber => $itemnumber } )->count;
+            $this_row{item}         = Koha::Items->find($itemnumber);
 
                        if (%this_row) {
                                push(@big_array, \%this_row);
@@ -658,6 +659,7 @@ sub BuildItemsData{
       $row_data{biblionumber} = $row->{biblionumber};
       $row_data{holds}        = $row->{holds};
       $row_data{item_holds}   = $row->{item_holds};
+      $row_data{item}         = $row->{item};
       my $is_on_loan = C4::Circulation::IsItemIssued( $row->{itemnumber} );
       $row_data{onloan} = $is_on_loan ? 1 : 0;
                        push(@item_value_loop,\%row_data);