| 
      
            Lines 52-66
          function verify_images() {
      
      
        Link Here
      
     | 
  
        
          | 52 | 
          <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>  | 
          52 | 
          <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>  | 
        
        
          | 53 | 
          <script type="text/javascript">  | 
          53 | 
          <script type="text/javascript">  | 
        
        
          | 54 | 
          //<![CDATA[  | 
          54 | 
          //<![CDATA[  | 
        
            
               | 
               | 
              55 | 
                  function activate_filters(id) { | 
            
            
              | 56 | 
                      table = $("#" + id + " table"); | 
            
            
              | 57 | 
                      if (table.length == 1) { | 
            
            
              | 58 | 
                          filters_row = table.find('thead tr.filters_row'); | 
            
            
              | 59 | 
                          if (table.find('thead tr.columnFilter').length == 0) { | 
            
            
              | 60 | 
                              table.dataTable().columnFilter({ | 
            
            
              | 61 | 
                                  'sPlaceHolder': 'head:after'  | 
            
            
              | 62 | 
                              });  | 
            
            
              | 63 | 
                              filters_row.addClass('columnFilter'); | 
            
            
              | 64 | 
                          }  | 
            
            
              | 65 | 
                          filters_row.show();  | 
            
            
              | 66 | 
                      }  | 
            
            
              | 67 | 
               | 
            
            
              | 68 | 
                      $('#' + id + '_activate_filters') | 
            
            
              | 69 | 
                          .text(_('Deactivate filters')) | 
            
            
              | 70 | 
                          .unbind('click') | 
            
            
              | 71 | 
                          .click(function() { | 
            
            
              | 72 | 
                              deactivate_filters(id);  | 
            
            
              | 73 | 
                              return false;  | 
            
            
              | 74 | 
                          });  | 
            
            
              | 75 | 
                  }  | 
            
            
              | 76 | 
               | 
            
            
              | 77 | 
                  function deactivate_filters(id) { | 
            
            
              | 78 | 
                      filters_row = $("#" + id + " table").find('thead tr.filters_row'); | 
            
            
              | 79 | 
               | 
            
            
              | 80 | 
                      filters_row.find('input[type="text"]') | 
            
            
              | 81 | 
                          .val('')            // Empty filter text boxes | 
            
            
              | 82 | 
                          .trigger('keyup')   // Filter (display all rows) | 
            
            
              | 83 | 
                          .trigger('blur');   // Reset value to the column name | 
            
            
              | 84 | 
                      filters_row.hide();  | 
            
            
              | 85 | 
               | 
            
            
              | 86 | 
                      $('#' + id + '_activate_filters') | 
            
            
              | 87 | 
                          .text(_('Activate filters')) | 
            
            
              | 88 | 
                          .unbind('click') | 
            
            
              | 89 | 
                          .click(function() { | 
            
            
              | 90 | 
                              activate_filters(id);  | 
            
            
              | 91 | 
                              return false;  | 
            
            
              | 92 | 
                          });  | 
            
            
              | 93 | 
                  }  | 
            
            
              | 94 | 
               | 
            
        
          | 55 | 
              $(document).ready(function() { | 
          95 | 
              $(document).ready(function() { | 
        
          
            
              | 56 | 
                      for (id in {holdings:0, otherholdings:0}) { | 
              96 | 
                      var ids = ['holdings', 'otherholdings'];  | 
            
            
              | 57 | 
                          $("#"+ id +" > table").dataTable($.extend(true, {}, dataTablesDefaults, { | 
              97 | 
                      for (var i in ids) { | 
            
            
               | 
               | 
              98 | 
                          var id = ids[i];  | 
            
            
              | 99 | 
                          table = $('#' + id + ' table'); | 
            
            
              | 100 | 
               | 
            
            
              | 101 | 
                          // Duplicate the table header row for columnFilter  | 
            
            
              | 102 | 
                          thead_row = table.find('thead tr'); | 
            
            
              | 103 | 
                          clone = thead_row.clone().addClass('filters_row'); | 
            
            
              | 104 | 
                          thead_row.before(clone);  | 
            
            
              | 105 | 
               | 
            
            
              | 106 | 
                          // Enable sorting  | 
            
            
              | 107 | 
                          table.dataTable($.extend(true, {}, dataTablesDefaults, { | 
            
        
          | 58 | 
                          'sDom': 't',  | 
          108 | 
                          'sDom': 't',  | 
        
        
          | 59 | 
                          'bPaginate': false,  | 
          109 | 
                          'bPaginate': false,  | 
        
        
          | 60 | 
                          'bAutoWidth': false  | 
          110 | 
                          'bAutoWidth': false  | 
        
          
            
              | 61 | 
                          })).columnFilter({ | 
              111 | 
                          }));  | 
            
            
              | 62 | 
                              'sPlaceHolder': 'head:after'  | 
              112 | 
               | 
            
            
              | 63 | 
                          });  | 
              113 | 
                          // Show a link to activate filtering  | 
            
            
               | 
               | 
              114 | 
                          link = $('<a>') | 
            
            
              | 115 | 
                              .attr('href', '#') | 
            
            
              | 116 | 
                              .attr('id', id + '_activate_filters'); | 
            
            
              | 117 | 
                          table.before(link);  | 
            
            
              | 118 | 
                          deactivate_filters(id);  | 
            
        
          | 64 | 
                  }  | 
          119 | 
                  }  | 
        
        
          | 65 | 
              });  | 
          120 | 
              });  | 
        
        
          | 66 | 
          //]]>  | 
          121 | 
          //]]>  | 
        
  
    | 
      
            Lines 298-324
          function verify_images() {
      
      
        Link Here
      
     | 
  
        
          | 298 | 
          [% BLOCK items_table %]  | 
          353 | 
          [% BLOCK items_table %]  | 
        
        
          | 299 | 
              <table>  | 
          354 | 
              <table>  | 
        
        
          | 300 | 
                  <thead>  | 
          355 | 
                  <thead>  | 
        
          
            
              | 301 | 
                          [%# duplicate the header row for columnFilter %]  | 
              356 | 
                          <tr>  | 
            
            
              | 302 | 
                          [% FOREACH i IN [1,2] %]  | 
              357 | 
                              [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]  | 
            
            
              | 303 | 
                              <tr>  | 
              358 | 
                              <th>Current location</th>  | 
            
            
              | 304 | 
                                  [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]  | 
              359 | 
                              <th>Home Library</th>  | 
            
            
              | 305 | 
                                  <th>Current location</th>  | 
              360 | 
                              [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]  | 
            
            
              | 306 | 
                                  <th>Home Library</th>  | 
              361 | 
                              <th>Call number</th>  | 
            
            
              | 307 | 
                                  [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]  | 
              362 | 
                              <th>Status</th>  | 
            
            
              | 308 | 
                                  <th>Call number</th>  | 
              363 | 
                              <th>Last seen</th>  | 
            
            
              | 309 | 
                                  <th>Status</th>  | 
              364 | 
                              <th>Barcode</th>  | 
            
            
              | 310 | 
                                  <th>Last seen</th>  | 
              365 | 
                              [% IF ( volinfo ) %]<th>Publication details</th>[% END %]  | 
            
            
              | 311 | 
                                  <th>Barcode</th>  | 
              366 | 
                              [% IF ( itemdata_uri ) %]<th>url</th>[% END %]  | 
            
            
              | 312 | 
                                  [% IF ( volinfo ) %]<th>Publication details</th>[% END %]  | 
              367 | 
                              [% IF ( itemdata_copynumber ) %]<th>Copy no.</th>[% END %]  | 
            
            
              | 313 | 
                                  [% IF ( itemdata_uri ) %]<th>url</th>[% END %]  | 
              368 | 
                              [% IF materials %]<th>Materials specified</th>[% END %]  | 
            
            
              | 314 | 
                                  [% IF ( itemdata_copynumber ) %]<th>Copy no.</th>[% END %]  | 
              369 | 
                              [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]  | 
            
            
              | 315 | 
                                  [% IF materials %]<th>Materials specified</th>[% END %]  | 
              370 | 
                              [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]  | 
            
            
              | 316 | 
                                  [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]  | 
              371 | 
                              [% IF ( hostrecords ) %]<th>Host records</th>[% END %]  | 
            
            
              | 317 | 
                                  [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %]  | 
              372 | 
                              [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]  | 
            
            
              | 318 | 
                                  [% IF ( hostrecords ) %]<th>Host records</th>[% END %]  | 
              373 | 
                          </tr>  | 
            
            
              | 319 | 
                                  [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]  | 
               | 
               | 
            
            
              | 320 | 
                              </tr>  | 
            
            
              | 321 | 
                          [% END %]  | 
            
        
          | 322 | 
                  </thead>  | 
          374 | 
                  </thead>  | 
        
        
          | 323 | 
                  <tbody>  | 
          375 | 
                  <tbody>  | 
        
        
          | 324 | 
                      [% FOREACH item IN items %]  | 
          376 | 
                      [% FOREACH item IN items %]  | 
        
            
              | 325 | 
              -   | 
               | 
               |