batch import rework -- implement stage-commit-undo for batch import
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / manage-marc-import.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Manage Staged MARC Records
3 <!-- TMPL_IF name="import_batch_id" -->
4  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
5 <!-- /TMPL_IF -->
6 </title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 </head>
9 <body>
10 <!-- TMPL_INCLUDE NAME="header.inc" -->
11 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
12
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> 
14 <!-- TMPL_IF name="import_batch_id" -->
15  &rsaquo;
16  <a href="<!-- TMPL_VAR name="script_name"-->">Manage Staged MARC Records</a>
17  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
18 <!-- TMPL_ELSE -->
19  &rsaquo; Manage Staged MARC Records
20 <!-- /TMPL_IF -->
21 </div>
22
23 <div id="doc3" class="yui-t2">
24    
25    <div id="bd">
26         <div id="yui-main">
27         <div class="yui-b">
28
29 <h1>Manage Staged MARC Records
30 <!-- TMPL_IF name="import_batch_id" -->
31  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
32 <!-- /TMPL_IF -->
33 </h1>
34
35 <!-- TMPL_IF name="batch_info" -->
36 <p><label>File name</label> <!-- TMPL_VAR name="file_name" --></p>
37 <p><label>Comments</label> <!-- TMPL_VAR name="comments" --></p>
38 <p><label>Staged</label> <!-- TMPL_VAR name="upload_timestamp" --></p>
39 <p><label>Status</label> <!-- TMPL_VAR name="import_status" --></p>
40 <p>
41   <!-- TMPL_IF name="can_commit" -->
42   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
43     <input type="hidden" name="op" value="commit-batch" />
44     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
45     <input type="submit" class="button" value="Complete import" />
46   </form>
47   <!-- /TMPL_IF -->
48   <!-- TMPL_IF name="can_revert" -->
49   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
50     <input type="hidden" name="op" value="revert-batch" />
51     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
52     <input type="submit" class="button" value="Undo import" />
53   </form>
54   <!-- /TMPL_IF -->
55 </p>
56   <!-- TMPL_IF name="did_commit" -->
57   <p><span class="problem">Completed import of records</span></p>
58   <table>
59   <tr><td>Number of records added</td><td><!-- TMPL_VAR name="num_added" --></td></tr>
60   <tr><td>Number of records updated</td><td><!-- TMPL_VAR name="num_updated" --></td></tr>
61   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
62   </table>
63   <!-- /TMPL_IF -->
64   <!-- TMPL_IF name="did_revert" -->
65   <p><span class="problem">Undid import of records</span></p>
66   <table>
67   <tr><td>Number of records deleted</td><td><!-- TMPL_VAR name="num_deleted" --></td></tr>
68   <tr><td>Number of records not deleted due to items on loan</td><td><!-- TMPL_VAR name="num_errors" --></td></tr>
69   <tr><td>Number of records changed back</td><td><!-- TMPL_VAR name="num_reverted" --></td></tr>
70   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
71   </table>
72   <!-- /TMPL_IF -->
73 <!-- /TMPL_IF -->
74 <br />
75
76 <!-- TMPL_IF name="batch_list" -->
77   <!-- TMPL_IF name="pages" -->
78 <div class="pages">
79 Page 
80     <!-- TMPL_LOOP name="pages" -->
81       <!-- TMPL_IF name="current_page" -->
82       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
83       <!-- TMPL_ELSE -->
84       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
85       <!-- /TMPL_IF -->
86     <!-- /TMPL_LOOP -->
87 </div>
88   <!-- /TMPL_IF -->
89 <table>
90   <tr>
91     <th>#</th>
92     <th>File name</th>
93     <th>Comments</th>
94     <th>Status</th>
95     <th>Staged</th>
96     <th># Bibs</th.
97     <th># Items</th>
98   </tr>
99   <!-- TMPL_LOOP name="batch_list" -->
100   <tr>
101     <td><a href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->"><!-- TMPL_VAR name="import_batch_id" --></a></td>
102     <td><!-- TMPL_VAR name="file_name" --></td>
103     <td><!-- TMPL_VAR name="comments" --></td>
104     <td><!-- TMPL_VAR name="import_status" --></td>
105     <td><!-- TMPL_VAR name="upload_timestamp" --></td>
106     <td><!-- TMPL_VAR name="num_biblios" --></td>
107     <td><!-- TMPL_VAR name="num_items" --></td>
108   </tr>
109   <!-- /TMPL_LOOP -->
110 </table>
111   <!-- TMPL_IF name="pages" -->
112 <div class="pages">
113 Page 
114     <!-- TMPL_LOOP name="pages" -->
115       <!-- TMPL_IF name="current_page" -->
116       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
117       <!-- TMPL_ELSE -->
118       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
119       <!-- /TMPL_IF -->
120     <!-- /TMPL_LOOP -->
121 </div>
122   <!-- /TMPL_IF -->
123 <!-- /TMPL_IF -->
124
125 <!-- TMPL_IF name="biblio_list" -->
126   <!-- TMPL_IF name="pages" -->
127 <div class="pages">
128 Page 
129     <!-- TMPL_LOOP name="pages" -->
130       <!-- TMPL_IF name="current_page" -->
131       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
132       <!-- TMPL_ELSE -->
133       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
134       <!-- /TMPL_IF -->
135     <!-- /TMPL_LOOP -->
136 </div>
137   <!-- /TMPL_IF -->
138 <table>
139   <tr>
140     <th>#</th>
141     <th>Citation</th>
142     <th>Status</th>
143     <th>Overlay?</th>
144   </tr>
145   <!-- TMPL_LOOP name="biblio_list" -->
146   <tr>
147     <td><!-- TMPL_VAR name="record_sequence"--></td>
148     <td><!-- TMPL_VAR name="citation"--></td>
149     <td><!-- TMPL_VAR name="status"--></td>
150     <td><!-- TMPL_VAR name="overlay_status"--></td>
151   </tr>
152     <!-- TMPL_IF name="match_biblionumber" -->
153     <tr>
154       <td />
155       <td class="highlight" colspan="3">Matches biblio <!-- TMPL_VAR name="match_biblionumber" --> (score = <!-- TMPL_VAR name="match_score" -->): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="match_biblionumber" -->"><!-- TMPL_VAR name="match_citation" --></a></td>
156     </tr>
157     <!-- /TMPL_IF -->
158   <!-- /TMPL_LOOP -->
159 </table>
160   <!-- TMPL_IF name="pages" -->
161 <div class="pages">
162 Page 
163     <!-- TMPL_LOOP name="pages" -->
164       <!-- TMPL_IF name="current_page" -->
165       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
166       <!-- TMPL_ELSE -->
167       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
168       <!-- /TMPL_IF -->
169     <!-- /TMPL_LOOP -->
170 </div>
171   <!-- /TMPL_IF -->
172 <!-- /TMPL_IF -->
173
174 </div>
175 </div>
176 <div class="yui-b">
177 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
178 </div>
179 </div>
180 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->