View | Details | Raw Unified | Return to bug 9810
Collapse All | Expand All

(-)a/C4/Search.pm (-3 / +7 lines)
Lines 1476-1483 sub buildQuery { Link Here
1476
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1476
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1477
## In English:
1477
## In English:
1478
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1478
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1479
            $availability_limit .=
1479
            $availability_limit .= "
1480
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )";
1480
                ( 
1481
                    ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') 
1482
                    and (lost,st-numeric=0) 
1483
                    and (damaged,st-numeric=0) 
1484
                    and (withdrawn,st-numeric=0)
1485
                )";
1481
            $limit_cgi  .= "&limit=available";
1486
            $limit_cgi  .= "&limit=available";
1482
            $limit_desc .= "";
1487
            $limit_desc .= "";
1483
        }
1488
        }
1484
- 

Return to bug 9810