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

(-)a/C4/Search.pm (-6 / +6 lines)
Lines 1520-1531 sub buildQuery { Link Here
1520
    foreach my $this_limit (@limits) {
1520
    foreach my $this_limit (@limits) {
1521
        next unless $this_limit;
1521
        next unless $this_limit;
1522
        if ( $this_limit =~ /available/ ) {
1522
        if ( $this_limit =~ /available/ ) {
1523
#
1523
1524
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1524
1525
## In English:
1525
            # 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) and ( items.notforloan = 0 )
1526
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0
1526
            # In English:
1527
            # all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0, and notforloan equal to 0
1527
            $availability_limit .=
1528
            $availability_limit .=
1528
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )";
1529
                "( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='' ) and ( lost,st-numeric = 0 ) and ( notforloan,st-numeric = 0 ) )";
1529
            $limit_cgi  .= "&limit=available";
1530
            $limit_cgi  .= "&limit=available";
1530
            $limit_desc .= "";
1531
            $limit_desc .= "";
1531
        }
1532
        }
1532
- 

Return to bug 10304