|
Lines 25-30
use Koha::Database;
Link Here
|
| 25 |
use Koha::Exceptions::Config; |
25 |
use Koha::Exceptions::Config; |
| 26 |
use Koha::Exceptions::Elasticsearch; |
26 |
use Koha::Exceptions::Elasticsearch; |
| 27 |
use Koha::Filter::MARC::EmbedSeeFromHeadings; |
27 |
use Koha::Filter::MARC::EmbedSeeFromHeadings; |
|
|
28 |
use Koha::I18N qw(__); |
| 28 |
use Koha::SearchFields; |
29 |
use Koha::SearchFields; |
| 29 |
use Koha::SearchMarcMaps; |
30 |
use Koha::SearchMarcMaps; |
| 30 |
use Koha::Caches; |
31 |
use Koha::Caches; |
|
Lines 1519-1528
sub process_error {
Link Here
|
| 1519 |
warn $msg; # simple logging |
1520 |
warn $msg; # simple logging |
| 1520 |
|
1521 |
|
| 1521 |
# This is super-primitive |
1522 |
# This is super-primitive |
| 1522 |
return "Unable to understand your search query, please rephrase and try again.\n" |
1523 |
return __("Unable to understand your search query, please rephrase and try again.\n") |
| 1523 |
if $msg =~ /ParseException|parse_exception/; |
1524 |
if $msg =~ /ParseException|parse_exception/; |
| 1524 |
|
1525 |
|
| 1525 |
return "Unable to perform your search. Please try again.\n"; |
1526 |
return __("Unable to perform your search. Please try again.\n"); |
| 1526 |
} |
1527 |
} |
| 1527 |
|
1528 |
|
| 1528 |
=head2 _read_configuration |
1529 |
=head2 _read_configuration |
| 1529 |
- |
|
|