batch import rework: added suport for loading and dropping items
[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>
41   <!-- TMPL_IF name="can_commit" -->
42   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
43     <input type="hidden" name="op" value="commit-batch" />
44     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
45     <input type="submit" class="button" value="Complete import" />
46   </form>
47   <!-- /TMPL_IF -->
48   <!-- TMPL_IF name="can_revert" -->
49   <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
50     <input type="hidden" name="op" value="revert-batch" />
51     <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
52     <input type="submit" class="button" value="Undo import" />
53   </form>
54   <!-- /TMPL_IF -->
55 </p>
56   <!-- TMPL_IF name="did_commit" -->
57   <p><span class="problem">Completed import of records</span></p>
58   <table>
59   <tr><td>Number of records added</td><td><!-- TMPL_VAR name="num_added" --></td></tr>
60   <tr><td>Number of records updated</td><td><!-- TMPL_VAR name="num_updated" --></td></tr>
61   <tr><td>Number of items added</td><td><!-- TMPL_VAR name="num_items_added" --></td></tr>
62   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
63   </table>
64   <!-- /TMPL_IF -->
65   <!-- TMPL_IF name="did_revert" -->
66   <p><span class="problem">Undid import of records</span></p>
67   <table>
68   <tr><td>Number of records deleted</td><td><!-- TMPL_VAR name="num_deleted" --></td></tr>
69   <tr><td>Number of items deleted</td><td><!-- TMPL_VAR name="num_items_deleted" --></td></tr>
70   <tr><td>Number of records not deleted due to items on loan</td><td><!-- TMPL_VAR name="num_errors" --></td></tr>
71   <tr><td>Number of records changed back</td><td><!-- TMPL_VAR name="num_reverted" --></td></tr>
72   <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
73   </table>
74   <!-- /TMPL_IF -->
75 <!-- /TMPL_IF -->
76 <br />
77
78 <!-- TMPL_IF name="batch_list" -->
79   <!-- TMPL_IF name="pages" -->
80 <div class="pages">
81 Page 
82     <!-- TMPL_LOOP name="pages" -->
83       <!-- TMPL_IF name="current_page" -->
84       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
85       <!-- TMPL_ELSE -->
86       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
87       <!-- /TMPL_IF -->
88     <!-- /TMPL_LOOP -->
89 </div>
90   <!-- /TMPL_IF -->
91 <table>
92   <tr>
93     <th>#</th>
94     <th>File name</th>
95     <th>Comments</th>
96     <th>Status</th>
97     <th>Staged</th>
98     <th># Bibs</th.
99     <th># Items</th>
100   </tr>
101   <!-- TMPL_LOOP name="batch_list" -->
102   <tr>
103     <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>
104     <td><!-- TMPL_VAR name="file_name" --></td>
105     <td><!-- TMPL_VAR name="comments" --></td>
106     <td><!-- TMPL_VAR name="import_status" --></td>
107     <td><!-- TMPL_VAR name="upload_timestamp" --></td>
108     <td><!-- TMPL_VAR name="num_biblios" --></td>
109     <td><!-- TMPL_VAR name="num_items" --></td>
110   </tr>
111   <!-- /TMPL_LOOP -->
112 </table>
113   <!-- TMPL_IF name="pages" -->
114 <div class="pages">
115 Page 
116     <!-- TMPL_LOOP name="pages" -->
117       <!-- TMPL_IF name="current_page" -->
118       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
119       <!-- TMPL_ELSE -->
120       <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
121       <!-- /TMPL_IF -->
122     <!-- /TMPL_LOOP -->
123 </div>
124   <!-- /TMPL_IF -->
125 <!-- /TMPL_IF -->
126
127 <!-- TMPL_IF name="biblio_list" -->
128   <!-- TMPL_IF name="pages" -->
129 <div class="pages">
130 Page 
131     <!-- TMPL_LOOP name="pages" -->
132       <!-- TMPL_IF name="current_page" -->
133       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
134       <!-- TMPL_ELSE -->
135       <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>
136       <!-- /TMPL_IF -->
137     <!-- /TMPL_LOOP -->
138 </div>
139   <!-- /TMPL_IF -->
140 <table>
141   <tr>
142     <th>#</th>
143     <th>Citation</th>
144     <th>Status</th>
145     <th>Overlay?</th>
146   </tr>
147   <!-- TMPL_LOOP name="biblio_list" -->
148   <tr>
149     <td><!-- TMPL_VAR name="record_sequence"--></td>
150     <td><!-- TMPL_VAR name="citation"--></td>
151     <td><!-- TMPL_VAR name="status"--></td>
152     <td><!-- TMPL_VAR name="overlay_status"--></td>
153   </tr>
154     <!-- TMPL_IF name="match_biblionumber" -->
155     <tr>
156       <td />
157       <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>
158     </tr>
159     <!-- /TMPL_IF -->
160   <!-- /TMPL_LOOP -->
161 </table>
162   <!-- TMPL_IF name="pages" -->
163 <div class="pages">
164 Page 
165     <!-- TMPL_LOOP name="pages" -->
166       <!-- TMPL_IF name="current_page" -->
167       <span class="current"><!-- TMPL_VAR name="page_number" --></span>
168       <!-- TMPL_ELSE -->
169       <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>
170       <!-- /TMPL_IF -->
171     <!-- /TMPL_LOOP -->
172 </div>
173   <!-- /TMPL_IF -->
174 <!-- /TMPL_IF -->
175
176 </div>
177 </div>
178 <div class="yui-b">
179 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
180 </div>
181 </div>
182 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->