in syspref it appears as "OFF", but in opac-search it's considered as true.
Changing the test to be sure syspref & opac-search consider the same thing
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
# add OPAC 'hidelostitems'
# not items with
-if (C4::Context->preference('hidelostitems')) {
+if (C4::Context->preference('hidelostitems') == 1) {
$query ="($query) not ((lost,st-numeric gt 0) or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches=''))";
warn "Q".$query;
}