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

(-)a/C4/Search.pm (-2 / +2 lines)
Lines 1217-1223 sub buildQuery { Link Here
1217
    my $query_cgi;
1217
    my $query_cgi;
1218
    my $query_type;
1218
    my $query_type;
1219
1219
1220
    my $limit;
1220
    my $limit = q{};
1221
    my $limit_cgi;
1221
    my $limit_cgi;
1222
    my $limit_desc;
1222
    my $limit_desc;
1223
1223
Lines 1328-1334 sub buildQuery { Link Here
1328
        # This is needed otherwise ccl= and &limit won't work together, and
1328
        # This is needed otherwise ccl= and &limit won't work together, and
1329
        # this happens when selecting a subject on the opac-detail page
1329
        # this happens when selecting a subject on the opac-detail page
1330
        my $original_q = $q; # without available part
1330
        my $original_q = $q; # without available part
1331
        $q .= $limit;
1331
        $q .= $limit if $limit;
1332
        return ( undef, $q, $q, "q=ccl=".uri_escape_utf8($q), $original_q, '', '', '', 'ccl' );
1332
        return ( undef, $q, $q, "q=ccl=".uri_escape_utf8($q), $original_q, '', '', '', 'ccl' );
1333
    }
1333
    }
1334
    if ( $query =~ /^cql=/ ) {
1334
    if ( $query =~ /^cql=/ ) {
(-)a/installer/data/mysql/atomicupdate/bug_30327_add_sortComponents_syspref.pl (-3 / +2 lines)
Lines 8-15 return { Link Here
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
9
        $dbh->do(q{
10
            INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
10
            INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
11
            ('ComponentsSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
11
            ('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
12
            ('ComponentsSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice')
12
            ('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice')
13
        });
13
        });
14
        say $out "Added ComponentsSortField and ComponentsSortOrder sysprefs";
14
        say $out "Added ComponentsSortField and ComponentsSortOrder sysprefs";
15
    },
15
    },
16
- 

Return to bug 30327