Bug 27421: Commit and revert
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / background_jobs / stage_marc_for_import.inc
1 [% USE Koha %]
2
3 [% BLOCK report %]
4     [% SET report = job.report %]
5     [% IF report %]
6         <h2>MARC staging results</h2>
7         [% SWITCH (record_type) %]
8         [% CASE 'biblio' %]
9             <h3>Processing bibliographic records</h3>
10         [% CASE 'auth' %]
11             <h3>Processing authority records</h3>
12         [% END %]
13         <ul>
14             <li>[% report.total | html %]  records in file</li>
15             <li>[% report.import_errors | html %] records not staged because of MARC error</li>
16             <li>[% report.staged | html %] records staged</li>
17             [% IF ( report.checked_matches ) %]
18             <li>[% report.matched | html %] records with at least one match in catalog per matching rule
19                 &quot;[% report.matcher_code | html %]&quot;</li>
20             [% ELSE %]
21                 [% IF ( report.matcher_failed ) %]
22                     <li>Record matching failed -- unable to retrieve selected matching rule.</li>
23                 [% ELSE %]
24                     <li>Did not check for matches with existing records in catalog</li>
25                 [% END %]
26             [% END %]
27             [% IF report.record_type == 'biblio' %]
28                 <li>[% report.num_items | html %] item records found and staged</li>
29             [% END %]
30             [% IF ( report.label_batch ) %]
31                 <li>New label batch created: # [% report.label_batch | html %] </li>
32             [% END %]
33         </ul>
34         <p>
35             <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% report.import_batch_id | uri %]">View batch</a>
36         </p>
37         [% IF report.basketno && report.booksellerid %]
38         <p>
39             <a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% report.import_batch_id | html %]&basketno=[% report.basketno | html %]&booksellerid=[% report.booksellerid | html %]">Add staged files to basket</a>
40         </p>
41         [% END %]
42     [% END %]
43 [% END %]
44
45 [% BLOCK detail %]
46 [% END %]
47
48 [% BLOCK js %]
49 [% END %]