it appears that hidelostitems can be true here and not set to 1 in syspref

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>
This commit is contained in:
Paul POULAIN 2007-11-29 14:22:58 -06:00 committed by Joshua Ferraro
parent a502aa1c76
commit c28aaec2d5
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ for my $this_cgi ( split('&',$limit_cgi) ) {
# 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;
}