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

(-)a/catalogue/detail.pl (-3 / +9 lines)
Lines 140-149 my $marcflavour = C4::Context->preference("marcflavour"); Link Here
140
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
140
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
141
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
141
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
142
      : "Host-item:($cleaned_title)";
142
      : "Host-item:($cleaned_title)";
143
    my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );
143
    my ( $err, $result, $count );
144
    eval {
145
        ( $err, $result, $count ) =
146
          $searcher->simple_search_compat( $query, 0, 0 );
144
147
145
    warn "Warning from simple_search_compat: $err"
148
    };
146
        if $err;
149
    if ($err || $@){
150
        warn "Warning from simple_search_compat: $err.$@";
151
        $template->param( analytics_error => 1 );
152
    }
147
153
148
    my $variables = {
154
    my $variables = {
149
        show_analytics_link => $count > 0 ? 1 : 0
155
        show_analytics_link => $count > 0 ? 1 : 0
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+6 lines)
Lines 101-106 Link Here
101
            <span class="error"><br/> Error: [% decoding_error | html %]</span>
101
            <span class="error"><br/> Error: [% decoding_error | html %]</span>
102
        </div>
102
        </div>
103
    [% END %]
103
    [% END %]
104
    [% IF analytics_error %]
105
        <div>
106
           <span class="analytics_error">
107
            There was an error searching for analytic records, please see the logs for details.</span>
108
        </div>
109
    [% END %]
104
    [% IF ( ocoins ) %]
110
    [% IF ( ocoins ) %]
105
        <!-- COinS / OpenURL -->
111
        <!-- COinS / OpenURL -->
106
        <span class="Z3988" title="[% ocoins | html %]"></span>
112
        <span class="Z3988" title="[% ocoins | html %]"></span>
(-)a/opac/opac-detail.pl (-4 / +8 lines)
Lines 210-219 my $ean = GetNormalizedEAN( $record, $marcflavour ); Link Here
210
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
210
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
211
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
211
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
212
      : "Host-item:($cleaned_title)";
212
      : "Host-item:($cleaned_title)";
213
    my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );
213
    my ( $err, $result, $count );
214
    eval {
215
        ( $err, $result, $count ) =
216
          $searcher->simple_search_compat( $query, 0, 0 );
214
217
215
    warn "Warning from simple_search_compat: $err"
218
    };
216
       if $err;
219
    if ($err || $@){
220
        warn "Warning from simple_search_compat: $err.$@";
221
    }
217
222
218
    my $variables = {
223
    my $variables = {
219
        anonymous_session   => ($borrowernumber) ? 0 : 1,
224
        anonymous_session   => ($borrowernumber) ? 0 : 1,
220
- 

Return to bug 29284