| Lines 49-54
          
      
      
        Link Here | 
        
          | 49 |             'biblio_id', | 49 |             'biblio_id', | 
        
          | 50 |             'library', | 50 |             'library', | 
        
          | 51 |             'status', | 51 |             'status', | 
            
              |  |  | 52 |             'additional_status', | 
        
          | 52 |             'updated', | 53 |             'updated', | 
        
          | 53 |             'illrequest_id', | 54 |             'illrequest_id', | 
        
          | 54 |             'action' | 55 |             'action' | 
  
    | Lines 158-163
          
      
      
        Link Here | 
        
          | 158 |             } | 159 |             } | 
        
          | 159 |         }; | 160 |         }; | 
        
          | 160 |  | 161 |  | 
            
              |  |  | 162 |         // Render function for additional status | 
            
              | 163 |         var createAdditional = function(data, type, row) { | 
            
              | 164 |             return ( | 
            
              | 165 |                 row.hasOwnProperty('requested_partners') && | 
            
              | 166 |                 row.requested_partners && | 
            
              | 167 |                 row.requested_partners.length > 0 | 
            
              | 168 |             ) ? | 
            
              | 169 |                 "Requested from:<br>" + | 
            
              | 170 |                 row.requested_partners.replace('; ','<br>') : | 
            
              | 171 |                 ''; | 
            
              | 172 |         }; | 
            
              | 173 |  | 
        
          | 161 |         // Render function for creating a row's action link | 174 |         // Render function for creating a row's action link | 
        
          | 162 |         var createActionLink = function(data, type, row) { | 175 |         var createActionLink = function(data, type, row) { | 
        
          | 163 |             return '<a class="btn btn-default btn-sm" ' + | 176 |             return '<a class="btn btn-default btn-sm" ' + | 
  
    | Lines 185-190
          
      
      
        Link Here | 
        
          | 185 |                 name: _("Status"), | 198 |                 name: _("Status"), | 
        
          | 186 |                 func: createStatus | 199 |                 func: createStatus | 
        
          | 187 |             }, | 200 |             }, | 
            
              |  |  | 201 |             additional_status: { | 
            
              | 202 |                 name: _("Additional status"), | 
            
              | 203 |                 func: createAdditional | 
            
              | 204 |             }, | 
        
          | 188 |             biblio_id: { | 205 |             biblio_id: { | 
        
          | 189 |                 name: _("Bibliograpic Record ID") | 206 |                 name: _("Bibliograpic Record ID") | 
        
          | 190 |             }, | 207 |             }, | 
  
    | Lines 220-226
          
      
      
        Link Here | 
        
          | 220 |         // Get our data from the API and process it prior to passing | 237 |         // Get our data from the API and process it prior to passing | 
        
          | 221 |         // it to datatables | 238 |         // it to datatables | 
        
          | 222 |         var ajax = $.ajax( | 239 |         var ajax = $.ajax( | 
          
            
              | 223 |             '/api/v1/illrequests?embed=metadata,patron,capabilities,library' | 240 |             '/api/v1/illrequests?embed=requested_partners,metadata,patron,capabilities,library' | 
        
          | 224 |             ).done(function() { | 241 |             ).done(function() { | 
        
          | 225 |                 var data = JSON.parse(ajax.responseText); | 242 |                 var data = JSON.parse(ajax.responseText); | 
        
          | 226 |                 // Make a copy, we'll be removing columns next and need | 243 |                 // Make a copy, we'll be removing columns next and need | 
  
    | Lines 265-271
          
      
      
        Link Here | 
        
          | 265 |                             'bSearchable': false | 282 |                             'bSearchable': false | 
        
          | 266 |                         }, | 283 |                         }, | 
        
          | 267 |                     ], | 284 |                     ], | 
          
            
              | 268 |                     'aaSorting': [[ 6, 'desc' ]], // Default sort, updated descending | 285 |                     'aaSorting': [[ 7, 'desc' ]], // Default sort, updated descending | 
        
          | 269 |                     'processing': true, // Display a message when manipulating | 286 |                     'processing': true, // Display a message when manipulating | 
        
          | 270 |                     'iDisplayLength': 10, // 10 results per page | 287 |                     'iDisplayLength': 10, // 10 results per page | 
        
          | 271 |                     'sPaginationType': "full_numbers", // Pagination display | 288 |                     'sPaginationType': "full_numbers", // Pagination display | 
  
    | Lines 530-535
          
      
      
        Link Here | 
        
          | 530 |                                 <div class="status"> | 547 |                                 <div class="status"> | 
        
          | 531 |                                     <span class="label status">Status:</span> | 548 |                                     <span class="label status">Status:</span> | 
        
          | 532 |                                     [% request.capabilities.$req_status.name | html %] | 549 |                                     [% request.capabilities.$req_status.name | html %] | 
            
              |  |  | 550 |                                     [% IF request.requested_partners.length > 0 %] | 
            
              | 551 |                                         ([% request.requested_partners %]) | 
            
              | 552 |                                     [% END %] | 
        
          | 533 |                                 </div> | 553 |                                 </div> | 
        
          | 534 |                                 <div class="updated"> | 554 |                                 <div class="updated"> | 
        
          | 535 |                                     <span class="label updated">Last updated:</span> | 555 |                                     <span class="label updated">Last updated:</span> | 
  
    | Lines 607-612
          
      
      
        Link Here | 
        
          | 607 |                                     <th>Bibliographic record ID</th> | 627 |                                     <th>Bibliographic record ID</th> | 
        
          | 608 |                                     <th>Library</th> | 628 |                                     <th>Library</th> | 
        
          | 609 |                                     <th>Status</th> | 629 |                                     <th>Status</th> | 
            
              |  |  | 630 |                                     <th>Additional status</th> | 
        
          | 610 |                                     <th>Updated on</th> | 631 |                                     <th>Updated on</th> | 
        
          | 611 |                                     <th>Request number</th> | 632 |                                     <th>Request number</th> | 
        
          | 612 |                                     <th class="actions"></th> | 633 |                                     <th class="actions"></th> | 
            
              | 613 | -  |  |  |