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

(-)a/C4/Search.pm (-3 / +7 lines)
Lines 1514-1521 sub buildQuery { Link Here
1514
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1514
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1515
## In English:
1515
## In English:
1516
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1516
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1517
            $availability_limit .=
1517
            $availability_limit .= "
1518
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )";
1518
                (
1519
                    ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='')
1520
                    and (lost,st-numeric=0)
1521
                    and (damaged,st-numeric=0)
1522
                    and (withdrawn,st-numeric=0)
1523
                )";
1519
            $limit_cgi  .= "&limit=available";
1524
            $limit_cgi  .= "&limit=available";
1520
            $limit_desc .= "";
1525
            $limit_desc .= "";
1521
        }
1526
        }
1522
- 

Return to bug 9810