From c28aaec2d5c38456eac8a41534afd84edc2e113f Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Thu, 29 Nov 2007 14:22:58 -0600 Subject: [PATCH] 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 Signed-off-by: Joshua Ferraro --- opac/opac-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 7b50134094..2cb8677c83 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -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; } -- 2.20.1