Beginning work on Calendar compatibility fixes
[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 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
9 </head>
10 <body>
11 <!-- TMPL_INCLUDE NAME="header.inc" -->
12 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
13
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> 
15 <!-- TMPL_IF name="import_batch_id" -->
16  &rsaquo;
17  <a href="<!-- TMPL_VAR name="script_name"-->">Manage Staged MARC Records</a>
18  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
19 <!-- TMPL_ELSE -->
20  &rsaquo; Manage Staged MARC Records
21 <!-- /TMPL_IF -->
22 </div>
23
24 <div id="doc3" class="yui-t2">
25    
26    <div id="bd">
27         <div id="yui-main">
28         <div class="yui-b">
29
30 <h1>Manage Staged MARC Records
31 <!-- TMPL_IF name="import_batch_id" -->
32  &rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
33 <!-- /TMPL_IF -->
34 </h1>
35 <!-- TMPL_IF name="label_batch" -->
36 <div class="alert">
37 <p>Label batch created, with id: <!-- TMPL_VAR name="label_batch" --> </p>
38 </div>
39 <!-- /TMPL_IF -->
40 <!-- TMPL_IF name="batch_info" -->
41 <p><label>File name</label> <!-- TMPL_VAR name="file_name" --></p>
42 <p><label>Comments</label> <!-- TMPL_VAR name="comments" --></p>
43 <p><label>Staged</label> <!-- TMPL_VAR name="upload_timestamp" --></p>
44 <p><label>Status</label> <!-- TMPL_VAR name="import_status" --></p>
45 <p><label>Matching rule applied</label> 
46 <!-- TMPL_IF name="current_matcher_id" -->
47   <!-- TMPL_VAR name="current_matcher_code" --> (<!-- TMPL_VAR name="current_matcher_description" -->)
48 <!-- TMPL_ELSE -->
49   No matching rule in effect
50 <!-- /TMPL_IF -->
51 </p>
52 <!-- TMPL_IF name="can_commit" -->
53 <div>
54   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
55     <input type="hidden" name="op" value="redo-matching" />
56     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
57     <input type="hidden" name="current_matcher_id" value="<!-- TMPL_VAR name="current_matcher_id" -->" />
58     <select name="new_matcher_id" id="new_matcher_id">
59        <option value="">Do not look for matching records</option> 
60        <!-- TMPL_LOOP name="available_matchers" -->
61           <!-- TMPL_IF name="selected" -->
62           <option value="<!-- TMPL_VAR name="matcher_id" -->" selected="selected">
63              <!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
64           </option>
65           <!-- TMPL_ELSE -->
66           <option value="<!-- TMPL_VAR name="matcher_id" -->">
67             <!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
68           </option>
69           <!-- /TMPL_IF -->
70        <!-- /TMPL_LOOP -->
71     </select>
72     <input type="submit" class="button" value="Apply different matching rule" />
73   </form>
74 </div>
75 <!-- /TMPL_IF -->
76 <div>
77   <!-- TMPL_IF name="can_commit" -->
78   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
79     <input type="hidden" name="op" value="commit-batch" />
80     <input type="hidden" name="runinbackground" value="" />
81     <input type="hidden" name="completedJobID" value="" />
82     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
83     <input type="submit" class="button" name="mainformsubmit" value="Complete import" onclick="return submitBackgroundJob(this.form);" />
84   </form>
85   <div id="jobstatus" style="display:none">Job progress: <span id="jobprogress">0</span>%</div>
86   <div id="jobfailed" style="display:none"></div>
87   <!-- /TMPL_IF -->
88   <!-- TMPL_IF name="can_revert" -->
89   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
90     <input type="hidden" name="op" value="revert-batch" />
91     <input type="hidden" name="runinbackground" value="" />
92     <input type="hidden" name="completedJobID" value="" />
93     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
94     <input type="submit" class="button" name="mainformsubmit" value="Undo import" onclick="return submitBackgroundJob(this.form);" />
95   </form>
96   <div id="jobstatus" style="display:none">Job progress: <span id="jobprogress">0</span>%</div>
97   <div id="jobfailed" style="display:none"></div>
98   <!-- /TMPL_IF -->
99 </div>
100   <!-- TMPL_IF name="did_commit" -->
101   <p><span class="problem">Completed import of records</span></p>
102   <table>
103   <tr><td>Number of records added</td><td><!-- TMPL_VAR name="num_added" --></td></tr>
104   <tr><td>Number of records updated</td><td><!-- TMPL_VAR name="num_updated" --></td></tr>
105   <tr><td>Number of items added</td><td><!-- TMPL_VAR name="num_items_added" --></td></tr>
106   <tr><td>Number of items ignored because of duplicate barcode</td><td><!-- TMPL_VAR name="num_items_errored" --></td></tr>
107   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
108   </table>
109   <!-- /TMPL_IF -->
110   <!-- TMPL_IF name="did_revert" -->
111   <p><span class="problem">Undid import of records</span></p>
112   <table>
113   <tr><td>Number of records deleted</td><td><!-- TMPL_VAR name="num_deleted" --></td></tr>
114   <tr><td>Number of items deleted</td><td><!-- TMPL_VAR name="num_items_deleted" --></td></tr>
115   <tr><td>Number of records not deleted due to items on loan</td><td><!-- TMPL_VAR name="num_errors" --></td></tr>
116   <tr><td>Number of records changed back</td><td><!-- TMPL_VAR name="num_reverted" --></td></tr>
117   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
118   </table>
119   <!-- /TMPL_IF -->
120   <!-- TMPL_IF name="rematch_attempted" -->
121     <!-- TMPL_IF name="rematch_failed" -->
122       <p><span class="problem">Failed to apply different matching rule</span></p>
123     <!-- TMPL_ELSE -->
124       <p><span class="problem">Applied different matching rule.  Number of records matched now
125        <!-- TMPL_VAR name="num_with_matches" -->
126       </span></p>
127     <!-- /TMPL_IF -->
128   <!-- /TMPL_IF -->
129 <!-- /TMPL_IF -->
130 <br />
131
132 <!-- TMPL_IF name="batch_list" -->
133   <!-- TMPL_IF name="pages" -->
134 <div class="pages">
135 Page 
136     <!-- TMPL_LOOP name="pages" -->
137       <!-- TMPL_IF name="current_page" -->
138       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
139       <!-- TMPL_ELSE -->
140       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
141       <!-- /TMPL_IF -->
142     <!-- /TMPL_LOOP -->
143 </div>
144   <!-- /TMPL_IF -->
145 <table>
146   <tr>
147     <th>#</th>
148     <th>File name</th>
149     <th>Comments</th>
150     <th>Status</th>
151     <th>Staged</th>
152     <th># Bibs</th>
153     <th># Items</th>
154   </tr>
155   <!-- TMPL_LOOP name="batch_list" -->
156   <tr>
157     <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>
158     <td><!-- TMPL_VAR name="file_name" --></td>
159     <td><!-- TMPL_VAR name="comments" --></td>
160     <td><!-- TMPL_VAR name="import_status" --></td>
161     <td><!-- TMPL_VAR name="upload_timestamp" --></td>
162     <td><!-- TMPL_VAR name="num_biblios" --></td>
163     <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>
164   </tr>
165   <!-- /TMPL_LOOP -->
166 </table>
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 <!-- /TMPL_IF -->
180
181 <!-- TMPL_IF name="biblio_list" -->
182   <!-- TMPL_IF name="pages" -->
183 <div class="pages">
184 Page 
185     <!-- TMPL_LOOP name="pages" -->
186       <!-- TMPL_IF name="current_page" -->
187       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
188       <!-- TMPL_ELSE -->
189       <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>
190       <!-- /TMPL_IF -->
191     <!-- /TMPL_LOOP -->
192 </div>
193   <!-- /TMPL_IF -->
194 <table>
195   <tr>
196     <th>#</th>
197     <th>Citation</th>
198     <th>Status</th>
199     <th>Overlay?</th>
200   </tr>
201   <!-- TMPL_LOOP name="biblio_list" -->
202   <tr>
203     <td><!-- TMPL_VAR name="record_sequence"--></td>
204     <td><!-- TMPL_VAR name="citation"--></td>
205     <td><!-- TMPL_VAR name="status"--></td>
206     <td><!-- TMPL_VAR name="overlay_status"--></td>
207   </tr>
208     <!-- TMPL_IF name="match_biblionumber" -->
209     <tr>
210       <td />
211       <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>
212     </tr>
213     <!-- /TMPL_IF -->
214   <!-- /TMPL_LOOP -->
215 </table>
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 <!-- /TMPL_IF -->
229
230 </div>
231 </div>
232 <div class="yui-b noprint">
233 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
234 </div>
235 </div>
236 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->