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

(-)a/catalogue/detail.pl (-1 / +8 lines)
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
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +6 lines)
Lines 68-73 Link Here
68
[% CoceHost        = Koha.Preference('CoceHost') %]
68
[% CoceHost        = Koha.Preference('CoceHost') %]
69
69
70
[% INCLUDE 'cat-toolbar.inc' %]
70
[% INCLUDE 'cat-toolbar.inc' %]
71
    [% IF decoding_error %]
72
        <div>
73
            There is an error with this bibliographic record, the view may be degraded.
74
            <br/> Error: [% decoding_error %]
75
        </div>
76
    [% END %]
71
    [% IF ( ocoins ) %]
77
    [% IF ( ocoins ) %]
72
        <!-- COinS / OpenURL -->
78
        <!-- COinS / OpenURL -->
73
        <span class="Z3988" title="[% ocoins | html %]"></span>
79
        <span class="Z3988" title="[% ocoins | html %]"></span>
74
- 

Return to bug 23846