View | Details | Raw Unified | Return to bug 31773
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-62 / +62 lines)
Lines 308-376 Link Here
308
                        [% IF ( pages ) %]
308
                        [% IF ( pages ) %]
309
                            [% PROCESS pagination %]
309
                            [% PROCESS pagination %]
310
                        [% END %]
310
                        [% END %]
311
311
                        <div class="page-section">
312
                        <table>
312
                            <table class="table">
313
                            <tr>
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>
313
                                <tr>
327
                                    <td>[% batch_lis.import_batch_id | html %]</td>
314
                                    <th>#</th>
328
                                    <td><a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]">[% batch_lis.file_name | html %]</a></td>
315
                                    <th>File name</th>
329
                                    <td>[% batch_lis.profile | html %]</td>
316
                                    <th>Profile</th>
330
                                    <td>[% batch_lis.comments | html %]</td>
317
                                    <th>Comments</th>
331
                                    <td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td>
318
                                    <th>Type</th>
332
                                    <td>
319
                                    <th>Status</th>
333
                                        [% IF ( batch_lis.import_status == 'cleaned' ) %]
320
                                    <th>Staged</th>
334
                                            <span>Cleaned</span>
321
                                    <th># Records</th>
335
                                        [% ELSIF ( batch_lis.import_status == 'imported' ) %]
322
                                    <th># Items</th>
336
                                            <span>Imported</span>
323
                                    <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 %]&amp;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>
324
                                </tr>
372
                            [% END # /FOREACH batch_lis %]
325
                                [% FOREACH batch_lis IN batch_list %]
373
                        </table>
326
                                    <tr>
327
                                        <td>[% batch_lis.import_batch_id | html %]</td>
328
                                        <td><a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]">[% batch_lis.file_name | html %]</a></td>
329
                                        <td>[% batch_lis.profile | html %]</td>
330
                                        <td>[% batch_lis.comments | html %]</td>
331
                                        <td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td>
332
                                        <td>
333
                                            [% IF ( batch_lis.import_status == 'cleaned' ) %]
334
                                                <span>Cleaned</span>
335
                                            [% ELSIF ( batch_lis.import_status == 'imported' ) %]
336
                                                <span>Imported</span>
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 %]&amp;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>
372
                                [% END # /FOREACH batch_lis %]
373
                            </table>
374
                        </div> <!-- /.page-section -->
374
375
375
                        [% IF ( pages ) %]
376
                        [% IF ( pages ) %]
376
                            [% PROCESS pagination %]
377
                            [% PROCESS pagination %]
377
- 

Return to bug 31773