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:
parent
8da73fe428
commit
bb73c5343c
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue