Lines 112-117
if ( not defined $record ) {
Link Here
|
112 |
exit; |
112 |
exit; |
113 |
} |
113 |
} |
114 |
|
114 |
|
|
|
115 |
eval { $biblio->metadata->record }; |
116 |
$template->param( decoding_error => $@ ); |
117 |
|
115 |
if($query->cookie("holdfor")){ |
118 |
if($query->cookie("holdfor")){ |
116 |
my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") ); |
119 |
my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") ); |
117 |
$template->param( |
120 |
$template->param( |
Lines 143-149
if ( $xslfile ) {
Link Here
|
143 |
} |
146 |
} |
144 |
|
147 |
|
145 |
$template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") ); |
148 |
$template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") ); |
146 |
$template->param( ocoins => $biblio->get_coins ); |
149 |
|
|
|
150 |
# Catch the exception as Koha::Biblio::Metadata->record can explode if the MARCXML is invalid |
151 |
# Do not propagate it as we already deal with it previously in this script |
152 |
my $coins = eval { $biblio->get_coins }; |
153 |
$template->param( ocoins => $coins ); |
147 |
|
154 |
|
148 |
# some useful variables for enhanced content; |
155 |
# some useful variables for enhanced content; |
149 |
# in each case, we're grabbing the first value we find in |
156 |
# in each case, we're grabbing the first value we find in |