Lines 282-288
foreach my $item (@items) {
Link Here
|
282 |
# checking for holds |
282 |
# checking for holds |
283 |
my $item_object = Koha::Items->find( $item->{itemnumber} ); |
283 |
my $item_object = Koha::Items->find( $item->{itemnumber} ); |
284 |
my $holds = $item_object->current_holds; |
284 |
my $holds = $item_object->current_holds; |
285 |
if ( my $first_hold = $holds->next ) { |
285 |
my $first_hold = $holds->next; |
|
|
286 |
$item->{holds_count} = $holds->count; |
287 |
if ( $first_hold && $first_hold->priority == 0 ) { |
286 |
my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); |
288 |
my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); |
287 |
$item->{backgroundcolor} = 'reserved'; |
289 |
$item->{backgroundcolor} = 'reserved'; |
288 |
$item->{reservedate} = $first_hold->reservedate; |
290 |
$item->{reservedate} = $first_hold->reservedate; |