|
Lines 32-37
use C4::Search qw( enabled_staff_search_views z3950_search_args );
Link Here
|
| 32 |
use Koha::Acquisition::Booksellers; |
32 |
use Koha::Acquisition::Booksellers; |
| 33 |
use Koha::AuthorisedValues; |
33 |
use Koha::AuthorisedValues; |
| 34 |
use Koha::Biblios; |
34 |
use Koha::Biblios; |
|
|
35 |
use Koha::BiblioFrameworks; |
| 35 |
use Koha::Items; |
36 |
use Koha::Items; |
| 36 |
use Koha::Patrons; |
37 |
use Koha::Patrons; |
| 37 |
|
38 |
|
|
Lines 105-112
my $record = $biblio ? $biblio->metadata->record : undef;
Link Here
|
| 105 |
output_and_exit( $query, $cookie, $template, 'unknown_biblio' ) |
106 |
output_and_exit( $query, $cookie, $template, 'unknown_biblio' ) |
| 106 |
unless $biblio && $record; |
107 |
unless $biblio && $record; |
| 107 |
|
108 |
|
| 108 |
my $fw = GetFrameworkCode($biblionumber); |
109 |
my $fw = GetFrameworkCode($biblionumber); |
| 109 |
my $all_items = $biblio->items->search_ordered; |
110 |
my $is_fast_add = Koha::BiblioFrameworks->find($fw)->is_fast_add; |
|
|
111 |
my $all_items = $biblio->items->search_ordered; |
| 110 |
|
112 |
|
| 111 |
my @items; |
113 |
my @items; |
| 112 |
my $patron = Koha::Patrons->find($loggedinuser); |
114 |
my $patron = Koha::Patrons->find($loggedinuser); |
|
Lines 333-338
$template->param(
Link Here
|
| 333 |
itemnumber => $itemnumber, |
335 |
itemnumber => $itemnumber, |
| 334 |
z3950_search_params => C4::Search::z3950_search_args( GetBiblioData($biblionumber) ), |
336 |
z3950_search_params => C4::Search::z3950_search_args( GetBiblioData($biblionumber) ), |
| 335 |
biblio => $biblio, |
337 |
biblio => $biblio, |
|
|
338 |
is_fast_add => $is_fast_add, |
| 336 |
); |
339 |
); |
| 337 |
$template->param( ONLY_ONE => 1 ) if ( $itemnumber && $showncount != @items ); |
340 |
$template->param( ONLY_ONE => 1 ) if ( $itemnumber && $showncount != @items ); |
| 338 |
$template->{'VARS'}->{'searchid'} = $query->param('searchid'); |
341 |
$template->{'VARS'}->{'searchid'} = $query->param('searchid'); |
|
Lines 341-344
my $holds = $biblio->holds;
Link Here
|
| 341 |
$template->param( holdcount => $holds->count ); |
344 |
$template->param( holdcount => $holds->count ); |
| 342 |
|
345 |
|
| 343 |
output_html_with_http_headers $query, $cookie, $template->output; |
346 |
output_html_with_http_headers $query, $cookie, $template->output; |
| 344 |
|
|
|