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