Lines 37-45
Link Here
|
37 |
[% INCLUDE 'datatables.inc' %] |
37 |
[% INCLUDE 'datatables.inc' %] |
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."); |
|
|
41 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to permanently delete this batch?"); |
42 |
|
43 |
$(document).ready(function(){ |
40 |
$(document).ready(function(){ |
44 |
$("#staged-record-matching-rules select").change(function(){ |
41 |
$("#staged-record-matching-rules select").change(function(){ |
45 |
var str = $(this).attr("id"); |
42 |
var str = $(this).attr("id"); |
Lines 133-144
$(document).ready(function(){
Link Here
|
133 |
); |
130 |
); |
134 |
}, |
131 |
}, |
135 |
})); |
132 |
})); |
136 |
$("#import_batch_form").on("submit",function(){ |
133 |
$("#import_batch_form").on("submit",function(){ |
137 |
return submitBackgroundJob( document.getElementById("import_batch_form") ); |
134 |
return submitBackgroundJob( document.getElementById("import_batch_form") ); |
138 |
}); |
135 |
}); |
139 |
$("#revert_batch_form").on("submit",function(){ |
136 |
$("#revert_batch_form").on("submit",function(){ |
140 |
return confirm( _("Are you sure you want to undo the import of this batch into the catalog?") ) && submitBackgroundJob( document.getElementById("revert_batch_form") ); |
137 |
return confirm( _("Are you sure you want to undo the import of this batch into the catalog?") ) && submitBackgroundJob( document.getElementById("revert_batch_form") ); |
141 |
}); |
138 |
}); |
142 |
[% END %] |
139 |
[% END %] |
143 |
$("body").on("click",".previewMARC", function(e){ |
140 |
$("body").on("click",".previewMARC", function(e){ |
144 |
e.preventDefault(); |
141 |
e.preventDefault(); |
Lines 152-157
$(document).ready(function(){
Link Here
|
152 |
$("#marcPreviewLabel").html(""); |
149 |
$("#marcPreviewLabel").html(""); |
153 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
150 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
154 |
}); |
151 |
}); |
|
|
152 |
$(".batch_form").on("submit",function(){ |
153 |
if( $(this).hasClass("delete") ){ |
154 |
return confirm( _("Are you sure you want to permanently delete this batch?") ); |
155 |
} else { |
156 |
return confirm( _("Clear all reservoir records staged in this batch? This cannot be undone.") ); |
157 |
} |
158 |
}); |
155 |
}); |
159 |
}); |
156 |
|
160 |
|
157 |
//]]> |
161 |
//]]> |
Lines 372-378
$(document).ready(function(){
Link Here
|
372 |
<input type="hidden" name="runinbackground" value="" /> |
376 |
<input type="hidden" name="runinbackground" value="" /> |
373 |
<input type="hidden" name="completedJobID" value="" /> |
377 |
<input type="hidden" name="completedJobID" value="" /> |
374 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id %]" /> |
378 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id %]" /> |
375 |
<fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" onclick="" /></fieldset> |
379 |
<fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" /></fieldset> |
376 |
</form> |
380 |
</form> |
377 |
<div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
381 |
<div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
378 |
<div id="jobfailed"></div></div> |
382 |
<div id="jobfailed"></div></div> |
Lines 459-474
Page
Link Here
|
459 |
<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> |
463 |
<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> |
460 |
<td class="actions"> |
464 |
<td class="actions"> |
461 |
[% IF ( batch_lis.can_clean ) %] |
465 |
[% IF ( batch_lis.can_clean ) %] |
462 |
<form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" > |
466 |
<form method="post" action="[% batch_lis.script_name %]" name="clean_batch_[% batch_lis.import_batch_id %]" id="clean_batch_[% batch_lis.import_batch_id %]" class="batch_form batch_clean" > |
463 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
467 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
464 |
<input type="hidden" name="op" value="clean-batch" /> |
468 |
<input type="hidden" name="op" value="clean-batch" /> |
465 |
<button class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_CLEAN);"><i class="fa fa-eraser"></i> Clean</button> |
469 |
<button type="submit" class="btn btn-mini"><i class="fa fa-eraser"></i> Clean</button> |
466 |
</form> |
470 |
</form> |
467 |
[% ELSIF ( batch_lis.import_status == 'cleaned' ) %] |
471 |
[% ELSIF ( batch_lis.import_status == 'cleaned' ) %] |
468 |
<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 %]"> |
472 |
<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 %]" class="batch_form batch_delete"> |
469 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
473 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id %]" /> |
470 |
<input type="hidden" name="op" value="delete-batch" /> |
474 |
<input type="hidden" name="op" value="delete-batch" /> |
471 |
<button class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);"><i class="fa fa-trash"></i> Delete</button> |
475 |
<button type="submit" class="btn btn-mini"><i class="fa fa-trash"></i> Delete</button> |
472 |
</form> |
476 |
</form> |
473 |
[% END %] |
477 |
[% END %] |
474 |
</td> |
478 |
</td> |
475 |
- |
|
|