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