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