Lines 260-266
foreach my $item (@items) {
Link Here
|
260 |
# checking for holds |
260 |
# checking for holds |
261 |
my $item_object = Koha::Items->find( $item->{itemnumber} ); |
261 |
my $item_object = Koha::Items->find( $item->{itemnumber} ); |
262 |
my $holds = $item_object->current_holds; |
262 |
my $holds = $item_object->current_holds; |
263 |
if ( my $first_hold = $holds->next ) { |
263 |
my $first_hold = $holds->next; |
|
|
264 |
$item->{holds_count} = $holds->count; |
265 |
if ( $first_hold && $first_hold->priority == 0 ) { |
264 |
my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); |
266 |
my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); |
265 |
$item->{backgroundcolor} = 'reserved'; |
267 |
$item->{backgroundcolor} = 'reserved'; |
266 |
$item->{reservedate} = $first_hold->reservedate; |
268 |
$item->{reservedate} = $first_hold->reservedate; |