Lines 341-371
$template->param (
Link Here
|
341 |
z3950_search_params => C4::Search::z3950_search_args($biblio), |
341 |
z3950_search_params => C4::Search::z3950_search_args($biblio), |
342 |
C4::Search::enabled_staff_search_views, |
342 |
C4::Search::enabled_staff_search_views, |
343 |
searchid => scalar $query->param('searchid'), |
343 |
searchid => scalar $query->param('searchid'), |
344 |
biblio => $biblio_object->unblessed, |
344 |
biblio => $biblio_object, |
345 |
); |
345 |
); |
346 |
|
346 |
|
347 |
my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); |
347 |
$template->param( holdcount => $biblio_object->holds->count ); |
348 |
my @deletedorders_using_biblio; |
|
|
349 |
my @orders_using_biblio; |
350 |
|
351 |
foreach my $myorder (@allorders_using_biblio) { |
352 |
my $basket = $myorder->{'basketno'}; |
353 |
if ((defined $myorder->{'datecancellationprinted'}) and ($myorder->{'datecancellationprinted'} ne '0000-00-00') ){ |
354 |
push @deletedorders_using_biblio, $myorder; |
355 |
} |
356 |
else { |
357 |
push @orders_using_biblio, $myorder; |
358 |
} |
359 |
} |
360 |
|
361 |
my $count_orders_using_biblio = scalar @orders_using_biblio ; |
362 |
$template->param (countorders => $count_orders_using_biblio); |
363 |
|
364 |
my $count_deletedorders_using_biblio = scalar @deletedorders_using_biblio ; |
365 |
$template->param (countdeletedorders => $count_deletedorders_using_biblio); |
366 |
|
367 |
$biblio = Koha::Biblios->find( $biblionumber ); |
368 |
my $holds = $biblio->holds; |
369 |
$template->param( holdcount => $holds->count ); |
370 |
|
348 |
|
371 |
output_html_with_http_headers $query, $cookie, $template->output; |
349 |
output_html_with_http_headers $query, $cookie, $template->output; |