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