Lines 38-43
Link Here
|
38 |
<script type="text/javascript"> |
38 |
<script type="text/javascript"> |
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_DELETE = _("Are you sure you want to permanently delete this batch?"); |
41 |
|
42 |
|
42 |
$(document).ready(function(){ |
43 |
$(document).ready(function(){ |
43 |
$("#staged-record-matching-rules select").change(function(){ |
44 |
$("#staged-record-matching-rules select").change(function(){ |
Lines 194-199
$(document).ready(function(){
Link Here
|
194 |
<div class="dialog message">Cleaned import batch #[% import_batch_id %]</div> |
195 |
<div class="dialog message">Cleaned import batch #[% import_batch_id %]</div> |
195 |
[% END %] |
196 |
[% END %] |
196 |
|
197 |
|
|
|
198 |
[% IF ( did_delete ) %] |
199 |
<div class="dialog message">Import batch deleted successfully</div> |
200 |
[% END %] |
201 |
|
197 |
[% UNLESS ( batch_list ) %] |
202 |
[% UNLESS ( batch_list ) %] |
198 |
[% UNLESS ( batch_info ) %] |
203 |
[% UNLESS ( batch_info ) %] |
199 |
<div class="dialog message"> |
204 |
<div class="dialog message"> |
Lines 448-458
Page
Link Here
|
448 |
<td>[% batch_lis.upload_timestamp %]</td> |
453 |
<td>[% batch_lis.upload_timestamp %]</td> |
449 |
<td>[% batch_lis.num_records %]</td> |
454 |
<td>[% batch_lis.num_records %]</td> |
450 |
<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> |
455 |
<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> |
451 |
<td>[% IF ( batch_lis.can_clean ) %] |
456 |
<td class="actions">[% IF ( batch_lis.can_clean ) %] |
452 |
<form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" > |
457 |
<form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" > |
453 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
458 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
454 |
<input type="hidden" name="op" value="clean-batch" /> |
459 |
<input type="hidden" name="op" value="clean-batch" /> |
455 |
<button class="btn btn-small" onclick="return confirm(MSG_CONFIRM_CLEAN);">Clean</button> |
460 |
<button class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_CLEAN);"><i class="fa fa-minus-square-o"></i> Clean</button> |
|
|
461 |
</form> |
462 |
[% ELSIF ( batch_lis.import_status == 'cleaned' ) %] |
463 |
<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 %]"> |
464 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
465 |
<input type="hidden" name="op" value="delete-batch" /> |
466 |
<button class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);"><i class="fa fa-trash"></i> Delete</button> |
456 |
</form> |
467 |
</form> |
457 |
[% END %] |
468 |
[% END %] |
458 |
</td> |
469 |
</td> |