| 
      
            Lines 309-375
          
      
      
        Link Here
      
     | 
  
        
          | 309 | 
                                      [% PROCESS pagination %]  | 
          309 | 
                                      [% PROCESS pagination %]  | 
        
        
          | 310 | 
                                  [% END %]  | 
          310 | 
                                  [% END %]  | 
        
        
          | 311 | 
                                  <div class="page-section">  | 
          311 | 
                                  <div class="page-section">  | 
        
          
            
              | 312 | 
                                          <table class="table">  | 
              312 | 
                                          <table class="dataTable">  | 
            
            
              | 313 | 
                                              <tr>  | 
              313 | 
                                              <thead>  | 
            
            
              | 314 | 
                                                  <th>#</th>  | 
               | 
               | 
            
            
              | 315 | 
                                                  <th>File name</th>  | 
            
            
              | 316 | 
                                                  <th>Profile</th>  | 
            
            
              | 317 | 
                                                  <th>Comments</th>  | 
            
            
              | 318 | 
                                                  <th>Type</th>  | 
            
            
              | 319 | 
                                                  <th>Status</th>  | 
            
            
              | 320 | 
                                                  <th>Staged</th>  | 
            
            
              | 321 | 
                                                  <th># Records</th>  | 
            
            
              | 322 | 
                                                  <th># Items</th>  | 
            
            
              | 323 | 
                                                  <th>Action</th>  | 
            
            
              | 324 | 
                                              </tr>  | 
            
            
              | 325 | 
                                              [% FOREACH batch_lis IN batch_list %]  | 
            
        
          | 326 | 
                                              <tr>  | 
          314 | 
                                              <tr>  | 
        
          
            
              | 327 | 
                                                      <td>[% batch_lis.import_batch_id | html %]</td>  | 
              315 | 
                                                      <th>#</th>  | 
            
            
              | 328 | 
                                                      <td><a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]">[% batch_lis.file_name | html %]</a></td>  | 
              316 | 
                                                      <th>File name</th>  | 
            
            
              | 329 | 
                                                      <td>[% batch_lis.profile | html %]</td>  | 
              317 | 
                                                      <th>Profile</th>  | 
            
            
              | 330 | 
                                                      <td>[% batch_lis.comments | html %]</td>  | 
              318 | 
                                                      <th>Comments</th>  | 
            
            
              | 331 | 
                                                      <td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td>  | 
              319 | 
                                                      <th>Type</th>  | 
            
            
              | 332 | 
                                                      <td>  | 
              320 | 
                                                      <th>Status</th>  | 
            
            
              | 333 | 
                                                          [% IF ( batch_lis.import_status == 'cleaned' ) %]  | 
              321 | 
                                                      <th>Staged</th>  | 
            
            
              | 334 | 
                                                              <span>Cleaned</span>  | 
              322 | 
                                                      <th># Records</th>  | 
            
            
              | 335 | 
                                                          [% ELSIF ( batch_lis.import_status == 'imported' ) %]  | 
              323 | 
                                                      <th># Items</th>  | 
            
            
              | 336 | 
                                                              <span>Imported</span>  | 
              324 | 
                                                      <th>Action</th>  | 
            
            
              | 337 | 
                                                          [% ELSIF ( batch_lis.import_status == 'importing' ) %]  | 
               | 
               | 
            
            
              | 338 | 
                                                              <span>Importing</span>  | 
            
            
              | 339 | 
                                                          [% ELSIF ( batch_lis.import_status == 'reverted' ) %]  | 
            
            
              | 340 | 
                                                              <span>Reverted</span>  | 
            
            
              | 341 | 
                                                          [% ELSIF ( batch_lis.import_status == 'reverting' ) %]  | 
            
            
              | 342 | 
                                                              <span>Reverting</span>  | 
            
            
              | 343 | 
                                                          [% ELSIF ( batch_lis.import_status == 'staged' ) %]  | 
            
            
              | 344 | 
                                                              <span>Staged</span>  | 
            
            
              | 345 | 
                                                          [% ELSE %]  | 
            
            
              | 346 | 
                                                              <span>[% batch_lis.import_status | html %]</span>  | 
            
            
              | 347 | 
                                                          [% END %]  | 
            
            
              | 348 | 
                                                      </td>  | 
            
            
              | 349 | 
                                                      <td>[% batch_lis.upload_timestamp | $KohaDates with_hours=1 %]</td>  | 
            
            
              | 350 | 
                                                      <td>[% batch_lis.num_records | html %]</td>  | 
            
            
              | 351 | 
                                                      <td>[% batch_lis.num_items | html %]  | 
            
            
              | 352 | 
                                                          [% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %]  | 
            
            
              | 353 | 
                                                              (<a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]&op=create_labels">Create label batch</a>)  | 
            
            
              | 354 | 
                                                          [% END %]  | 
            
            
              | 355 | 
                                                      </td>  | 
            
            
              | 356 | 
                                                      <td class="actions">  | 
            
            
              | 357 | 
                                                          [% IF ( batch_lis.can_clean ) %]  | 
            
            
              | 358 | 
                                                              <form method="post" name="clean_batch_[% batch_lis.import_batch_id | html %]" id="clean_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_clean">  | 
            
            
              | 359 | 
                                                                  <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />  | 
            
            
              | 360 | 
                                                                  <input type="hidden" name="op" value="clean-batch" />  | 
            
            
              | 361 | 
                                                                  <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button>  | 
            
            
              | 362 | 
                                                              </form>  | 
            
            
              | 363 | 
                                                          [% ELSIF ( batch_lis.import_status == 'cleaned' ) %]  | 
            
            
              | 364 | 
                                                              <form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id | html %]" id="delete_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_delete">  | 
            
            
              | 365 | 
                                                                  <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />  | 
            
            
              | 366 | 
                                                                  <input type="hidden" name="op" value="delete-batch" />  | 
            
            
              | 367 | 
                                                                  <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>  | 
            
            
              | 368 | 
                                                              </form>  | 
            
            
              | 369 | 
                                                          [% END %]  | 
            
            
              | 370 | 
                                                      </td>  | 
            
        
          | 371 | 
                                              </tr>  | 
          325 | 
                                              </tr>  | 
        
          
            
              | 372 | 
                                              [% END # /FOREACH batch_lis %]  | 
              326 | 
                                              </thead>  | 
            
            
               | 
               | 
              327 | 
                                              <tbody>  | 
            
            
              | 328 | 
                                                  [% FOREACH batch_lis IN batch_list %]  | 
            
            
              | 329 | 
                                                      <tr>  | 
            
            
              | 330 | 
                                                          <td>[% batch_lis.import_batch_id | html %]</td>  | 
            
            
              | 331 | 
                                                          <td><a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]">[% batch_lis.file_name | html %]</a></td>  | 
            
            
              | 332 | 
                                                          <td>[% batch_lis.profile | html %]</td>  | 
            
            
              | 333 | 
                                                          <td>[% batch_lis.comments | html %]</td>  | 
            
            
              | 334 | 
                                                          <td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td>  | 
            
            
              | 335 | 
                                                          <td>  | 
            
            
              | 336 | 
                                                              [% IF ( batch_lis.import_status == 'cleaned' ) %]  | 
            
            
              | 337 | 
                                                                  <span>Cleaned</span>  | 
            
            
              | 338 | 
                                                              [% ELSIF ( batch_lis.import_status == 'imported' ) %]  | 
            
            
              | 339 | 
                                                                  <span>Imported</span>  | 
            
            
              | 340 | 
                                                              [% ELSIF ( batch_lis.import_status == 'importing' ) %]  | 
            
            
              | 341 | 
                                                                  <span>Importing</span>  | 
            
            
              | 342 | 
                                                              [% ELSIF ( batch_lis.import_status == 'reverted' ) %]  | 
            
            
              | 343 | 
                                                                  <span>Reverted</span>  | 
            
            
              | 344 | 
                                                              [% ELSIF ( batch_lis.import_status == 'reverting' ) %]  | 
            
            
              | 345 | 
                                                                  <span>Reverting</span>  | 
            
            
              | 346 | 
                                                              [% ELSIF ( batch_lis.import_status == 'staged' ) %]  | 
            
            
              | 347 | 
                                                                  <span>Staged</span>  | 
            
            
              | 348 | 
                                                              [% ELSE %]  | 
            
            
              | 349 | 
                                                                  <span>[% batch_lis.import_status | html %]</span>  | 
            
            
              | 350 | 
                                                              [% END %]  | 
            
            
              | 351 | 
                                                          </td>  | 
            
            
              | 352 | 
                                                          <td>[% batch_lis.upload_timestamp | $KohaDates with_hours=1 %]</td>  | 
            
            
              | 353 | 
                                                          <td>[% batch_lis.num_records | html %]</td>  | 
            
            
              | 354 | 
                                                          <td>[% batch_lis.num_items | html %]  | 
            
            
              | 355 | 
                                                              [% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %]  | 
            
            
              | 356 | 
                                                                  (<a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]&op=create_labels">Create label batch</a>)  | 
            
            
              | 357 | 
                                                              [% END %]  | 
            
            
              | 358 | 
                                                          </td>  | 
            
            
              | 359 | 
                                                          <td class="actions">  | 
            
            
              | 360 | 
                                                              [% IF ( batch_lis.can_clean ) %]  | 
            
            
              | 361 | 
                                                                  <form method="post" name="clean_batch_[% batch_lis.import_batch_id | html %]" id="clean_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_clean">  | 
            
            
              | 362 | 
                                                                      <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />  | 
            
            
              | 363 | 
                                                                      <input type="hidden" name="op" value="clean-batch" />  | 
            
            
              | 364 | 
                                                                      <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button>  | 
            
            
              | 365 | 
                                                                  </form>  | 
            
            
              | 366 | 
                                                              [% ELSIF ( batch_lis.import_status == 'cleaned' ) %]  | 
            
            
              | 367 | 
                                                                  <form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id | html %]" id="delete_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_delete">  | 
            
            
              | 368 | 
                                                                      <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />  | 
            
            
              | 369 | 
                                                                      <input type="hidden" name="op" value="delete-batch" />  | 
            
            
              | 370 | 
                                                                      <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>  | 
            
            
              | 371 | 
                                                                  </form>  | 
            
            
              | 372 | 
                                                              [% END %]  | 
            
            
              | 373 | 
                                                          </td>  | 
            
            
              | 374 | 
                                                      </tr>  | 
            
            
              | 375 | 
                                                  [% END # /FOREACH batch_lis %]  | 
            
            
              | 376 | 
                                              </tbody>  | 
            
        
          | 373 | 
                                      </table>  | 
          377 | 
                                      </table>  | 
        
        
          | 374 | 
                                  </div> <!-- /.page-section -->  | 
          378 | 
                                  </div> <!-- /.page-section -->  | 
        
        
          | 375 | 
           | 
          379 | 
           | 
        
            
              | 376 | 
              -   | 
               | 
               |