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