|
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 |
if ( $first_hold && $first_hold->priority <= 1 ) { #we should only display if this hold is up next in the queue |
| 264 |
my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); |
265 |
my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); |
| 265 |
$item->{backgroundcolor} = 'reserved'; |
266 |
$item->{backgroundcolor} = 'reserved'; |
| 266 |
$item->{reservedate} = $first_hold->reservedate; |
267 |
$item->{reservedate} = $first_hold->reservedate; |
| 267 |
- |
|
|