Bug 15851: (QA follow-up) Fix booleans to uppercase to make this work for Elasticsearch and UseControlNumber

Same test plan as before, but with UseControlNumber = Use and
Elasticsearch.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Katrin Fischer 2020-09-01 03:37:22 +00:00 committed by Jonathan Druart
parent 8da73fe428
commit bb73c5343c
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ if ( $xslfile ) {
$cleaned_title =~ tr|/||;
my $query =
( C4::Context->preference('UseControlNumber') and $record->field('001') )
? 'rcn:'. $record->field('001')->data . ' and (bib-level:a or bib-level:b)'
? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
: "Host-item:$cleaned_title";
my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );

View File

@ -189,7 +189,7 @@ if ( $xslfile ) {
$cleaned_title =~ tr|/||;
my $query =
( C4::Context->preference('UseControlNumber') and $record->field('001') )
? 'rcn:'. $record->field('001')->data . ' and (bib-level:a or bib-level:b)'
? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
: "Host-item:$cleaned_title";
my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );