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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-5 / +4 lines)
Lines 388-394 Link Here
388
                                        [% INCLUDE 'csrf-token.inc' %]
388
                                        [% INCLUDE 'csrf-token.inc' %]
389
                                        <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />
389
                                        <input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" />
390
                                        <input type="hidden" name="op" value="cud-clean-batch" />
390
                                        <input type="hidden" name="op" value="cud-clean-batch" />
391
                                        <input type="hidden" id="import_status" value="[% batch_lis.import_status | html %]" />
391
                                        <input type="hidden" name="import_status" value="[% batch_lis.import_status | html %]" />
392
                                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button>
392
                                        <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button>
393
                                    </form>
393
                                    </form>
394
                                [% ELSIF ( batch_lis.import_status == 'cleaned' ) %]
394
                                [% ELSIF ( batch_lis.import_status == 'cleaned' ) %]
Lines 635-646 Link Here
635
                if ($(this).hasClass("batch_delete")) {
635
                if ($(this).hasClass("batch_delete")) {
636
                    return confirm(_("Are you sure you want to permanently delete this batch?"));
636
                    return confirm(_("Are you sure you want to permanently delete this batch?"));
637
                } else {
637
                } else {
638
                    if ($(this).closest('form').find('input#import_status').val() === "imported" ) {
638
                    if ($(this).find("input[name='import_status']").val() === "imported" ) {
639
                       return confirm(_("This batch contains imported records. Are you sure you wish to clear all the reservoir records?  This cannot be undone."));
639
                       return confirm(_("This batch contains imported records. Are you sure you wish to clear all the reservoir records?  This cannot be undone."));
640
                    } else {
640
                    } else {
641
                    return confirm(_("Clear all reservoir records staged in this batch?  This cannot be undone."));
641
                        return confirm(_("Clear all reservoir records staged in this batch?  This cannot be undone."));
642
                    }
642
                }
643
                }
643
               }
644
            });
644
            });
645
            [% IF job_enqueued %]
645
            [% IF job_enqueued %]
646
                setTimeout(
646
                setTimeout(
647
- 

Return to bug 38661