Bug 17132 - Availability search broken when using Elastic

Elastic appears to be indexing onloan as a string, but our code assumes
it is a boolean.

Test Plan:
1) Ensure you are set up using Elastic as your search engine
2) Search only for available items from the advanced search
3) Note you get no results
4) Apply this patch
5) Re-run the search
6) You should now get results!

Signed-off-by: Jennifer Schmidt <jschmidt@switchinc.org>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Kyle M Hall 2016-08-15 18:12:44 +00:00 committed by Mason James
parent 36ead4dee5
commit b3bdd760be
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,7 @@ sub _fix_limit_special_cases {
push @new_lim, "copydate:$date";
}
elsif ( $l =~ /^available$/ ) {
push @new_lim, 'onloan:false';
push @new_lim, 'onloan:0';
}
else {
push @new_lim, $l;