|
Lines 658-664
if ( C4::Context->preference('OPACAcquisitionDetails' ) ) {
Link Here
|
| 658 |
}; |
658 |
}; |
| 659 |
} |
659 |
} |
| 660 |
|
660 |
|
| 661 |
my $can_item_be_reserved = 0; |
661 |
my $has_reservable_items = 0; |
| 662 |
my ( $itemloop_has_images, $otheritemloop_has_images ); |
662 |
my ( $itemloop_has_images, $otheritemloop_has_images ); |
| 663 |
if ( not $viewallitems and $items->count > $max_items_to_display ) { |
663 |
if ( not $viewallitems and $items->count > $max_items_to_display ) { |
| 664 |
$template->param( |
664 |
$template->param( |
|
Lines 683-691
else {
Link Here
|
| 683 |
$item_info->{home_library_info} = $opac_info_home->content if $opac_info_home; |
683 |
$item_info->{home_library_info} = $opac_info_home->content if $opac_info_home; |
| 684 |
|
684 |
|
| 685 |
if ( $patron ) { |
685 |
if ( $patron ) { |
| 686 |
$can_item_be_reserved = IsAvailableForItemLevelRequest($item, $patron, undef); |
686 |
$has_reservable_items = IsAvailableForItemLevelRequest($item, $patron, undef); |
| 687 |
} else { |
687 |
} else { |
| 688 |
$can_item_be_reserved = |
688 |
$has_reservable_items = |
| 689 |
Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => undef } ); |
689 |
Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => undef } ); |
| 690 |
} |
690 |
} |
| 691 |
|
691 |
|
|
Lines 763-769
else {
Link Here
|
| 763 |
} |
763 |
} |
| 764 |
} |
764 |
} |
| 765 |
|
765 |
|
| 766 |
if( $can_item_be_reserved || CountItemsIssued($biblionumber) || $biblio->has_items_waiting_or_intransit ) { |
766 |
if( $has_reservable_items || CountItemsIssued($biblionumber) || $biblio->has_items_waiting_or_intransit ) { |
| 767 |
$template->param( ReservableItems => 1 ); |
767 |
$template->param( ReservableItems => 1 ); |
| 768 |
} |
768 |
} |
| 769 |
|
769 |
|
| 770 |
- |
|
|