Bug 28066: Remove select tag's size attribute where it is 1
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / addorderiso2709.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE Branches %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Acquisitions &rsaquo; Order staged MARC records
7 [% IF ( batch_details ) %]
8  &rsaquo; Batch [% import_batch_id | html %]
9 [% ELSE %]
10  &rsaquo; Batch list
11 [% END %]
12 </title>
13 <style>#dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style>
14 [% INCLUDE 'doc-head-close.inc' %]
15 [%# As long as cataloging plugins rely on <script> tags added inline, JS must be in the header %]
16 [% Asset.js("js/acquisitions-menu.js") | $raw %]
17 [% INCLUDE 'datatables.inc' %]
18 [% Asset.js("js/acq.js") | $raw %]
19 [% Asset.js("js/funds_sorts.js") | $raw %]
20 [% Asset.js("js/addorderiso2709.js") | $raw %]
21 </head>
22
23 <body id="acq_addorderiso2709" class="acq">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'acquisitions-search.inc' %]
26 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% booksellername | html %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketno | html %]</a> &rsaquo; Add orders from MARC file</div>
27     <div class="container-fluid">
28         <div class="row">
29             <div class="col-sm-6 col-sm-offset-3 col-md-8 col-md-offset-2">
30              [% IF ( allmatch ) %]<div class="dialog alert">
31               <h4>No records imported</h4>
32              No record have been imported because they all match an existing record in your catalog.<br />You'll have to treat them individually.
33              </div>
34              [% END %]
35
36              [% IF ( batch_details ) %]
37                 <h1>Add orders from [% comments | html %]
38                     ([% file_name | html %] staged on [% upload_timestamp | $KohaDates  with_hours => 1 %])
39                 </h1>
40                 <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
41                 <div id="tabs" class="toptabs">
42                   <ul>
43                     <li><a href="#records_to_import">Select to import</a></li>
44                     <li><a href="#items_info" class="items_info">Item information</a></li>
45                     <li><a href="#accounting_details">Default accounting details</a></li>
46                   </ul>
47
48                   <div id="records_to_import">
49                     <div id="searchheader" class="searchheader">
50                         <div>
51                             <span class="checkall"><a id="checkAll" href="#">Select all</a></span>
52                             |
53                             <span class="uncheckall"><a id="unCheckAll" href="#">Clear all</a></span>
54                             |
55                             <span>
56                                 <label for="matcher_id">Matching:</label>
57                                     <select name="matcher_id" id="matcher_id">
58                                         <option value="_TITLE_AUTHOR_">Title and author</option>
59                                         <option value="">Do not look for matching records</option>
60                                         [% FOREACH available_matcher IN available_matchers %]
61                                             [% IF ( available_matcher.code == current_matcher_code ) %]
62                                                 <option value="[% available_matcher.matcher_id | html %]" selected="selected">
63                                                     [% available_matcher.code | html %] ([% available_matcher.description | html %])
64                                                 </option>
65                                             [% ELSE %]
66                                                 <option value="[% available_matcher.matcher_id | html %]">
67                                                     [% available_matcher.code | html %] ([% available_matcher.description | html %])
68                                                 </option>
69                                             [% END %]
70                                         [% END %]
71                                     </select>
72                             </span>
73                             |
74                             <span>
75                                 <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show inactive funds:</label>
76                                 <input type="checkbox" id="showallbudgets" />
77                             </span>
78                         </div>
79                     </div>
80
81                         <input type="hidden" name="op" value="import_records"/>
82                         <input type="hidden" name="basketno" value="[% basketno | html %]" />
83                         <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
84                         <input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" />
85                         <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" />
86
87                         [% FOREACH biblio IN biblio_list %]
88                         <fieldset class="biblio unselected rows" style="float:none;">
89                           <legend>
90                             <label for="record_[% biblio.import_record_id | html %]" style="width:auto;">
91                               <input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id | html %]" value="[% biblio.import_record_id | html %]" />
92                               <span class="citation">[% biblio.citation | html %]</span>
93                             </label>
94                             <span class="links" style="font-weight: normal;">
95                               ( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id | uri %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% biblio.import_record_id | html %]" class="previewData">Card</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | html %]&amp;basketno=[% basketno | html %]&amp;breedingid=[% biblio.import_record_id | html %]&amp;import_batch_id=[% biblio.import_batch_id | html %]&amp;biblionumber=[% biblio.match_biblionumber | html %]">Add order</a> )
96                             </span>
97                           </legend>
98                           <div style="float:left">
99                           <ol>
100                             <li class="status">
101                               <span class="match">
102                                 [% IF ( biblio_lis.overlay_status == 'no_match' ) %]
103                                     No match
104                                 [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %]
105                                     Match applied
106                                 [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %]
107                                     Match found
108                                 [% ELSE %]
109                                     [% biblio_lis.overlay_status | html %]
110                                 [% END %]
111                                 [% IF ( biblio.match_biblionumber ) %]
112                                   Matches biblio [% biblio.match_biblionumber | uri %] (score = [% biblio.match_score | html %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber | uri %]">[% biblio.match_citation | html %]</a>
113                                 [% END %]
114                               </span>
115                             </li>
116                             <li class="quantity">
117                                 <label for="quantity_record_[% biblio.import_record_id | html %]" class="required">Quantity: </label>
118                                 <input id="quantity_record_[% biblio.import_record_id | html %]" type="text" pattern="[0-9]+" value="[% biblio.quantity.length ? biblio.quantity : 1 | html %]" name="quantity" />
119                                 <span class="required">Required</span>
120                             </li>
121                             <li class="price">
122                                 <label for="price_record_[% biblio.import_record_id | html %]">Price: </label>
123                                 <input id="price_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.price | html %]" name="price" />
124                             </li>
125                             <li class="replacementprice">
126                                 <label for="replacementprice_record_[% biblio.import_record_id | html %]">Replacement price: </label>
127                                 <input id="replacementprice_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.replacementprice | html %]" name="replacementprice" />
128                             </li>
129                             <li class="discount">
130                                 <label for="discount_record_[% biblio.import_record_id | html %]">Discount: </label>
131                                 <input id="discount_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.discount | html %]" name="discount" size="6" /> %
132                                 <div class="hint">If empty, discount rate from vendor will be used</div>
133                             </li>
134                             <li class="fund">
135                                 [% IF ( close ) %]
136                                     <label for="fund_record_[% biblio.import_record_id | html %]">Fund: </label>
137                                     <input type="hidden" size="20" name="budget_id" value="[% budget_id | html %]" />[% Budget_name | html %]
138                                 [% ELSE %]
139                                     <label for="fund_record_[% biblio.import_record_id | html %]">Fund: </label>
140                                     <select id="fund_record_[% biblio.import_record_id | html %]" name="budget_id">
141                                     <option value="">Select a fund (will use default if set)</option>
142                                     [% FOREACH budget IN budget_loop %]
143                                         [% IF ( budget.b_id == biblio.budget_id ) %]
144                                           [% IF budget.b_active %]
145                                             <option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]" selected="selected">[% budget.b_txt | html %]</option>
146                                           [% ELSE %]
147                                             <option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]" selected="selected">[% budget.b_txt | html %] (inactive)</option>
148                                           [% END %]
149                                         [% ELSE %]
150                                             [% IF budget.b_active %]<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %]</option>
151                                             [% ELSE %]<option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %] (inactive)</option>
152                                             [% END %]
153                                         [% END %]
154                                     [% END %]
155                                   </select>
156                                   <span class="required" style="display:none">Required</span>
157                                 [% END %]
158                             </li>
159                             <li class="sort1">
160                                 <label for="sort1_record_[% biblio.import_record_id | html %]">Statistic 1: </label>
161                                 <input id="sort1_record_[% biblio.import_record_id | html %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 | html %]" />
162                             </li>
163                             <li class="sort2">
164                                 <label for="sort2_record_[% biblio.import_record_id | html %]">Statistic 2: </label>
165                                 <input id="sort2_record_[% biblio.import_record_id | html %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 | html %]" />
166                             </li>
167                           </ol>
168                         </div>
169                         <div style="float:right">
170                         [% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %]
171                         [% FOREACH item IN biblio.iteminfos %]
172                         <fieldset>
173                         <legend>Item Record [% item.item_id | html %]</legend>
174                         <ol>
175                         <li>
176                         <label for="homebranch_item_[% item.item_id | html %]">homebranch</label><select id="homebranch_item_[% item.item_id | html %]" name="homebranch_[% item.biblio_count | html %]">
177                         [% FOREACH l IN libraries %]
178                           [% IF l.branchcode == item.homebranch %]
179                             <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
180                           [% ELSE %]
181                             <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
182                           [% END %]
183                         [% END %]
184                         </select>
185                         </li>
186
187                         <li><label for="holdingbranch_item_[% item.item_id | html %]">holdingbranch</label><select id="holdingbranch_item_[% item.item_id | html %]" name="holdingbranch_[% item.biblio_count | html %]">
188                         [% FOREACH l IN libraries %]
189                           [% IF l.branchcode == item.holdingbranch %]
190                             <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
191                           [% ELSE %]
192                             <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
193                           [% END %]
194                         [% END %]
195                         </select>
196                         </li>
197                         <li><label for="itype_item_[% item.item_id | html %]">itype</label><select id="itype_item_[% item.item_id | html %]" name="itype_[% item.biblio_count | html %]">
198                         [% FOREACH itypeloo IN itypeloop %]
199                           [% IF ( itypeloo.itemtype ) == ( item.itype ) %]
200                             <option value="[% itypeloo.itemtype | html %]" selected="selected">[% itypeloo.description | html %]</option>
201                           [% ELSE %]
202                             <option value="[% itypeloo.itemtype | html %]">[% itypeloo.description | html %]</option>
203                           [% END %]
204                         [% END %]
205                         </select>
206                         </li>
207
208                         <li><label for="nonpublic_note_item_[% item.item_id | html %]">nonpublic_note</label><input type="text" id="nonpublic_note_item_[% item.item_id | html %]" name="nonpublic_note_[% item.biblio_count | html %]" value="[% item.nonpublic_note | html %]"></li>
209                         <li><label for="public_note_item_[% item.item_id | html %]">public_note</label><input type="text" id="public_note_item_[% item.item_id | html %]" name="public_note_[% item.biblio_count | html %]" value="[% item.public_note | html %]"></li>
210                         <li><label for="loc_item_[% item.item_id | html %]">loc</label><select id="loc_item_[% item.item_id | html %]" name="loc_[% item.biblio_count | html %]">
211                         <option value=""> </option>
212                         [% FOREACH locationloo IN locationloop %]
213                             [% IF ( locationloo.code ) == (item.loc) %]<option value="[% locationloo.code | html %]" selected="selected">[% locationloo.description | html %]</option>[% ELSE %]<option value="[% locationloo.code | html %]">[% locationloo.description | html %]</option>[% END %]
214                         [% END %]
215                        </select>
216                         </li>
217
218                         <li><label for="ccode_item_[% item.item_id | html %]">ccode</label><select id="ccode_item_[% item.item_id | html %]" name="ccode_[% item.biblio_count | html %]">
219                         <option value=""> </option>
220                         [% FOREACH ccodeloo IN ccodeloop %]
221                             [% IF ( ccodeloo.code ) == (item.ccode) %]<option value="[% ccodeloo.code | html %]" selected="selected">[% ccodeloo.description | html %]</option>[% ELSE %]<option value="[% ccodeloo.code | html %]">[% ccodeloo.description | html %]</option>[% END %]
222                         [% END %]
223                         </select>
224                         </li>
225
226                         <li><label for="notforloan_item_[% item.item_id | html %]">notforloan</label><select id="notforloan_item_[% item.item_id | html %]" name="notforloan_[% item.biblio_count | html %]">
227                         <option value=""> </option>
228                         [% FOREACH n IN notforloanloop %]
229                             [% IF n.code == item.notforloan %]
230                                 <option value="[% n.code | html %]" selected="selected">[% n.description | html %]</option>
231                             [% ELSE %]
232                                 <option value="[% n.code | html %]">[% n.description | html %]</option>
233                             [% END %]
234                         [% END %]
235                         </select>
236                         </li>
237                         <li><label for="uri_item_[% item.item_id | html %]">uri</label><input type="text" id="uri_item_[% item.item_id | html %]" name="uri_[% item.biblio_count | html %]" value="[% item.uri | html %]"></li>
238                         <li><label for="copyno_item_[% item.item_id | html %]">copyno</label><input type="text" id="copyno_item_[% item.item_id | html %]" name="copyno_[% item.biblio_count | html %]" value="[% item.copyno | html %]"></li>
239                         <li><label for="budget_code_item_[% item.item_id | html %]">budget_code</label><select class="budget_code_item" id="budget_code_item_[% item.item_id | html %]" name="budget_code_[% item.biblio_count | html %]">
240                         <option value="">Select a fund (will use default if set)</option>
241                         [% FOREACH budget_loo IN budget_loop %]
242                             [% IF ( budget_loo.b_id ) == ( item.budget_id ) %]<option value="[% budget_loo.b_id | html %]" selected="selected">[% budget_loo.b_txt | html %]</option>
243                             [% ELSE %]<option value="[% budget_loo.b_id | html %]">[% budget_loo.b_txt | html %]</option>
244                             [% END %]
245                         [% END %]
246                         </select>
247                         <span class="item_fund required">Required</span>
248                         </li>
249                         <li><label for="price_item_[% item.item_id | html %]">price</label><input type="text" id="price_item_[% item.item_id | html %]" name="itemprice_[% item.biblio_count | html %]" value="[% item.itemprice | html %]"></li>
250                         <li><label for="replacementprice_item_[% item.item_id | html %]">replacement price</label><input type="text" id="replacementprice_item_[% item.item_id | html %]" name="replacementprice_[% item.biblio_count | html %]" value="[% item.replacementprice | html %]"></li>
251                         <li><label for="callnumber_item_[% item.item_id | html %]">callnumber</label><input type="text" id="callnumber_item_[% item.item_id | html %]" name="itemcallnumber_[% item.biblio_count | html %]" value="[% item.itemcallnumber | html %]"></li>
252                         </ol>
253                         </fieldset>
254                         [% END %]
255                         </div>
256                         </fieldset>
257                             <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
258                                 <div class="modal-dialog">
259                                 <div class="modal-content">
260                                 <div class="modal-header">
261                                     <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
262                                     <h3 id="dataPreviewLabel">MARC preview</h3>
263                                 </div>
264                                 <div class="modal-body">
265                                     <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
266                                 </div>
267                                 <div class="modal-footer">
268                                     <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
269                                 </div>
270                                 </div>
271                                 </div>
272                             </div>
273                         [% END %]
274                       </div>
275                       <div id="items_info">
276                         <h2>Item information</h2>
277                         <p>Import all the checked items in the basket with the following parameters:</p>
278
279                         [% IF ( items ) %]
280                         <fieldset class="rows" style="float:none;">
281                             <legend>Item</legend>
282                             [% IF ( NoACQframework ) %]
283                                 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
284                             [% END %]
285                             [% FOREACH item IN items %]
286                             <div id="outeritemblock">
287                             <div id="itemblock">
288                                 <ol>
289                                 [% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden | html %];">
290                                     <div class="subfield_line" id="subfield[% iteminformatio.serialid | html %][% iteminformatio.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]">
291                                         [% IF (iteminformatio.mandatory) %]
292                                             <label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
293                                         [% ELSE %]
294                                             <label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
295                                         [% END %]
296
297                                         [% IF ( iteminformatio.marc_value.type == 'select' ) %]
298                                             <select name="field_value">
299                                             [% FOREACH value IN iteminformatio.marc_value.values %]
300                                                 [% IF ( value == iteminformatio.marc_value.default ) %]
301                                                     <option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
302                                                 [% ELSE %]
303                                                     <option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
304                                                 [% END %]
305                                             [% END %]
306                                             </select>
307                                         [% ELSE %]
308                                         [% iteminformatio.marc_value | $raw %]
309                                         [% END %]
310                                         <input type="hidden" name="itemid" value="1" />
311                                         <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
312                                         <input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
313                                         <input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
314                                         <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
315                                         [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
316                                     </div></li>
317                                 [% END %]
318                                 </ol>
319                             </div><!-- /iteminformation -->
320                             </div>
321                             [% END %] <!-- /items -->
322                         </fieldset>
323                         [% END %] <!-- items -->
324                       </div>
325                       <div id="accounting_details">
326                         <p>Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):</p>
327                         <fieldset class="rows" style="float:none;">
328                             <legend>Accounting details</legend>
329                             <ol>
330                                 <li>
331                                     <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order -->
332                                     <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
333                                 </li>
334                                 <li>
335                                     [% IF ( close ) %]
336                                         <span class="label">Fund: </span>
337                                         <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id | html %]" />[% Budget_name | html %]
338                                     [% ELSE %]
339                                         <li>
340                                             <label for="all_currency">Currency:</label>
341                                             <select name="all_currency" id="all_currency">
342                                             [% FOREACH currency IN currencies %]
343                                                 [% IF currency.currency == bookseller.listprice %]
344                                                     <option value="[% currency.currency | html %]" selected="selected">[% currency.currency | html %]</option>
345                                                 [% ELSIF not currency.archived %]
346                                                     <option value="[% currency.currency | html %]">[% currency.currency | html %]</option>
347                                                 [% END %]
348                                             [% END %]
349                                             </select>
350                                         </li>
351                                         <li>
352                                             <label for="all_budget_id">Fund: </label>
353                                             <select id="all_budget_id" name="all_budget_id">
354                                               <option value="">Select a fund (will populate orders/items if set)</option>
355                                             [% FOREACH budget_loo IN budget_loop %]
356                                                 [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %]</option>
357                                                 [% ELSE %]<option value="[% budget_loo.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %] (inactive)</option>
358                                                 [% END %]
359                                             [% END %]
360                                             </select>
361                                             <label for="all_showallbudgets" style="float:none;width:auto;">&nbsp;Show inactive:</label>
362                                             <input type="checkbox" id="all_showallbudgets" />
363                                         </li>
364                                     [% END %]
365                                 </li>
366                                 <li>
367                                     <label for="all_order_internalnote">Internal note: </label>
368                                     <textarea id="all_order_internalnote" cols="30" rows="3" name="all_order_internalnote"></textarea>
369                                 </li>
370                                 <li>
371                                     <label for="all_order_vendornote">Vendor note: </label>
372                                     <textarea id="all_order_vendornote" cols="30" rows="3" name="all_order_vendornote"></textarea>
373                                 </li>
374                                 <li>
375                                     <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
376                                     <label for="all_sort1">Statistic 1: </label>
377                                     <input type="text" id="all_sort1" size="20" name="all_sort1" value="" />
378                                 </li>
379                                 <li>
380                                     <label for="all_sort2">Statistic 2: </label>
381                                     <input type="text" id="all_sort2" size="20" name="all_sort2" value="" />
382                                 </li>
383                             </ol>
384                         </fieldset>
385                       </div>
386                       </div>
387
388                       <fieldset class="action">
389                           <input id="add_order" type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
390                       </fieldset>
391                     </form>
392                 [% ELSE %]
393                 <div>
394                   <h1>Choose the file to add to the basket</h1>
395                   <table id="files">
396                     <thead>
397                       <tr>
398                         <th>File name</th>
399                         <th>Comments</th>
400                         <th>Status</th>
401                         <th>Staged</th>
402                         <th># Bibliographic records</th>
403                         <th class="NoSort">&nbsp;</th>
404                       </tr>
405                     </thead>
406                     <tbody>
407                       [% FOREACH batch_lis IN batch_list %]
408                       <tr>
409                         <td>[% batch_lis.file_name | html %]</td>
410                         <td>[% batch_lis.comments | html %]</td>
411                         <td>
412                           [% IF ( batch_lis.import_status == 'cleaned' ) %]
413                             Cleaned
414                           [% ELSIF ( batch_lis.import_status == 'imported' ) %]
415                             Imported
416                           [% ELSIF ( batch_lis.import_status == 'importing' ) %]
417                             Importing
418                           [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
419                             Reverted
420                           [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
421                             Reverting
422                           [% ELSIF ( batch_lis.import_status == 'staged' ) %]
423                             Staged
424                           [% ELSE %]
425                             [% batch_lis.import_status | html %]
426                           [% END %]
427                         </td>
428                         <td data-order="[% batch_lis.staged_date | html %]">[% batch_lis.staged_date | $KohaDates  with_hours => 1 %]</td>
429                         <td>[% batch_lis.num_records | html %]</td>
430                         <td class="actions">
431                             <a href="[% batch_lis.scriptname | url %]?import_batch_id=[% batch_lis.import_batch_id | uri %]&amp;basketno=[% basketno | uri %]&amp;booksellerid=[% booksellerid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add orders</a>
432                         </td>
433                       </tr>
434                       [% END %]
435                     </tbody>
436                   </table>
437                 </div>
438                 [% END %]
439             </div> [% # /div.col-sm-6 %]
440        </div> [% # /div.row %]
441
442 [% INCLUDE 'intranet-bottom.inc' %]