Lines 31-37
Link Here
|
31 |
</li> |
31 |
</li> |
32 |
[% IF ( import_batch_id ) %] |
32 |
[% IF ( import_batch_id ) %] |
33 |
<li> |
33 |
<li> |
34 |
<a href="[% script_name | url %]">Manage staged MARC records</a> |
34 |
<a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a> |
35 |
</li> |
35 |
</li> |
36 |
<li> |
36 |
<li> |
37 |
<a href="#" aria-current="page"> |
37 |
<a href="#" aria-current="page"> |
Lines 57-64
Link Here
|
57 |
› Batch [% import_batch_id | html %] |
57 |
› Batch [% import_batch_id | html %] |
58 |
[% END %] |
58 |
[% END %] |
59 |
</h1> |
59 |
</h1> |
|
|
60 |
[% FOREACH message IN messages %] |
61 |
[% IF message.type == 'success' %] |
62 |
<div class="dialog message"> |
63 |
[% ELSIF message.type == 'warning' %] |
64 |
<div class="dialog alert"> |
65 |
[% ELSIF message.type == 'error' %] |
66 |
<div class="dialog alert" style="margin:auto;"> |
67 |
[% END %] |
68 |
[% IF message.code == 'cannot_enqueue_job' %] |
69 |
<span>Cannot enqueue this job.</span> |
70 |
[% END %] |
71 |
[% IF message.error %] |
72 |
<span>(The error was: [% message.error | html %], see the Koha log file for more information).</span> |
73 |
[% END %] |
74 |
</div> |
75 |
[% END %] |
76 |
|
77 |
[% IF job_enqueued %] |
78 |
<div class="dialog message"> |
79 |
<p>The job has been enqueued! It will be processed as soon as possible.</p> |
80 |
<p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a> |
81 |
</div> |
60 |
|
82 |
|
61 |
[% IF ( label_batch_msg ) %] |
83 |
[% ELSIF ( label_batch_msg ) %] |
62 |
[% IF ( alert ) %] |
84 |
[% IF ( alert ) %] |
63 |
<div class="alert"> |
85 |
<div class="alert"> |
64 |
[% ELSE %] |
86 |
[% ELSE %] |
Lines 82-99
Link Here
|
82 |
<div class="dialog message">Import batch deleted successfully</div> |
104 |
<div class="dialog message">Import batch deleted successfully</div> |
83 |
[% END %] |
105 |
[% END %] |
84 |
|
106 |
|
85 |
[% UNLESS ( batch_list ) %] |
107 |
[% UNLESS batch_list || batch_info || job_enqueued %] |
86 |
[% UNLESS ( batch_info ) %] |
108 |
<div class="dialog message"> |
87 |
<div class="dialog message"> |
109 |
<p>No records have been staged.</p> |
88 |
<p>No records have been staged.</p> |
110 |
<p><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.</p> |
89 |
<p><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.</p> |
111 |
</div> |
90 |
</div> |
|
|
91 |
[% END %] |
92 |
[% END %] |
112 |
[% END %] |
93 |
|
113 |
|
94 |
[% IF ( batch_info ) %] |
114 |
[% IF ( batch_info ) %] |
95 |
[% IF ( can_commit ) %] |
115 |
[% IF ( can_commit ) %] |
96 |
<form action="[% script_name | html %]" method="post"> |
116 |
<form method="post"> |
97 |
<input type="hidden" name="op" value="redo-matching" /> |
117 |
<input type="hidden" name="op" value="redo-matching" /> |
98 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
118 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
99 |
<input type="hidden" name="current_matcher_id" value="[% current_matcher_id | html %]" /> |
119 |
<input type="hidden" name="current_matcher_id" value="[% current_matcher_id | html %]" /> |
Lines 121-126
Link Here
|
121 |
<div class="dialog message">Changed item processing option</div> |
141 |
<div class="dialog message">Changed item processing option</div> |
122 |
[% END %] |
142 |
[% END %] |
123 |
|
143 |
|
|
|
144 |
[% UNLESS job_enqueued %] |
124 |
<fieldset class="rows" id="staged-record-matching-rules"> |
145 |
<fieldset class="rows" id="staged-record-matching-rules"> |
125 |
<ol> |
146 |
<ol> |
126 |
<li><span class="label">File name:</span> [% file_name | html %]</li> |
147 |
<li><span class="label">File name:</span> [% file_name | html %]</li> |
Lines 236-242
Link Here
|
236 |
|
257 |
|
237 |
<div> |
258 |
<div> |
238 |
[% IF ( can_commit ) %] |
259 |
[% IF ( can_commit ) %] |
239 |
<form action="[% script_name | html %]" method="post" id="import_batch_form"> |
260 |
<form method="post" id="import_batch_form"> |
240 |
<input type="hidden" name="op" value="commit-batch" /> |
261 |
<input type="hidden" name="op" value="commit-batch" /> |
241 |
<input type="hidden" name="runinbackground" value="" /> |
262 |
<input type="hidden" name="runinbackground" value="" /> |
242 |
<input type="hidden" name="completedJobID" value="" /> |
263 |
<input type="hidden" name="completedJobID" value="" /> |
Lines 261-267
Link Here
|
261 |
</div> |
282 |
</div> |
262 |
[% END # /IF can_commit %] |
283 |
[% END # /IF can_commit %] |
263 |
[% IF ( can_revert ) %] |
284 |
[% IF ( can_revert ) %] |
264 |
<form action="[% script_name | html %]" method="post" id="revert_batch_form"> |
285 |
<form method="post" id="revert_batch_form"> |
265 |
<input type="hidden" name="op" value="revert-batch" /> |
286 |
<input type="hidden" name="op" value="revert-batch" /> |
266 |
<input type="hidden" name="runinbackground" value="" /> |
287 |
<input type="hidden" name="runinbackground" value="" /> |
267 |
<input type="hidden" name="completedJobID" value="" /> |
288 |
<input type="hidden" name="completedJobID" value="" /> |
Lines 274-339
Link Here
|
274 |
</div> |
295 |
</div> |
275 |
[% END # /IF can_revert %] |
296 |
[% END # /IF can_revert %] |
276 |
</div> |
297 |
</div> |
277 |
|
298 |
[% END %] |
278 |
[% IF ( did_commit ) %] |
|
|
279 |
<div class="dialog message">Completed import of records</div> |
280 |
<table> |
281 |
<tr> |
282 |
<td>Number of records added</td> |
283 |
<td>[% num_added | html %]</td> |
284 |
</tr> |
285 |
<tr> |
286 |
<td>Number of records updated</td> |
287 |
<td>[% num_updated | html %]</td> |
288 |
</tr> |
289 |
<tr> |
290 |
<td>Number of records ignored</td> |
291 |
<td>[% num_ignored | html %]</td> |
292 |
</tr> |
293 |
[% IF ( record_type == 'biblio' ) %] |
294 |
<tr> |
295 |
<td>Number of items added</td> |
296 |
<td>[% num_items_added | html %]</td> |
297 |
</tr> |
298 |
<tr> |
299 |
<td>Number of items replaced</td> |
300 |
<td>[% num_items_replaced | html %]</td> |
301 |
</tr> |
302 |
<tr> |
303 |
<td>Number of items ignored because of duplicate barcode</td> |
304 |
<td>[% num_items_errored | html %]</td> |
305 |
</tr> |
306 |
[% END %] |
307 |
</table> |
308 |
[% END #/ IF did_commit %] |
309 |
|
310 |
[% IF ( did_revert ) %] |
311 |
<div class="dialog message">Success: Import reversed</div> |
312 |
<table> |
313 |
<tr> |
314 |
<td>Number of records deleted</td> |
315 |
<td>[% num_deleted | html %]</td> |
316 |
</tr> |
317 |
[% IF ( record_type == 'biblio' ) %] |
318 |
<tr> |
319 |
<td>Number of items deleted</td> |
320 |
<td>[% num_items_deleted | html %]</td> |
321 |
</tr> |
322 |
<tr> |
323 |
<td>Number of records not deleted due to items on loan</td> |
324 |
<td>[% num_errors | html %]</td> |
325 |
</tr> |
326 |
[% END %] |
327 |
<tr> |
328 |
<td>Number of records changed back</td> |
329 |
<td>[% num_reverted | html %]</td> |
330 |
</tr> |
331 |
<tr> |
332 |
<td>Number of records ignored</td> |
333 |
<td>[% num_ignored | html %]</td> |
334 |
</tr> |
335 |
</table> |
336 |
[% END # /IF did_revert%] |
337 |
|
299 |
|
338 |
[% END # /IF batch_info %] |
300 |
[% END # /IF batch_info %] |
339 |
|
301 |
|
Lines 360-366
Link Here
|
360 |
[% FOREACH batch_lis IN batch_list %] |
322 |
[% FOREACH batch_lis IN batch_list %] |
361 |
<tr> |
323 |
<tr> |
362 |
<td>[% batch_lis.import_batch_id | html %]</td> |
324 |
<td>[% batch_lis.import_batch_id | html %]</td> |
363 |
<td><a href="[% batch_lis.script_name | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]">[% batch_lis.file_name | html %]</a></td> |
325 |
<td><a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]">[% batch_lis.file_name | html %]</a></td> |
364 |
<td>[% batch_lis.profile | html %]</td> |
326 |
<td>[% batch_lis.profile | html %]</td> |
365 |
<td>[% batch_lis.comments | html %]</td> |
327 |
<td>[% batch_lis.comments | html %]</td> |
366 |
<td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td> |
328 |
<td>[% IF ( batch_lis.record_type == 'auth' ) %]Authority[% ELSE %]Bibliographic[% END %]</td> |
Lines 385-396
Link Here
|
385 |
<td>[% batch_lis.num_records | html %]</td> |
347 |
<td>[% batch_lis.num_records | html %]</td> |
386 |
<td>[% batch_lis.num_items | html %] |
348 |
<td>[% batch_lis.num_items | html %] |
387 |
[% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %] |
349 |
[% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %] |
388 |
(<a href="[% batch_lis.script_name | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]&op=create_labels">Create label batch</a>) |
350 |
(<a href="?import_batch_id=[% batch_lis.import_batch_id | uri %]&op=create_labels">Create label batch</a>) |
389 |
[% END %] |
351 |
[% END %] |
390 |
</td> |
352 |
</td> |
391 |
<td class="actions"> |
353 |
<td class="actions"> |
392 |
[% IF ( batch_lis.can_clean ) %] |
354 |
[% IF ( batch_lis.can_clean ) %] |
393 |
<form method="post" action="[% batch_lis.script_name | html %]" name="clean_batch_[% batch_lis.import_batch_id | html %]" id="clean_batch_[% batch_lis.import_batch_id | html %]" class="batch_form batch_clean"> |
355 |
<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"> |
394 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" /> |
356 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" /> |
395 |
<input type="hidden" name="op" value="clean-batch" /> |
357 |
<input type="hidden" name="op" value="clean-batch" /> |
396 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button> |
358 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button> |
Lines 457-463
Link Here
|
457 |
[% MACRO jsinclude BLOCK %] |
419 |
[% MACRO jsinclude BLOCK %] |
458 |
[% Asset.js("js/tools-menu.js") | $raw %] |
420 |
[% Asset.js("js/tools-menu.js") | $raw %] |
459 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
421 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
460 |
[% Asset.js("js/background-job-progressbar.js") | $raw %] |
|
|
461 |
[% INCLUDE 'datatables.inc' %] |
422 |
[% INCLUDE 'datatables.inc' %] |
462 |
<script> |
423 |
<script> |
463 |
$(document).ready(function() { |
424 |
$(document).ready(function() { |
Lines 657-664
Link Here
|
657 |
<ul class="pagination"> |
618 |
<ul class="pagination"> |
658 |
[% FOREACH page IN pages %] |
619 |
[% FOREACH page IN pages %] |
659 |
[% IF ( page.current_page && page.page_number > 1 ) %] |
620 |
[% IF ( page.current_page && page.page_number > 1 ) %] |
660 |
<li><a href="[% page.script_name | url %]?offset=0" class="nav"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li> |
621 |
<li><a href="?offset=0" class="nav"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li> |
661 |
<li><a href="[% page.script_name | url %]?offset=[% offset - results_per_page | uri %]"><i class="fa fa-fw fa-angle-left"></i> Previous</a></li> |
622 |
<li><a href="?offset=[% offset - results_per_page | uri %]"><i class="fa fa-fw fa-angle-left"></i> Previous</a></li> |
662 |
[% END %] |
623 |
[% END %] |
663 |
[% END %] |
624 |
[% END %] |
664 |
[% FOREACH page IN pages %] |
625 |
[% FOREACH page IN pages %] |
Lines 666-680
Link Here
|
666 |
[% SET current_page = page.page_number %] |
627 |
[% SET current_page = page.page_number %] |
667 |
<li class="active"><span class="current">[% page.page_number | html %]</span></li> |
628 |
<li class="active"><span class="current">[% page.page_number | html %]</span></li> |
668 |
[% ELSE %] |
629 |
[% ELSE %] |
669 |
<li><a class="nav" href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a></li> |
630 |
<li><a class="nav" href="?offset=[% page.offset | uri %]">[% page.page_number | html %]</a></li> |
670 |
[% END %] |
631 |
[% END %] |
671 |
[% END %] |
632 |
[% END %] |
672 |
[% IF ( current_page < pages.size() ) %] |
633 |
[% IF ( current_page < pages.size() ) %] |
673 |
<li> |
634 |
<li> |
674 |
<a href="[% page.script_name | url %]?offset=[% offset + results_per_page | uri %]" class="nav">Next <i class="fa fa-fw fa-angle-right"></i></a> |
635 |
<a href="?offset=[% offset + results_per_page | uri %]" class="nav">Next <i class="fa fa-fw fa-angle-right"></i></a> |
675 |
</li> |
636 |
</li> |
676 |
<li> |
637 |
<li> |
677 |
<a href="[% page.script_name | url %]?offset=[% ( results_per_page * ( pages.size - 1 ) ) | uri %]" class="nav">Last <i class="fa fa-fw fa-angle-double-right"></i></a> |
638 |
<a href="?offset=[% ( results_per_page * ( pages.size - 1 ) ) | uri %]" class="nav">Last <i class="fa fa-fw fa-angle-double-right"></i></a> |
678 |
</li> |
639 |
</li> |
679 |
[% END %] |
640 |
[% END %] |
680 |
</ul> |
641 |
</ul> |