Lines 39-44
Link Here
|
39 |
//<![CDATA[ |
39 |
//<![CDATA[ |
40 |
var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); |
40 |
var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); |
41 |
var MSG_CONFIRM_UNDO_IMPORT = _("Are you sure you want to undo the import of this batch into the catalog?"); |
41 |
var MSG_CONFIRM_UNDO_IMPORT = _("Are you sure you want to undo the import of this batch into the catalog?"); |
|
|
42 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to permanently delete this batch?"); |
42 |
|
43 |
|
43 |
$(document).ready(function(){ |
44 |
$(document).ready(function(){ |
44 |
$("#staged-record-matching-rules select").change(function(){ |
45 |
$("#staged-record-matching-rules select").change(function(){ |
Lines 195-200
$(document).ready(function(){
Link Here
|
195 |
<div class="dialog message">Cleaned import batch #[% import_batch_id %]</div> |
196 |
<div class="dialog message">Cleaned import batch #[% import_batch_id %]</div> |
196 |
[% END %] |
197 |
[% END %] |
197 |
|
198 |
|
|
|
199 |
[% IF ( did_delete ) %] |
200 |
<div class="dialog message">Import batch deleted successfully</div> |
201 |
[% END %] |
202 |
|
198 |
[% UNLESS ( batch_list ) %] |
203 |
[% UNLESS ( batch_list ) %] |
199 |
[% UNLESS ( batch_info ) %] |
204 |
[% UNLESS ( batch_info ) %] |
200 |
<div class="dialog message"> |
205 |
<div class="dialog message"> |
Lines 449-459
Page
Link Here
|
449 |
<td>[% batch_lis.upload_timestamp %]</td> |
454 |
<td>[% batch_lis.upload_timestamp %]</td> |
450 |
<td>[% batch_lis.num_records %]</td> |
455 |
<td>[% batch_lis.num_records %]</td> |
451 |
<td>[% batch_lis.num_items %][% IF ( batch_lis.num_items ) %] <a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]&op=create_labels">(Create label batch)</a>[% END %]</td> |
456 |
<td>[% batch_lis.num_items %][% IF ( batch_lis.num_items ) %] <a href="[% batch_lis.script_name %]?import_batch_id=[% batch_lis.import_batch_id %]&op=create_labels">(Create label batch)</a>[% END %]</td> |
452 |
<td>[% IF ( batch_lis.can_clean ) %] |
457 |
<td class="actions">[% IF ( batch_lis.can_clean ) %] |
453 |
<form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" > |
458 |
<form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" > |
454 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
459 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
455 |
<input type="hidden" name="op" value="clean-batch" /> |
460 |
<input type="hidden" name="op" value="clean-batch" /> |
456 |
<button class="btn btn-small" onclick="return confirm(MSG_CONFIRM_CLEAN);">Clean</button> |
461 |
<button class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_CLEAN);"><i class="fa fa-eraser"></i> Clean</button> |
|
|
462 |
</form> |
463 |
[% ELSIF ( batch_lis.import_status == 'cleaned' ) %] |
464 |
<form method="post" action="/cgi-bin/koha/tools/manage-marc-import.pl" name="delete_batch_[% batch_lis.import_batch_id %]" id="delete_batch_[% batch_lis.import_batch_id %]"> |
465 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
466 |
<input type="hidden" name="op" value="delete-batch" /> |
467 |
<button class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);"><i class="fa fa-trash"></i> Delete</button> |
457 |
</form> |
468 |
</form> |
458 |
[% END %] |
469 |
[% END %] |
459 |
</td> |
470 |
</td> |