diff --git a/C4/SearchMarc.pm b/C4/SearchMarc.pm index c4e89ecf89..dee0ff7b1e 100644 --- a/C4/SearchMarc.pm +++ b/C4/SearchMarc.pm @@ -396,7 +396,7 @@ if (C4::Context->preference("sortbynonfiling")) { $sth_itemCN = $dbh->prepare(" SELECT items.holdingbranch, items.location, items.itemcallnumber, count(*) AS cnt, items.itemnumber, items.notforloan FROM items - WHERE biblionumber=? AND (itemlost = 0 OR itemlost IS NULL) AND (notforloan = 0 OR notforloan IS NULL) + WHERE biblionumber=? AND (itemlost = 0 OR itemlost IS NULL) AND (notforloan < 1 OR notforloan IS NULL) GROUP BY items.holdingbranch, items.location, items.itemcallnumber ORDER BY homebranch"); } else {