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