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 479-488 Link Here
479
                    url: '/cgi-bin/koha/catalogue/itemsearch.pl',
479
                    url: '/cgi-bin/koha/catalogue/itemsearch.pl',
480
                    data: function ( d ) {
480
                    data: function ( d ) {
481
                        for (i in params) {
481
                        for (i in params) {
482
                            if (! d.hasOwnProperty(params[i].name) ) {
482
                            if(d[params[i].name]){
483
                                d[params[i].name] = [];
483
                                d[params[i].name] = [].concat(d[params[i].name], params[i].value);
484
                            }else{
485
                                d[params[i].name] = params[i].value;
484
                            }
486
                            }
485
                            d[params[i].name].push(params[i].value);
486
                        }
487
                        }
487
                        d.format = 'json';
488
                        d.format = 'json';
488
                        d.columns = JSON.stringify( d.columns );
489
                        d.columns = JSON.stringify( d.columns );
489
- 

Return to bug 36563