Lines 195-201
if ( $xslfile ) {
Link Here
|
195 |
my $query = |
195 |
my $query = |
196 |
( C4::Context->preference('UseControlNumber') and $record->field('001') ) |
196 |
( C4::Context->preference('UseControlNumber') and $record->field('001') ) |
197 |
? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)' |
197 |
? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)' |
198 |
: "Host-item:($cleaned_title)"; |
198 |
: "Host-item:(\"$cleaned_title\")"; |
199 |
my ( $err, $result, $count ); |
199 |
my ( $err, $result, $count ); |
200 |
eval { |
200 |
eval { |
201 |
( $err, $result, $count ) = |
201 |
( $err, $result, $count ) = |
Lines 208-216
if ( $xslfile ) {
Link Here
|
208 |
warn "Warning from simple_search_compat: $error"; |
208 |
warn "Warning from simple_search_compat: $error"; |
209 |
} |
209 |
} |
210 |
|
210 |
|
|
|
211 |
my $show_analytics_link = defined $count && $count > 0 ? 1 : 0; |
212 |
|
211 |
my $variables = { |
213 |
my $variables = { |
212 |
anonymous_session => ($borrowernumber) ? 0 : 1, |
214 |
anonymous_session => ($borrowernumber) ? 0 : 1, |
213 |
show_analytics_link => defined $count && $count > 0 ? 1 : 0 |
215 |
show_analytics_link => $show_analytics_link, |
|
|
216 |
( $show_analytics_link ? ( analytics_query => $cleaned_title ) : () ) |
214 |
}; |
217 |
}; |
215 |
|
218 |
|
216 |
my @plugin_responses = Koha::Plugins->call( |
219 |
my @plugin_responses = Koha::Plugins->call( |
217 |
- |
|
|