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 => 57; |
222 |
plan tests => 58; |
223 |
|
223 |
|
224 |
my $qb; |
224 |
my $qb; |
225 |
|
225 |
|
Lines 449-454
subtest 'build_query tests' => sub {
Link Here
|
449 |
"query of boolean type field is not truncated even if QueryAutoTruncate is set" |
449 |
"query of boolean type field is not truncated even if QueryAutoTruncate is set" |
450 |
); |
450 |
); |
451 |
|
451 |
|
|
|
452 |
( undef, $query ) = |
453 |
$qb->build_query_compat( undef, ['First title ; Second title : some & subtitle / Authors Name'] ); |
454 |
is( |
455 |
$query->{query}{query_string}{query}, |
456 |
'(First* title* Second* title* some* subtitle* Authors* Name*)', |
457 |
"ISBD punctualtion and problematic characters properly removed" |
458 |
); |
459 |
|
452 |
( undef, $query ) = $qb->build_query_compat( undef, ['J.R.R'] ); |
460 |
( undef, $query ) = $qb->build_query_compat( undef, ['J.R.R'] ); |
453 |
is( |
461 |
is( |
454 |
$query->{query}{query_string}{query}, |
462 |
$query->{query}{query_string}{query}, |
455 |
- |
|
|