View | Details | Raw Unified | Return to bug 9823
Collapse All | Expand All

(-)a/catalogue/ISBDdetail.pl (-3 lines)
Lines 113-121 $template->param ( Link Here
113
);
113
);
114
114
115
115
116
my $holds = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 });
117
my $holdcount = scalar( @$holds );
118
$template->param( holdcount => $holdcount, holds => $holds );
119
116
120
output_html_with_http_headers $query, $cookie, $template->output;
117
output_html_with_http_headers $query, $cookie, $template->output;
121
118
(-)a/catalogue/MARCdetail.pl (-3 lines)
Lines 336-343 $template->param ( Link Here
336
    searchid            => $query->param('searchid'),
336
    searchid            => $query->param('searchid'),
337
);
337
);
338
338
339
my $holds = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 });
340
my $holdcount = scalar( @$holds );
341
$template->param( holdcount => $holdcount, holds => $holds );
342
339
343
output_html_with_http_headers $query, $cookie, $template->output;
340
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/catalogue/detail.pl (-2 / +3 lines)
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
(-)a/catalogue/imageviewer.pl (-3 lines)
Lines 78-85 $template->{VARS}->{'norequests'} = $norequests; Link Here
78
$template->param(C4::Search::enabled_staff_search_views);
78
$template->param(C4::Search::enabled_staff_search_views);
79
$template->{VARS}->{'biblio'} = $biblio;
79
$template->{VARS}->{'biblio'} = $biblio;
80
80
81
my $holds = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 });
82
my $holdcount = scalar( @$holds );
83
$template->param( holdcount => $holdcount, holds => $holds );
84
81
85
output_html_with_http_headers $query, $cookie, $template->output;
82
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/catalogue/labeledMARCdetail.pl (-3 lines)
Lines 137-144 $template->param ( Link Here
137
    searchid            => $query->param('searchid'),
137
    searchid            => $query->param('searchid'),
138
);
138
);
139
139
140
my $holds= C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 });
141
my $holdcount = scalar( @$holds );
142
$template->param( holdcount => $holdcount, holds => $holds );
143
140
144
output_html_with_http_headers $query, $cookie, $template->output;
141
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/catalogue/moredetail.pl (-4 lines)
Lines 35-41 use C4::Circulation; # to use itemissues Link Here
35
use C4::Members; # to use GetMember
35
use C4::Members; # to use GetMember
36
use C4::Search;		# enabled_staff_search_views
36
use C4::Search;		# enabled_staff_search_views
37
use C4::Members qw/GetHideLostItemsPreference/;
37
use C4::Members qw/GetHideLostItemsPreference/;
38
use C4::Reserves qw(GetReservesFromBiblionumber);
39
use Koha::DateUtils;
38
use Koha::DateUtils;
40
39
41
my $query=new CGI;
40
my $query=new CGI;
Lines 217-225 $template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items ); Link Here
217
$template->{'VARS'}->{'searchid'} = $query->param('searchid');
216
$template->{'VARS'}->{'searchid'} = $query->param('searchid');
218
217
219
218
220
my $holds = GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 });
221
my $holdcount = scalar( @$holds );
222
$template->param( holdcount => $holdcount, holds => $holds );
223
219
224
output_html_with_http_headers $query, $cookie, $template->output;
220
output_html_with_http_headers $query, $cookie, $template->output;
225
221
(-)a/opac/opac-detail.pl (-2 / +1 lines)
Lines 539-545 for ( C4::Context->preference("OPACShowHoldQueueDetails") ) { Link Here
539
}
539
}
540
my $has_hold;
540
my $has_hold;
541
if ( $show_holds_count || $show_priority) {
541
if ( $show_holds_count || $show_priority) {
542
    my $reserves = GetReservesFromBiblionumber({ biblionumber => $biblionumber });
542
    my $reserves = GetReservesFromBiblionumber({ biblionumber => $biblionumber, all_dates => 1 });
543
    $template->param( holds_count  => scalar( @$reserves ) ) if $show_holds_count;
543
    $template->param( holds_count  => scalar( @$reserves ) ) if $show_holds_count;
544
    foreach (@$reserves) {
544
    foreach (@$reserves) {
545
        $item_reserves{ $_->{itemnumber} }++ if $_->{itemnumber};
545
        $item_reserves{ $_->{itemnumber} }++ if $_->{itemnumber};
546
- 

Return to bug 9823