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:
parent
a502aa1c76
commit
c28aaec2d5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue