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 |
- |
|
|