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

(-)a/catalogue/itemsearch.pl (-1 / +1 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
        if ( my @q = $cgi->multi_param($p . "[]") ) {
134
            if ( $q[0] ne '' ) {
134
            if ( $q[0] ne '' ) {
135
                my $f = {
135
                my $f = {
136
                    field => $p,
136
                    field => $p,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-2 / +4 lines)
Lines 480-486 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
                            d[params[i].name] = params[i].value;
483
                            if (! d.hasOwnProperty(params[i].name) ) {
484
                                d[params[i].name] = [];
485
                            }
486
                            d[params[i].name].push(params[i].value);
484
                        }
487
                        }
485
                        d.format = 'json';
488
                        d.format = 'json';
486
                        d.columns = JSON.stringify( d.columns );
489
                        d.columns = JSON.stringify( d.columns );
487
- 

Return to bug 36563