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

(-)a/catalogue/itemsearch.pl (-1 / +7 lines)
Lines 130-136 if ( defined $format ) { Link Here
130
    foreach my $p (
130
    foreach my $p (
131
        qw(homebranch holdingbranch location itype ccode issues datelastborrowed notforloan itemlost withdrawn damaged))
131
        qw(homebranch holdingbranch location itype ccode issues datelastborrowed notforloan itemlost withdrawn damaged))
132
    {
132
    {
133
        if ( my @q = $cgi->multi_param($p . "[]") ) {
133
134
        my @q;
135
        @q = $cgi->multi_param( $p . "[]" );
136
        if (scalar @q == 0){
137
            @q = $cgi->multi_param( $p );
138
        }
139
        if ( @q ) {
134
            if ( $q[0] ne '' ) {
140
            if ( $q[0] ne '' ) {
135
                my $f = {
141
                my $f = {
136
                    field => $p,
142
                    field => $p,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-4 / +4 lines)
Lines 480-489 Link Here
480
                    url: '/cgi-bin/koha/catalogue/itemsearch.pl',
480
                    url: '/cgi-bin/koha/catalogue/itemsearch.pl',
481
                    data: function ( d ) {
481
                    data: function ( d ) {
482
                        for (i in params) {
482
                        for (i in params) {
483
                            if (! d.hasOwnProperty(params[i].name) ) {
483
                            if(d[params[i].name]){
484
                                d[params[i].name] = [];
484
                                d[params[i].name] = [].concat(d[params[i].name], params[i].value);
485
                            }else{
486
                                d[params[i].name] = params[i].value;
485
                            }
487
                            }
486
                            d[params[i].name].push(params[i].value);
487
                        }
488
                        }
488
                        d.format = 'json';
489
                        d.format = 'json';
489
                        d.columns = JSON.stringify( d.columns );
490
                        d.columns = JSON.stringify( d.columns );
490
- 

Return to bug 36563