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

(-)a/C4/Search.pm (-2 / +3 lines)
Lines 1100-1106 sub buildQuery { Link Here
1100
        my $q=$';
1100
        my $q=$';
1101
        # This is needed otherwise ccl= and &limit won't work together, and
1101
        # This is needed otherwise ccl= and &limit won't work together, and
1102
        # this happens when selecting a subject on the opac-detail page
1102
        # this happens when selecting a subject on the opac-detail page
1103
        if (@limits) {
1103
        @limits = grep {!/^$/} @limits;
1104
        if ( @limits ) {
1104
            $q .= ' and '.join(' and ', @limits);
1105
            $q .= ' and '.join(' and ', @limits);
1105
        }
1106
        }
1106
        return ( undef, $q, $q, "q=ccl=$q", $q, '', '', '', '', 'ccl' );
1107
        return ( undef, $q, $q, "q=ccl=$q", $q, '', '', '', '', 'ccl' );
Lines 1317-1322 sub buildQuery { Link Here
1317
    my %group_OR_limits;
1318
    my %group_OR_limits;
1318
    my $availability_limit;
1319
    my $availability_limit;
1319
    foreach my $this_limit (@limits) {
1320
    foreach my $this_limit (@limits) {
1321
        next unless $this_limit;
1320
        if ( $this_limit =~ /available/ ) {
1322
        if ( $this_limit =~ /available/ ) {
1321
#
1323
#
1322
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1324
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)
1323
- 

Return to bug 4491