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 1472-1481
sub process_error {
Link Here
|
1472 |
warn $msg; # simple logging |
1473 |
warn $msg; # simple logging |
1473 |
|
1474 |
|
1474 |
# This is super-primitive |
1475 |
# This is super-primitive |
1475 |
return "Unable to understand your search query, please rephrase and try again.\n" |
1476 |
return __("Unable to understand your search query, please rephrase and try again.\n") |
1476 |
if $msg =~ /ParseException|parse_exception/; |
1477 |
if $msg =~ /ParseException|parse_exception/; |
1477 |
|
1478 |
|
1478 |
return "Unable to perform your search. Please try again.\n"; |
1479 |
return __("Unable to perform your search. Please try again.\n"); |
1479 |
} |
1480 |
} |
1480 |
|
1481 |
|
1481 |
=head2 _read_configuration |
1482 |
=head2 _read_configuration |
1482 |
- |
|
|