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

(-)a/C4/Search.pm (-3 / +7 lines)
Lines 1534-1541 sub buildQuery { Link Here
1534
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1534
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1535
## In English:
1535
## In English:
1536
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1536
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1537
            $availability_limit .=
1537
            $availability_limit .= "
1538
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )";
1538
                ( 
1539
                    ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') 
1540
                    and (lost,st-numeric=0) 
1541
                    and (damaged,st-numeric=0) 
1542
                    and (withdrawn,st-numeric=0)
1543
                )";
1539
            $limit_cgi  .= "&limit=available";
1544
            $limit_cgi  .= "&limit=available";
1540
            $limit_desc .= "";
1545
            $limit_desc .= "";
1541
        }
1546
        }
1542
- 

Return to bug 9810