Markup and formatting improvements to Manage Staged Records interface.
[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="greybox.inc" -->
8 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
10 <style type="text/css">
11         #jobpanel,#jobstatus,#jobfailed { display : none; }
12         #jobstatus { margin:.4em; }
13         #jobprogress{ width:150px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; }</style>
14 </head>
15 <body>
16 <!-- TMPL_INCLUDE NAME="header.inc" -->
17 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
18
19 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> 
20 <!-- TMPL_IF name="import_batch_id" -->
21  &rsaquo;
22  <a href="<!-- TMPL_VAR name="script_name"-->">Manage Staged MARC Records</a>
23  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
24 <!-- TMPL_ELSE -->
25  &rsaquo; Manage Staged MARC Records
26 <!-- /TMPL_IF -->
27 </div>
28
29 <div id="doc3" class="yui-t2">
30    
31    <div id="bd">
32         <div id="yui-main">
33         <div class="yui-b">
34
35 <h1>Manage Staged MARC Records
36 <!-- TMPL_IF name="import_batch_id" -->
37  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
38 <!-- /TMPL_IF -->
39 </h1>
40 <!-- TMPL_IF name="label_batch" -->
41 <div class="alert">
42 <p>Label batch created, with id: <!-- TMPL_VAR name="label_batch" --> </p>
43 </div>
44 <!-- /TMPL_IF -->
45
46 <!-- TMPL_UNLESS name="batch_list" -->
47    <!-- TMPL_UNLESS name="batch_info" -->
48      <span class="problem">No records have been staged.</span>
49      <a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.
50    <!-- /TMPL_UNLESS -->
51 <!-- /TMPL_UNLESS -->
52
53 <!-- TMPL_IF name="batch_info" -->
54 <fieldset class="rows">
55   <ol>
56     <li><span class="label">File name</span> <!-- TMPL_VAR name="file_name" --></li>
57     <li><span class="label">Comments</span> <!-- TMPL_IF NAME="comments" --><!-- TMPL_VAR name="comments" -->(none)<!-- /TMPL_IF --></li>
58     <li><span class="label">Staged</span> <!-- TMPL_VAR name="upload_timestamp" --></li>
59     <li><span class="label">Status</span> <!-- TMPL_VAR name="import_status" --></li>
60     <li><span class="label">Matching rule applied</span> 
61 <!-- TMPL_IF name="current_matcher_id" -->
62   <!-- TMPL_VAR name="current_matcher_code" --> (<!-- TMPL_VAR name="current_matcher_description" -->)
63 <!-- TMPL_ELSE -->
64   No matching rule in effect
65 <!-- /TMPL_IF -->
66     </li>
67     <li><span class="label">Action if matching record found</span> <!-- TMPL_VAR NAME="overlay_action" --></li>
68     <li><span class="label">Action if no match found</span> <!-- TMPL_VAR NAME="nomatch_action" --></li>
69     <li><span class="label">Item processing</span> <!-- TMPL_VAR NAME="item_action" --></li>
70   </ol>
71 </fieldset>
72 <!-- TMPL_IF name="can_commit" -->
73 <div id="matchingrules">
74   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
75   <fieldset class="rows">
76     <input type="hidden" name="op" value="redo-matching" />
77     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
78     <input type="hidden" name="current_matcher_id" value="<!-- TMPL_VAR name="current_matcher_id" -->" />
79     <ol>
80     <li><label for name="new_matcher_id">New matching rule</label>
81     <select name="new_matcher_id" id="new_matcher_id">
82        <option value="">Do not look for matching records</option> 
83        <!-- TMPL_LOOP name="available_matchers" -->
84           <!-- TMPL_IF name="selected" -->
85           <option value="<!-- TMPL_VAR name="matcher_id" -->" selected="selected">
86              <!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
87           </option>
88           <!-- TMPL_ELSE -->
89           <option value="<!-- TMPL_VAR name="matcher_id" -->">
90             <!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
91           </option>
92           <!-- /TMPL_IF -->
93        <!-- /TMPL_LOOP -->
94     </select>
95     </li>
96     <li><label for="overlay_action">Action if matching record found</label>
97      <!-- TMPL_INCLUDE NAME="tools-overlay-action.inc" -->
98     </li>
99     <li><label for="overlay_action">Action if no match found</label>
100      <!-- TMPL_INCLUDE NAME="tools-nomatch-action.inc" -->
101     </li>
102     <li><label for="overlay_action">Item processing</label>
103      <!-- TMPL_INCLUDE NAME="tools-item-action.inc" -->
104     </li>
105     </ol>
106     <fieldset class="action"><input type="submit" class="button" value="Apply different matching rule" /></fieldset>
107     </fieldset>
108   </form>
109   <!-- TMPL_IF name="rematch_attempted" -->
110     <!-- TMPL_IF name="rematch_failed" -->
111       <div class="dialog alert">Failed to apply different matching rule</div>
112     <!-- TMPL_ELSE -->
113       <div class="dialog message">Applied different matching rule.  Number of records matched now
114        <!-- TMPL_VAR name="num_with_matches" -->
115       </div>
116     <!-- /TMPL_IF -->
117   <!-- /TMPL_IF -->
118   <!-- TMPL_IF name="changed_overlay_action" -->
119       <div class="dialog message">Changed action if matching record found</div>
120   <!-- /TMPL_IF -->
121   <!-- TMPL_IF name="changed_nomatch_action" -->
122       <div class="dialog message">Changed action if no match found</div>
123   <!-- /TMPL_IF -->
124   <!-- TMPL_IF name="changed_item_action" -->
125       <div class="dialog message">Changed item processing option</div>
126   <!-- /TMPL_IF -->
127 </div>
128 <!-- /TMPL_IF -->
129 <div>
130   <!-- TMPL_IF name="can_commit" -->
131   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
132     <input type="hidden" name="op" value="commit-batch" />
133     <input type="hidden" name="runinbackground" value="" />
134     <input type="hidden" name="completedJobID" value="" />
135     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
136     <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Import into catalogue" onclick="return submitBackgroundJob(this.form);" /></fieldset>
137   </form>
138   <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
139      <div id="jobfailed"></div></div>
140   <!-- /TMPL_IF -->
141   <!-- TMPL_IF name="can_revert" -->
142   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
143     <input type="hidden" name="op" value="revert-batch" />
144     <input type="hidden" name="runinbackground" value="" />
145     <input type="hidden" name="completedJobID" value="" />
146     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
147     <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalogue" onclick="return submitBackgroundJob(this.form);" /></fieldset>
148   </form>
149   <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
150      <div id="jobfailed"></div></div>
151   <!-- /TMPL_IF -->
152 </div>
153   <!-- TMPL_IF name="did_commit" -->
154   <div class="dialog message">Completed import of records</div>
155   <table>
156   <tr><td>Number of records added</td><td><!-- TMPL_VAR name="num_added" --></td></tr>
157   <tr><td>Number of records updated</td><td><!-- TMPL_VAR name="num_updated" --></td></tr>
158   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
159   <tr><td>Number of items added</td><td><!-- TMPL_VAR name="num_items_added" --></td></tr>
160   <tr><td>Number of items ignored because of duplicate barcode</td><td><!-- TMPL_VAR name="num_items_errored" --></td></tr>
161   </table>
162   <!-- /TMPL_IF -->
163   <!-- TMPL_IF name="did_revert" -->
164   <div class="dialog message">Undid import of records</div>
165   <table>
166   <tr><td>Number of records deleted</td><td><!-- TMPL_VAR name="num_deleted" --></td></tr>
167   <tr><td>Number of items deleted</td><td><!-- TMPL_VAR name="num_items_deleted" --></td></tr>
168   <tr><td>Number of records not deleted due to items on loan</td><td><!-- TMPL_VAR name="num_errors" --></td></tr>
169   <tr><td>Number of records changed back</td><td><!-- TMPL_VAR name="num_reverted" --></td></tr>
170   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
171   </table>
172   <!-- /TMPL_IF -->
173 <!-- /TMPL_IF -->
174 <br />
175
176 <!-- TMPL_IF name="batch_list" -->
177   <!-- TMPL_IF name="pages" -->
178 <div class="pages">
179 Page 
180     <!-- TMPL_LOOP name="pages" -->
181       <!-- TMPL_IF name="current_page" -->
182       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
183       <!-- TMPL_ELSE -->
184       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
185       <!-- /TMPL_IF -->
186     <!-- /TMPL_LOOP -->
187 </div>
188   <!-- /TMPL_IF -->
189 <table>
190   <tr>
191     <th>#</th>
192     <th>File name</th>
193     <th>Comments</th>
194     <th>Status</th>
195     <th>Staged</th>
196     <th># Bibs</th>
197     <th># Items</th>
198   </tr>
199   <!-- TMPL_LOOP name="batch_list" -->
200   <tr>
201     <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>
202     <td><!-- TMPL_VAR name="file_name" --></td>
203     <td><!-- TMPL_VAR name="comments" --></td>
204     <td><!-- TMPL_VAR name="import_status" --></td>
205     <td><!-- TMPL_VAR name="upload_timestamp" --></td>
206     <td><!-- TMPL_VAR name="num_biblios" --></td>
207     <td><!-- TMPL_VAR name="num_items" --><!-- TMPL_IF NAME="num_items" --><a href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&op=create_labels">(Create Label Batch)</a><!-- /TMPL_IF --></td>
208   </tr>
209   <!-- /TMPL_LOOP -->
210 </table>
211   <!-- TMPL_IF name="pages" -->
212 <div class="pages">
213 Page 
214     <!-- TMPL_LOOP name="pages" -->
215       <!-- TMPL_IF name="current_page" -->
216       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
217       <!-- TMPL_ELSE -->
218       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
219       <!-- /TMPL_IF -->
220     <!-- /TMPL_LOOP -->
221 </div>
222   <!-- /TMPL_IF -->
223 <!-- /TMPL_IF -->
224
225 <!-- TMPL_IF name="biblio_list" -->
226   <!-- TMPL_IF name="pages" -->
227 <div class="pages">
228 Page 
229     <!-- TMPL_LOOP name="pages" -->
230       <!-- TMPL_IF name="current_page" -->
231       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
232       <!-- TMPL_ELSE -->
233       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&amp;offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
234       <!-- /TMPL_IF -->
235     <!-- /TMPL_LOOP -->
236 </div>
237   <!-- /TMPL_IF -->
238 <table>
239   <tr>
240     <th>#</th>
241     <th>Citation</th>
242     <th>Status</th>
243     <th>Match?</th>
244   </tr>
245   <!-- TMPL_LOOP name="biblio_list" -->
246   <tr>
247     <td><!-- TMPL_VAR name="record_sequence"--></td>
248     <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR name='import_record_id' -->" rel="gb_page_center[600,500]"><!-- TMPL_VAR name="citation"--></a></td>
249     <td><!-- TMPL_VAR name="status"--></td>
250     <td><!-- TMPL_VAR name="overlay_status"--></td>
251   </tr>
252     <!-- TMPL_IF name="match_biblionumber" -->
253     <tr>
254       <td />
255       <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>
256     </tr>
257     <!-- /TMPL_IF -->
258   <!-- /TMPL_LOOP -->
259 </table>
260   <!-- TMPL_IF name="pages" -->
261 <div class="pages">
262 Page 
263     <!-- TMPL_LOOP name="pages" -->
264       <!-- TMPL_IF name="current_page" -->
265       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
266       <!-- TMPL_ELSE -->
267       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&amp;offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
268       <!-- /TMPL_IF -->
269     <!-- /TMPL_LOOP -->
270 </div>
271   <!-- /TMPL_IF -->
272 <!-- TMPL_ELSE -->
273   <!-- TMPL_IF name="batch_info" -->
274     <div class="dialog alert">There are no records in this batch to import.</div>
275     <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>.
276   <!-- /TMPL_IF -->
277 <!-- /TMPL_IF -->
278
279 </div>
280 </div>
281 <div class="yui-b">
282 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
283 </div>
284 </div>
285 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->