Lines 414-422
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->pref
Link Here
|
414 |
'sort'=>'-weight', limit=>$tag_quantity})); |
414 |
'sort'=>'-weight', limit=>$tag_quantity})); |
415 |
} |
415 |
} |
416 |
|
416 |
|
|
|
417 |
#we only need to pass the number of holds to the template |
417 |
my $holds = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 }); |
418 |
my $holds = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 }); |
418 |
my $holdcount = scalar ( @$holds ); |
419 |
$template->param( holdcount => scalar ( @$holds ) ); |
419 |
$template->param( holdcount => $holdcount, holds => $holds ); |
420 |
|
420 |
my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection'); |
421 |
my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection'); |
421 |
if ($StaffDetailItemSelection) { |
422 |
if ($StaffDetailItemSelection) { |
422 |
# Only enable item selection if user can execute at least one action |
423 |
# Only enable item selection if user can execute at least one action |