| 
      
            Lines 1336-1347
          Note that permanent location is a code, and location may be an authval.
      
      
        Link Here
      
     | 
  
        
          | 1336 | 
           | 
          1336 | 
           | 
        
        
          | 1337 | 
                  $(document).ready(function() { | 
          1337 | 
                  $(document).ready(function() { | 
        
        
          | 1338 | 
                      var ids = ['holdings_table', 'otherholdings_table'];  | 
          1338 | 
                      var ids = ['holdings_table', 'otherholdings_table'];  | 
        
          
            
              | 1339 | 
                          var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json')  | $raw %] ]; | 
              1339 | 
                          var table_settings = [ [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json')  | $raw %] ]; | 
            
        
          | 1340 | 
                      var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"];  | 
          1340 | 
                      var has_images = ["[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]"];  | 
        
        
          | 1341 | 
                      for (var i in ids) { | 
          1341 | 
                      for (var i in ids) { | 
        
        
          | 1342 | 
                          var id = ids[i];  | 
          1342 | 
                          var id = ids[i];  | 
        
        
          | 1343 | 
                          if ( !has_images[i] ) { // remove the cover_image column | 
          1343 | 
                          if ( !has_images[i] ) { // remove the cover_image column | 
        
          
            
              | 1344 | 
                                  columns_settings.splice(1,1);  | 
              1344 | 
                                  table_settings.splice(1,1);  | 
            
        
          | 1345 | 
                          }  | 
          1345 | 
                          }  | 
        
        
          | 1346 | 
                          var dt_parameters = { | 
          1346 | 
                          var dt_parameters = { | 
        
        
          | 1347 | 
                              'sDom': 't',  | 
          1347 | 
                              'sDom': 't',  | 
        
  
    | 
      
            Lines 1350-1366
          Note that permanent location is a code, and location may be an authval.
      
      
        Link Here
      
     | 
  
        
          | 1350 | 
                              "bKohaColumnsUseNames": true,  | 
          1350 | 
                              "bKohaColumnsUseNames": true,  | 
        
        
          | 1351 | 
                              "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',  | 
          1351 | 
                              "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',  | 
        
        
          | 1352 | 
                          };  | 
          1352 | 
                          };  | 
        
          
            
              | 1353 | 
                              var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');  | 
              1353 | 
                              var table = KohaTable(id, dt_parameters, table_settings[i], 'with_filters');  | 
            
        
          | 1354 | 
                      }  | 
          1354 | 
                      }  | 
        
        
          | 1355 | 
           | 
          1355 | 
           | 
        
        
          | 1356 | 
                      [% IF Koha.Preference('AcquisitionDetails') %] | 
          1356 | 
                      [% IF Koha.Preference('AcquisitionDetails') %] | 
        
          
            
              | 1357 | 
                              var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %]; | 
              1357 | 
                              var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') %]; | 
            
        
          | 1358 | 
                          var acquisitiondetails_table = KohaTable("orders", { | 
          1358 | 
                          var acquisitiondetails_table = KohaTable("orders", { | 
        
        
          | 1359 | 
                              "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',  | 
          1359 | 
                              "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',  | 
        
        
          | 1360 | 
                              'bPaginate': false,  | 
          1360 | 
                              'bPaginate': false,  | 
        
        
          | 1361 | 
                              'bAutoWidth': false,  | 
          1361 | 
                              'bAutoWidth': false,  | 
        
        
          | 1362 | 
                              "aaSorting": [[ 4, "desc" ]],  | 
          1362 | 
                              "aaSorting": [[ 4, "desc" ]],  | 
        
          
            
              | 1363 | 
                              }, columns_settings);  | 
              1363 | 
                              }, table_settings);  | 
            
        
          | 1364 | 
                      [% END %]  | 
          1364 | 
                      [% END %]  | 
        
        
          | 1365 | 
           | 
          1365 | 
           | 
        
        
          | 1366 | 
                      [% IF suggestions.count %]  | 
          1366 | 
                      [% IF suggestions.count %]  | 
        
            
              | 1367 | 
              -   | 
               | 
               |