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

(-)a/catalogue/itemsearch.pl (+1 lines)
Lines 252-257 if (scalar keys %params > 0) { Link Here
252
            print "$line\n" unless $line =~ m|^\s*$|;
252
            print "$line\n" unless $line =~ m|^\s*$|;
253
        }
253
        }
254
    } elsif ($format eq 'json') {
254
    } elsif ($format eq 'json') {
255
        $template->param(sEcho => scalar $cgi->param('sEcho'));
255
        output_with_http_headers $cgi, $cookie, $template->output, 'json';
256
        output_with_http_headers $cgi, $cookie, $template->output, 'json';
256
    }
257
    }
257
258
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch_json.tt (-3 / +1 lines)
Lines 1-6 Link Here
1
[%- USE CGI -%]
2
{
1
{
3
  "sEcho": [% CGI.param('sEcho') %],
2
  "sEcho": [% sEcho %],
4
  "iTotalRecords": [% total_rows %],
3
  "iTotalRecords": [% total_rows %],
5
  "iTotalDisplayRecords": [% total_rows %],
4
  "iTotalDisplayRecords": [% total_rows %],
6
  "aaData": [
5
  "aaData": [
7
- 

Return to bug 18633