Lines 219-225
subtest 'build_authorities_query_compat() tests' => sub {
Link Here
|
219 |
}; |
219 |
}; |
220 |
|
220 |
|
221 |
subtest 'build_query tests' => sub { |
221 |
subtest 'build_query tests' => sub { |
222 |
plan tests => 63; |
222 |
plan tests => 64; |
223 |
|
223 |
|
224 |
my $qb; |
224 |
my $qb; |
225 |
|
225 |
|
Lines 468-473
subtest 'build_query tests' => sub {
Link Here
|
468 |
"query of boolean type field is not truncated even if QueryAutoTruncate is set" |
468 |
"query of boolean type field is not truncated even if QueryAutoTruncate is set" |
469 |
); |
469 |
); |
470 |
|
470 |
|
|
|
471 |
( undef, $query ) = |
472 |
$qb->build_query_compat( undef, ['First title ; Second title : some & subtitle / Authors Name'] ); |
473 |
is( |
474 |
$query->{query}{query_string}{query}, |
475 |
'(First* title* Second* title* some* subtitle* Authors* Name*)', |
476 |
"ISBD punctualtion and problematic characters properly removed" |
477 |
); |
478 |
|
471 |
( undef, $query ) = $qb->build_query_compat( undef, ['J.R.R'] ); |
479 |
( undef, $query ) = $qb->build_query_compat( undef, ['J.R.R'] ); |
472 |
is( |
480 |
is( |
473 |
$query->{query}{query_string}{query}, |
481 |
$query->{query}{query_string}{query}, |
474 |
- |
|
|