Lines 66-71
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
66 |
|
66 |
|
67 |
my $biblionumber = $query->param('biblionumber') || $query->param('bib'); |
67 |
my $biblionumber = $query->param('biblionumber') || $query->param('bib'); |
68 |
|
68 |
|
|
|
69 |
my $record = GetMarcBiblio($biblionumber); |
70 |
if ( ! $record ) { |
71 |
print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early |
72 |
exit; |
73 |
} |
74 |
$template->param( biblionumber => $biblionumber ); |
75 |
|
76 |
|
77 |
SetUTF8Flag($record); |
78 |
|
79 |
# XSLT processing of some stuff |
80 |
if (C4::Context->preference("OPACXSLTDetailsDisplay") ) { |
81 |
$template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') ); |
82 |
} |
83 |
|
84 |
|
69 |
# We look for the busc param to build the simple paging from the search |
85 |
# We look for the busc param to build the simple paging from the search |
70 |
my $session = get_session($query->cookie("CGISESSID")); |
86 |
my $session = get_session($query->cookie("CGISESSID")); |
71 |
my %paging = (previous => {}, next => {}); |
87 |
my %paging = (previous => {}, next => {}); |
Lines 351-369
if ($session->param('busc')) {
Link Here
|
351 |
$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') ); |
367 |
$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') ); |
352 |
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); |
368 |
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); |
353 |
|
369 |
|
354 |
my $record = GetMarcBiblio($biblionumber); |
|
|
355 |
if ( ! $record ) { |
356 |
print $query->redirect("/cgi-bin/koha/errors/404.pl"); |
357 |
exit; |
358 |
} |
359 |
$template->param( biblionumber => $biblionumber ); |
360 |
|
370 |
|
361 |
SetUTF8Flag($record); |
|
|
362 |
|
363 |
# XSLT processing of some stuff |
364 |
if (C4::Context->preference("OPACXSLTDetailsDisplay") ) { |
365 |
$template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') ); |
366 |
} |
367 |
|
371 |
|
368 |
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); |
372 |
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); |
369 |
# change back when ive fixed request.pl |
373 |
# change back when ive fixed request.pl |
370 |
- |
|
|