Bug 16072: Changing all instances of 'loading-small.gif' to 'spinner-small.gif' and...
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / addorderiso2709.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; Order staged MARC records
4 [% IF ( batch_details ) %]
5  &rsaquo; Batch [% import_batch_id %]
6 [% ELSE %]
7  &rsaquo; Batch list
8 [% END %]
9 </title>
10 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
11 <style type="text/css">#dataPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style>
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% INCLUDE 'datatables.inc' %]
14 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
15 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acq.js"></script>
16 <script type="text/JavaScript">
17 //<![CDATA[
18     $(document).ready(function() {
19         $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
20             "aoColumnDefs": [
21                 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
22                 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
23                 { "sType": "title-string", "aTargets" : [ "title-string" ] }
24             ],
25             "sPaginationType": "four_button",
26             "aaSorting": []
27         } ) );
28
29         // keep copy of the inactive budgets
30         disabledBudgetsCopy = $("select[name='all_budget_id']").html();
31         $("select[name='all_budget_id'] .b_inactive").remove();
32         $("select[name='budget_id'] .b_inactive").remove();
33
34         $("#showallbudgets").click(function() {
35             if ($(this).is(":checked")) {
36                 $("select[name='budget_id']").html(disabledBudgetsCopy)
37             }
38             else {
39                 $("select[name='budget_id'] .b_inactive").remove();
40             }
41         });
42
43         $("#all_showallbudgets").click(function() {
44             if ($(this).is(":checked")) {
45                 $("select[name='all_budget_id']").html(disabledBudgetsCopy);
46             }
47             else {
48                 $("select[name='all_budget_id'] .b_inactive").remove();
49             }
50         });
51
52         $("select[name='budget_id']").change(function(){
53             var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
54             var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
55             var destination_sort1 = $(this).parents('fieldset').find('li.sort1').find('input[name="sort1"]');
56             var sort1 = $(destination_sort1).val() || "";
57             if ( destination_sort1.length < 1 ) {
58                 destination_sort1 = $(this).parents('fieldset').find('li.sort1 > select[name="sort1"]');
59             }
60             var destination_sort2 = $(this).parents('fieldset').find('li.sort2').find('input[name="sort2"]');
61             var sort2 = $(destination_sort2).val() || "";
62             if ( destination_sort2.length < 1 ) {
63                 destination_sort2 = $(this).parents('fieldset').find('li.sort2').find('select[name="sort2"]');
64             }
65             getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 );
66
67             getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 );
68         } );
69
70         $("select[name='budget_id']").change();
71
72         $("select[name='all_budget_id']").change(function(){
73             var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
74             var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
75             var destination_sort1 = $(this).parent().siblings('li').find('input[name="all_sort1"]');
76             if ( destination_sort1.length < 1 ) {
77                 destination_sort1 = $(this).parent().siblings('li').find('select[name="all_sort1"]');
78             }
79             var destination_sort2 = $(this).parent().siblings('li').find('input[name="all_sort2"]');
80             if ( destination_sort2.length < 1 ) {
81                 destination_sort2 = $(this).parent().siblings('li').find('select[name="all_sort2"]');
82             }
83             getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1 );
84             getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2 );
85             $(this).parent().siblings('li').find('select[name="sort1"]').attr('name', 'all_sort1');
86             $(this).parent().siblings('li').find('input[name="sort1"]').attr('name', 'all_sort1');
87             $(this).parent().siblings('li').find('select[name="sort2"]').attr('name', 'all_sort2');
88             $(this).parent().siblings('li').find('input[name="sort2"]').attr('name', 'all_sort2');
89         } );
90
91         $("select[name='all_budget_id']").change();
92
93         $("#records_to_import fieldset.rows ol").hide();
94         $('input:checkbox[name="import_record_id"]').change(function(){
95             var container = $(this).parents("fieldset");
96             if ( $(this).is(':checked') ) {
97                 $(container).addClass("selected");
98                 $(container).removeClass("unselected");
99                 $(container).find("ol").toggle(true);
100             } else {
101                 $(container).addClass("unselected");
102                 $(container).removeClass("selected");
103                 $(container).find("ol").toggle(false);
104             }
105         } );
106
107         $("input:checkbox").prop("checked", false);
108         $("div.biblio.unselected select").prop('disabled', false);
109         $("div.biblio.unselected input").prop('disabled', false);
110
111         $("#checkAll").click(function(){
112             $("#Aform").checkCheckboxes();
113             $("input:checkbox[name='import_record_id']").change();
114             return false;
115         });
116         $("#unCheckAll").click(function(){
117             $("#Aform").unCheckCheckboxes();
118             $("input:checkbox[name='import_record_id']").change();
119             return false;
120         });
121
122         $("#Aform").on("submit", function(){
123             if ( $("input:checkbox[name='import_record_id']:checked").length < 1 ) {
124                 alert(_("There is no record selected"));
125                 return false;
126             }
127
128             var error = 0;
129             $("input:checkbox[name='import_record_id']:checked").parents('fieldset').find('input[name="quantity"]').each(function(){
130                 if ( $(this).val().length < 1 || isNaN( $(this).val() ) ) {
131                     error++;
132                 }
133             });
134             if ( error > 0 ) {
135                 alert(error + " " + _("quantity values are not filled in or are not numbers"));
136                 return false;
137             }
138
139             return disableUnchecked($(this));
140         });
141         $('#tabs').tabs();
142         $(".previewData").on("click", function(e){
143             e.preventDefault();
144             var ltitle = $(this).text();
145             var page = $(this).attr("href");
146             $("#dataPreviewLabel").text(ltitle);
147             $("#dataPreview .modal-body").load(page + " div");
148             $('#dataPreview').modal({show:true});
149         });
150         $("#dataPreview").on("hidden", function(){
151             $("#dataPreviewLabel").html("");
152             $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
153         });
154     });
155
156     function disableUnchecked(form){
157         $("fieldset.biblio.unselected").each(function(){
158             $(this).remove();
159         });
160         return 1;
161     }
162 //]]>
163 </script>
164 </head>
165 <body id="acq_addorderiso2709" class="acq">
166 [% INCLUDE 'header.inc' %]
167 [% INCLUDE 'acquisitions-search.inc' %]
168 <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 %]">[% booksellername %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo;  Add orders from iso2709 file</div>
169 <div id="doc3" class="yui-t2">
170    <div id="bd">
171        <div id="yui-main">
172            <div class="yui-b">
173              [% IF ( allmatch ) %]<div class="dialog alert">
174               <h4>No records imported</h4>
175              No record have been imported because they all match an existing record in your catalog.<br />You'll have to treat them individually.
176              </div>
177              [% END %]
178
179              [% IF ( batch_details ) %]
180                 <h1>Add orders from [% comments %]
181                     ([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %])
182                 </h1>
183                 <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
184                 <div id="tabs" class="toptabs">
185                   <ul>
186                     <li><a href="#records_to_import">Select to import</a></li>
187                     <li><a href="#items_info" class="items_info">Item information</a></li>
188                     <li><a href="#accounting_details">Default accounting details</a></li>
189                   </ul>
190
191                   <div id="records_to_import">
192                     <div id="searchheader">
193                         <div>
194                             <span class="checkall"><a id="checkAll" href="#">Select all</a></span>
195                             |
196                             <span class="uncheckall"><a id="unCheckAll" href="#">Clear all</a></span>
197                             |
198                             <span>
199                                 <label for="matcher_id">Matching:</label>
200                                     <select name="matcher_id" id="matcher_id">
201                                         <option value="_TITLE_AUTHOR_">Title and author</option>
202                                         <option value="">Do not look for matching records</option>
203                                         [% FOREACH available_matcher IN available_matchers %]
204                                             [% IF ( available_matcher.code == current_matcher_code ) %]
205                                                 <option value="[% available_matcher.matcher_id %]" selected="selected">
206                                                     [% available_matcher.code %] ([% available_matcher.description %])
207                                                 </option>
208                                             [% ELSE %]
209                                                 <option value="[% available_matcher.matcher_id %]">
210                                                     [% available_matcher.code %] ([% available_matcher.description %])
211                                                 </option>
212                                             [% END %]
213                                         [% END %]
214                                     </select>
215                             </span>
216                             |
217                             <span>
218                                 <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show inactive funds:</label>
219                                 <input type="checkbox" id="showallbudgets" />
220                             </span>
221                         </div>
222                     </div>
223
224                         <input type="hidden" name="op" value="import_records"/>
225                         <input type="hidden" name="basketno" value="[% basketno %]" />
226                         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
227                         <input type="hidden" name="import_batch_id" value="[%import_batch_id %]" />
228                         <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
229
230                         [% FOREACH biblio IN biblio_list %]
231                         <fieldset class="biblio unselected rows" style="float:none;">
232                           <legend>
233                             <label for="record_[% biblio.import_record_id %]" style="width:auto;">
234                               <input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" />
235                               <span class="citation">[% biblio.citation %]</span>
236                             </label>
237                             <span class="links" style="font-weight: normal;">
238                               ( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% biblio.import_record_id %]" class="previewData">Card</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;breedingid=[% biblio.import_record_id %]&amp;import_batch_id=[% biblio.import_batch_id %]&amp;biblionumber=[% biblio.match_biblionumber %]">Add order</a> )
239                             </span>
240                           </legend>
241                           <ol>
242                             <li class="status">
243                               <span class="match">
244                                 [% IF ( biblio_lis.overlay_status == 'no_match' ) %]
245                                     No match
246                                 [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %]
247                                     Match applied
248                                 [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %]
249                                     Match found
250                                 [% ELSE %]
251                                     [% biblio_lis.overlay_status %]
252                                 [% END %]
253                                 [% IF ( biblio.match_biblionumber ) %]
254                                   Matches biblio [% biblio.match_biblionumber %] (score = [% biblio.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber %]">[% biblio.match_citation %]</a>
255                                 [% END %]
256                               </span>
257                             </li>
258                             <li class="quantity">
259                                 <label for="quantity_record_[% biblio.import_record_id %]" class="required">Quantity: </label>
260                                 <input id="quantity_record_[% biblio.import_record_id %]" type="text" value="[% biblio.quantity.length ? biblio.quantity : 1 %]" name="quantity" />
261                             </li>
262                             <li class="price">
263                                 <label for="price_record_[% biblio.import_record_id %]">Price: </label>
264                                 <input id="price_record_[% biblio.import_record_id %]" type="text" value="[% biblio.price %]" name="price" />
265                             </li>
266                             <li class="discount">
267                                 <label for="discount_record_[% biblio.import_record_id %]">Discount: </label>
268                                 <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" size="6" /> %
269                                 (If empty, discount rate from vendor will be used)
270                             </li>
271                             <li class="budget">
272                                 <label for="fund_record_[% biblio.import_record_id %]">Fund: </label>
273                                 [% IF ( close ) %]
274                                   <input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %]
275                                 [% ELSE %]
276                                   <select id="fund_record_[% biblio.import_record_id %]" size="1" name="budget_id">
277                                     <option value="">Select a fund</option>
278                                     [% FOREACH budget IN budget_loop %]
279                                         [% IF ( budget.b_id == biblio.budget_id ) %]
280                                           [% IF budget.b_active %]
281                                             <option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option>
282                                           [% ELSE %]
283                                             <option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %] (inactive)</option>
284                                           [% END %]
285                                         [% ELSE %]
286                                             [% IF budget.b_active %]<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option>
287                                             [% ELSE %]<option value="[% budget.b_id %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %] (inactive)</option>
288                                             [% END %]
289                                         [% END %]
290                                     [% END %]
291                                   </select>
292                                 [% END %]
293                             </li>
294                             <li class="sort1">
295                                 <label for="sort1_record_[% biblio.import_record_id %]">Statistic 1: </label>
296                                 <input id="sort1_record_[% biblio.import_record_id %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" />
297                             </li>
298                             <li class="sort2">
299                                 <label for="sort2_record_[% biblio.import_record_id %]">Statistic 2: </label>
300                                 <input id="sort2_record_[% biblio.import_record_id %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" />
301                             </li>
302                           </ol>
303                         </fieldset>
304                             <div id="dataPreview" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
305                                 <div class="modal-header">
306                                     <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
307                                     <h3 id="dataPreviewLabel">MARC preview</h3>
308                                 </div>
309                                 <div class="modal-body">
310                                     <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
311                                 </div>
312                                 <div class="modal-footer">
313                                     <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
314                                 </div>
315                             </div>
316                         [% END %]
317                       </div>
318                       <div id="items_info">
319                         <h2>Item information</h2>
320                         <p>Import all the checked items in the basket with the following parameters:</p>
321
322                         [% IF ( items ) %]
323                         <fieldset class="rows" style="float:none;">
324                             <legend>Item</legend>
325                             [% IF ( NoACQframework ) %]
326                                 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
327                             [% END %]
328                             [% FOREACH item IN items %]
329                             <div id="outeritemblock">
330                             <div id="itemblock">
331                                 <ol>
332                                 [% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
333                                     <div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
334                                         [% IF (iteminformatio.mandatory) %]
335                                             <label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
336                                         [% ELSE %]
337                                             <label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
338                                         [% END %]
339
340                                         [% IF ( iteminformatio.marc_value.type == 'select' ) %]
341                                             <select name="field_value" size="1">
342                                             [% FOREACH value IN iteminformatio.marc_value.values %]
343                                                 [% IF ( value == iteminformatio.marc_value.default ) %]
344                                                     <option value="[% value %]" selected="selected">[% iteminformatio.marc_value.labels.$value %]</option>
345                                                 [% ELSE %]
346                                                     <option value="[% value %]">[% iteminformatio.marc_value.labels.$value %]</option>
347                                                 [% END %]
348                                             [% END %]
349                                             </select>
350                                         [% ELSE %]
351                                         [% iteminformatio.marc_value %]
352                                         [% END %]
353                                         <input type="hidden" name="itemid" value="1" />
354                                         <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
355                                         <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
356                                         <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
357                                         <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
358                                         [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
359                                     </div></li>
360                                 [% END %]
361                                 </ol>
362                             </div><!-- /iteminformation -->
363                             </div>
364                             [% END %] <!-- /items -->
365                         </fieldset>
366                         [% END %] <!-- items -->
367                       </div>
368                       <div id="accounting_details">
369                         <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>
370                         <fieldset class="rows" style="float:none;">
371                             <legend>Accounting details</legend>
372                             <ol>
373                                 <li>
374                                     <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
375                                     <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
376                                 </li>
377                                 <li>
378                                     [% IF ( close ) %]
379                                         <span class="label">Fund: </span>
380                                         <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
381                                     [% ELSE %]
382                                         <li>
383                                             <label for="all_currency">Currency:</label>
384                                             <select name="all_currency" id="all_currency">
385                                             [% FOREACH currency IN currencies %]
386                                                 [% IF currency.currency == bookseller.listprice %]
387                                                     <option value="[% currency.currency %]" selected="selected">[% currency.currency %]</option>
388                                                 [% ELSIF not currency.archived %]
389                                                     <option value="[% currency.currency %]">[% currency.currency %]</option>
390                                                 [% END %]
391                                             [% END %]
392                                             </select>
393                                         </li>
394                                         <li>
395                                             <label for="all_budget_id">Fund: </label>
396                                             <select id="all_budget_id" size="1" name="all_budget_id">
397                                               <option value="">Select a fund</option>
398                                             [% FOREACH budget_loo IN budget_loop %]
399                                                 [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option>
400                                                 [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %] (inactive)</option>
401                                                 [% END %]
402                                             [% END %]
403                                             </select>
404                                             <label for="all_showallbudgets" style="float:none;width:auto;">&nbsp;Show inactive:</label>
405                                             <input type="checkbox" id="all_showallbudgets" />
406                                         </li>
407                                     [% END %]
408                                 </li>
409                                 <li>
410                                     <label for="all_order_internalnote">Internal note: </label>
411                                     <textarea id="all_order_internalnote" cols="30" rows="3" name="all_order_internalnote"></textarea>
412                                 </li>
413                                 <li>
414                                     <label for="all_order_vendornote">Vendor note: </label>
415                                     <textarea id="all_order_vendornote" cols="30" rows="3" name="all_order_vendornote"></textarea>
416                                 </li>
417                                 <li>
418                                     <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
419                                     <label for="all_sort1">Statistic 1: </label>
420                                     <input type="text" id="all_sort1" size="20" name="all_sort1" value="" />
421                                 </li>
422                                 <li>
423                                     <label for="all_sort2">Statistic 2: </label>
424                                     <input type="text" id="all_sort2" size="20" name="all_sort2" value="" />
425                                 </li>
426                             </ol>
427                         </fieldset>
428                       </div>
429                       </div>
430
431                       <fieldset class="action">
432                           <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
433                       </fieldset>
434                     </form>
435                 [% ELSE %]
436                 <div>
437                   <h1>Choose the file to add to the basket</h1>
438                   <table id="files">
439                     <thead>
440                       <tr>
441                         <th>File name</th>
442                         <th>Comments</th>
443                         <th>Status</th>
444                         <th class="title-string">Staged</th>
445                         <th># Bibs</th>
446                         <th class="NoSort">&nbsp;</th>
447                       </tr>
448                     </thead>
449                     <tbody>
450                       [% FOREACH batch_lis IN batch_list %]
451                       <tr>
452                         <td>[% batch_lis.file_name %]</td>
453                         <td>[% batch_lis.comments %]</td>
454                         <td>
455                           [% IF ( batch_lis.import_status == 'cleaned' ) %]
456                             Cleaned
457                           [% ELSIF ( batch_lis.import_status == 'imported' ) %]
458                             Imported
459                           [% ELSIF ( batch_lis.import_status == 'importing' ) %]
460                             Importing
461                           [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
462                             Reverted
463                           [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
464                             Reverting
465                           [% ELSIF ( batch_lis.import_status == 'staged' ) %]
466                             Staged
467                           [% ELSE %]
468                             [% batch_lis.import_status %]
469                           [% END %]
470                         </td>
471                         <td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td>
472                         <td>[% batch_lis.num_records %]</td>
473                         <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]">Add orders</a></td>
474                       </tr>
475                       [% END %]
476                     </tbody>
477                   </table>
478                 </div>
479                 [% END %]
480            </div>
481        </div>
482    </div>
483 </div>
484 </body>
485 </html>