| 
      
            Lines 538-550
          jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
      
      
        Link Here
      
     | 
  
        
          | 538 | 
                                      },  | 
          538 | 
                                      },  | 
        
        
          | 539 | 
                                      'dataFilter': function(data, type) { | 
          539 | 
                                      'dataFilter': function(data, type) { | 
        
        
          | 540 | 
                                          var json = {data: JSON.parse(data)}; | 
          540 | 
                                          var json = {data: JSON.parse(data)}; | 
        
          
            
              | 541 | 
                                              if(total = this._xhr.getResponseHeader('x-total-count')) { | 
              541 | 
                                              if (total = this._xhr.getResponseHeader('x-total-count')) { | 
            
        
          | 542 | 
                                              json.recordsTotal = total;  | 
          542 | 
                                              json.recordsTotal = total;  | 
        
        
          | 543 | 
                                              json.recordsFiltered = total;  | 
          543 | 
                                              json.recordsFiltered = total;  | 
        
        
          | 544 | 
                                          }  | 
          544 | 
                                          }  | 
        
          
            
              | 545 | 
                                              if(total = this._xhr.getResponseHeader('x-base-total-count')) { | 
              545 | 
                                              if (total = this._xhr.getResponseHeader('x-base-total-count')) { | 
            
        
          | 546 | 
                                              json.recordsTotal = total;  | 
          546 | 
                                              json.recordsTotal = total;  | 
        
        
          | 547 | 
                                          }  | 
          547 | 
                                          }  | 
        
            
               | 
               | 
              548 | 
                                              if (draw = this._xhr.getResponseHeader('x-koha-request-id')) { | 
            
            
              | 549 | 
                                                  json.draw = draw;  | 
            
            
              | 550 | 
                                              }  | 
            
            
              | 551 | 
               | 
            
        
          | 548 | 
                                          return JSON.stringify(json);  | 
          552 | 
                                          return JSON.stringify(json);  | 
        
        
          | 549 | 
                                      },  | 
          553 | 
                                      },  | 
        
        
          | 550 | 
                                      'data': function( data, settings ) { | 
          554 | 
                                      'data': function( data, settings ) { | 
        
  
    | 
      
            Lines 652-657
          jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
      
      
        Link Here
      
     | 
  
        
          | 652 | 
           | 
          656 | 
           | 
        
        
          | 653 | 
                                          dataSet._match = options.criteria;  | 
          657 | 
                                          dataSet._match = options.criteria;  | 
        
        
          | 654 | 
           | 
          658 | 
           | 
        
            
               | 
               | 
              659 | 
                                              if ( data["draw"] !== undefined ) { | 
            
            
              | 660 | 
                                                  settings.ajax.headers = { 'x-koha-request-id': data.draw } | 
            
            
              | 661 | 
                                              }  | 
            
            
              | 662 | 
               | 
            
        
          | 655 | 
                                          if(options.columns) { | 
          663 | 
                                          if(options.columns) { | 
        
        
          | 656 | 
                                              var order = data.order;  | 
          664 | 
                                              var order = data.order;  | 
        
        
          | 657 | 
                                              var orderArray = new Array();  | 
          665 | 
                                              var orderArray = new Array();  | 
        
            
              | 658 | 
              -   | 
               | 
               |