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