Bug 16592 - Use Bootstrap modal for MARC and Card preview on acquisitions receipt...
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / parcel.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE Price %]
4 [% USE currency = format('%.2f') -%]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( date ) %]
7             Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% datereceived | $KohaDates %][% ELSE %]Receive orders from [% name %][% END %]</title>
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
12 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
13 <style type="text/css">#dataPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style>
14 <script type="text/javascript">
15 //<![CDATA[
16
17     dt_overwrite_html_sorting_localeCompare();
18
19     var sticky_filters = [% sticky_filters %];
20
21     $(document).ready(function(){
22       if ( $("#pendingt").length ) {
23         var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, {
24             "bStateSave": true,
25             "iCookieDuration": 60*60*24*1000, // 1000 days
26             "iDisplayLength": 10,
27             "aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]],
28             "aoColumnDefs": [
29                 { "aTargets": [ 4, 9, 10 ], "bSortable": false, "bSearchable": false },
30             ],
31             "aoColumns": [
32                 { "sType": "html" },
33                 { "sType": "html" },
34                 { "sType": "num-html" },
35                 { "sType": "anti-the" },
36                 null,
37                 null,
38                 null,
39                 null,
40                 null,
41                 null,
42                 null,
43             ],
44             'bAutoWidth': false,
45             "sPaginationType": "four_button"
46         } )
47         ).columnFilter({
48             sPlaceHolder: "head:after",
49             aoColumns: [
50                 { type: "text" },
51                 { type: "text" },
52                 { type: "text" },
53                 { type: "text" },
54                 null,
55                 { type: "text" },
56                 { type: "text" },
57                 { type: "text" },
58                 { type: "text" },
59                 null,
60                 null
61             ]
62         });
63       }
64
65       if ( $("#receivedt").length ) {
66         var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, {
67             "bStateSave": true,
68             "iCookieDuration": 60*60*24*1000, // 1000 days
69             "iDisplayLength": 10,
70             "aLengthMenu": [[5, 10, 20, 50, 100, -1], [5, 10, 20, 50, 100, _("All")]],
71             "aoColumnDefs": [
72                 { "aTargets": [ 5, -1 ], "bSortable": false, "bSearchable": false },
73             ],
74             "aoColumns": [
75                 { "sType": "html" },
76                 { "sType": "html" },
77                 { "sType": "html" },
78                 { "sType": "num-html" },
79                 { "sType": "anti-the" },
80                 null,
81                 null,
82                 null,
83                 null,
84                 null,
85                 null,
86                 null
87             ],
88             "sPaginationType": "four_button"
89         } ) );
90       }
91
92       // Keep filters from finishreceive.pl to parcel.pl
93       $.cookie("filter_parcel_summary", $("#summaryfilter").val());
94       $.cookie("filter_parcel_basketname", $("#basketfilter").val());
95       $.cookie("filter_parcel_orderno", $("#orderfilter").val());
96       $.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val());
97       $.cookie("filter_parcel_ean", $("#eanfilter").val());
98
99       $("#filterform").on('submit', function(){
100         $.cookie("filter_parcel_summary", $("#summaryfilter").val());
101         $.cookie("filter_parcel_basketname", $("#basketfilter").val());
102         $.cookie("filter_parcel_orderno", $("#orderfilter").val());
103         $.cookie("filter_parcel_basketgroupname", $("#basketgroupnamefilter").val());
104         $.cookie("filter_parcel_ean", $("#eanfilter").val());
105       });
106
107         $(".previewData").on("click", function(e){
108             e.preventDefault();
109             var ltitle = $(this).text();
110             var page = $(this).attr("href");
111             $("#dataPreviewLabel").text(ltitle);
112             $("#dataPreview .modal-body").load(page + " div");
113             $('#dataPreview').modal({show:true});
114         });
115         $("#dataPreview").on("hidden", function(){
116             $("#dataPreviewLabel").html("");
117             $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
118         });
119
120     });
121
122      // Case-insensitive version of jquery's contains function
123      jQuery.extend(jQuery.expr[':'], {
124             icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0"
125      });
126
127      // Contains exactly function
128      jQuery.extend(jQuery.expr[':'], {
129           containsExactly: "$(a).text() == m[3]"
130      });
131
132 //]]>
133 </script>
134 <script type="text/javascript">
135 //<![CDATA[
136             function transfer_order_popup(ordernumber) {
137                 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
138                     + "ordernumber=" + ordernumber
139                 window.open(url, 'TransferOrder');
140             }
141
142 //]]>
143 </script>
144 </head>
145 <body id="acq_parcel" class="acq">
146 [% INCLUDE 'header.inc' %]
147 [% INCLUDE 'acquisitions-search.inc' %]
148
149 <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;
150     [% IF datereceived %]
151         Receipt summary for <i>[% name %]</i>
152         [% IF ( invoice ) %]
153             <i>[ [% invoice %] ]</i>
154         [% END %]
155         on <i>[% datereceived | $KohaDates %]</i>
156     [% ELSE %]
157         Receive orders from [% name %]
158     [% END %]
159 </div>
160
161 <div id="doc3" class="yui-t2">
162
163    <div id="bd">
164         <div id="yui-main">
165         <div class="yui-b">
166         [% IF ( receive_error ) %]
167         <div class="dialog alert">
168         <h3>Error adding items:</h3>
169         <ul>
170         [% FOREACH error_loo IN error_loop %]
171                 <li>[% error_loo.error_param %][% IF ( error_loo.error_duplicate_barcode ) %]Duplicate Barcode[% END %] <!-- todo: other error conditions come here. --></li>
172         [% END %]
173         </ul>
174         </div>
175         [% END %]
176     <h1>
177         [% IF datereceived %]
178             Receipt summary for <i>[% name %]</i> [% IF ( invoice ) %] <i> [ [% invoice %] ] </i>[% END %] on <i>[% datereceived | $KohaDates %]</i>
179         [% ELSE %]
180             Receive orders from [% name %]
181         [% END %]
182     </h1>
183
184     [% IF ( success_delorder ) %]
185     <div class="dialog message">The order has been successfully canceled.</div>
186     [% ELSE %]
187         [% IF ( error_delitem ) %]
188             <div class="dialog alert">The order has been canceled, although one or more items could not have been deleted.</div>
189         [% END %]
190         [% IF ( error_delbiblio ) %]
191             <div class="dialog alert">The order has been canceled, although the record has not been deleted.</div>
192         [% END %]
193     [% END %]
194
195     [% IF (error_cancelling_receipt) %]
196       <div class="dialog error">
197       Cannot cancel receipt. Possible reasons :
198       <ul>
199         <li>
200           The order line you trying to cancel was created from a partial receipt
201           of another order line which is already received. Try to cancel this
202           one first and retry.
203         </li>
204         <li>
205           The order line you trying to cancel was created from a partial receipt
206           of another order line which has been deleted. Cancellation is not
207           possible.
208         </li>
209       </ul>
210       </div>
211     [% END %]
212
213     [% IF error_invoice_not_known %]
214         <div class="dialog error">
215             The invoice referenced by this invoiceid does not exist.
216         </div>
217     [% END %]
218
219 [% UNLESS no_orders_to_display %]
220 <div id="acqui_receive_summary">
221 <p><strong>Invoice number:</strong> [% invoice %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% datereceived | $KohaDates %]</p>
222 </div>
223 [% UNLESS (invoiceclosedate) %]
224   <div id="acqui_receive_search">
225     <h3>Pending orders</h3>
226
227     [% IF ( loop_orders ) %]
228       <table id="pendingt">
229         <thead>
230           <tr>
231             <th>Basket search</th>
232             <th>Basket group search</th>
233             <th>Order line search</th>
234             <th>Summary search</th>
235             <th>&nbsp;</th>
236             <th>Quantity search</th>
237             <th>Unit cost search</th>
238             <th>Order cost search</th>
239             <th>Fund search</th>
240             <th>&nbsp;</th>
241             <th>&nbsp;</th>
242           </tr>
243           <tr>
244             <th>Basket</th>
245             <th>Basket group</th>
246             <th>Order line</th>
247             <th>Summary</th>
248             <th>View record</th>
249             <th>Quantity</th>
250             <th>Unit cost</th>
251             <th>Order cost</th>
252             <th>Fund</th>
253             <th>&nbsp;</th>
254             <th>&nbsp;</th>
255           </tr>
256         </thead>
257         <tbody class="filterclass">
258         [% FOREACH loop_order IN loop_orders %]
259             <tr>
260                 <td class="basketfilterclass">[% loop_order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_order.basketno %]">[% loop_order.basketno %]</a>)</td>
261                 <td>
262                   [% IF loop_order.basketgroupid %]
263                     [% loop_order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% loop_order.booksellerid %]">[% loop_order.basketgroupid %]</a>)
264                   [% ELSE %]
265                     No basket group
266                   [% END %]
267                 </td>
268                 <td class="orderfilterclass"><a href="neworderempty.pl?ordernumber=[% loop_order.ordernumber %]&amp;booksellerid=[% loop_order.booksellerid %]">[% loop_order.ordernumber %]</a></td>
269                 <td class="summaryfilterclass">
270                   <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_order.biblionumber %]">[% loop_order.title |html %]</a>
271                 [% IF ( loop_order.author ) %] by [% loop_order.author %][% END %]
272                 [% IF ( loop_order.isbn ) %] &ndash; [% loop_order.isbn %][% END %]
273                 [% IF ( loop_order.publishercode ) %]<br />Publisher:[% loop_order.publishercode %][% END %]
274                 [% IF ( loop_order.suggestionid ) %]
275                     <br/>
276                     Suggested by: [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
277                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&amp;op=show">suggestion #[% loop_order.suggestionid %]</a>)
278                 [% END %]
279                 <br />
280                 [% IF ( loop_order.order_internalnote ) %]
281                     <p class="ordernote"><strong>Internal note: </strong>[% loop_order.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">Change internal note</a>]</p>
282                 [% ELSE %]
283                     [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">Add internal note</a>]
284                 [% END %]
285                 [% IF ( loop_order.order_vendornote ) %]
286                     <p class="ordernote"><strong>Vendor note: </strong>[% loop_order.order_vendornote|html %]</p>
287                 [% ELSE %]
288                     [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">Add vendor note</a>]
289                 [% END %]
290                 </td>
291                 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% loop_order.biblionumber %]" class="previewData">Card</a></td>
292                 <td>[% loop_order.quantity %]</td>
293                 <td>[% loop_order.ecost | $Price %]</td>
294                 <td>[% loop_order.total | $Price %]</td>
295                 <td>[% loop_order.budget_name %]</td>
296                                 <td>
297                               <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
298                     <br />
299                     <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
300                                 </td>
301                                 <td>
302                         [% IF ( loop_order.left_holds_on_order ) %]
303                         <span class="button" title="Can't cancel order, ([% loop_order.holds_on_order %]) holds are linked with this order cancel holds first">Can't cancel order</span><br>
304                         [% ELSE %]
305                         <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% loop_order.ordernumber %]&biblionumber=[% loop_order.biblionumber %]&referrer=[% "/cgi-bin/koha/acqui/parcel.pl?invoiceid=$invoiceid" | uri %]">Cancel order</a><br />
306                         [% END %]
307                         [% IF ( loop_order.can_del_bib ) %]
308                         <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% loop_order.ordernumber %]&biblionumber=[% loop_order.biblionumber %]&del_biblio=1&referrer=[% "/cgi-bin/koha/acqui/parcel.pl?invoiceid=$invoiceid" | uri %]">Cancel order and catalog record</a><br />
309                         [% ELSE %]
310                         <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
311                         [% END %]
312                         [% IF ( loop_order.left_item ) %]
313                         <b title="Can't delete catalog record, because of [% loop_order.items %] existing item(s)" >[% loop_order.items %] item(s) left</b><br>
314                         [% END %]
315                         [% IF ( loop_order.left_biblio ) %]
316                         <b title="Can't delete catalog record, delete other orders linked to it first">[% loop_order.biblios %] order(s) left</b><br>
317                         [% END %]
318                         [% IF ( loop_order.left_subscription ) %]
319                         <b title="Can't delete catalog record, delete subscriptions first">[% loop_order.subscriptions %] subscription(s) left</b><br>
320                         [% END %]
321                         [% IF ( loop_order.left_holds ) %]
322                         <b title="Can't delete catalog record or order, cancel holds first">[% loop_order.holds %] hold(s) left</b>
323                         [% END %]
324                     </td>
325                 </tr>
326         [% END %]
327         </tbody>
328       </table>
329     [% ELSE %]There are no pending orders.[% END %]
330   </div>
331 [% ELSE %]
332     <p>
333         Invoice is closed, so you can't receive orders anymore.
334         <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">Reopen it</a>.
335     </p>
336 [% END %]
337
338 <div id="acqui_receive_receivelist">
339     <h3>Already received</h3>
340
341    [% IF ( loop_received ) %]
342    <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
343     <table id="receivedt">
344       <thead>
345         <tr>
346           <th>Basket</th>
347           <th>Basket group</th>
348           <th>Order line</th>
349           <th>Holds</th>
350           <th>Summary</th>
351           <th>View record</th>
352           <th>Quantity</th>
353           <th>Fund</th>
354           <th>Est cost</th>
355           <th>Actual cost</th>
356           <th>TOTAL</th>
357           <th></th>
358         </tr>
359       </thead>
360     <tfoot>
361         [% FOREACH key IN subtotal_for_funds.keys.sort %]
362             <tr>
363                 [% IF invoiceincgst %]
364                     <td colspan="6" class="total">(Tax inc.)</td>
365                 [% ELSE %]
366                     <td colspan="6" class="total">(Tax exc.)</td>
367                 [% END %]
368                 <td colspan="2"><i>Subtotal for</i> [% funds.$key.budget_name %]</td>
369                 <td>[% subtotal_for_funds.$key.ecost | $Price %]</td>
370                 <td>[% subtotal_for_funds.$key.unitprice | $Price  %]</td>
371                 <td>&nbsp;</td>
372                 <td>&nbsp;</td>
373             </tr>
374         [% END %]
375         <tr>
376             <th colspan="10" class="total">Total tax exc.</th>
377             <th>[% total_gste | $Price %]</th>
378             <th></th>
379         </tr>
380         [% FOREACH book_foot IN book_foot_loop %]
381             <tr>
382                 <th colspan="10">Total (GST [% book_foot.gstrate * 100 | $Price %]%)</th>
383                 <th>[% book_foot.gstvalue | $Price %]</th>
384                 <th></th>
385             </tr>
386         [% END %]
387         <tr>
388             <th colspan="10" class="total">Total tax inc.</th>
389             <th>[% total_gsti | $Price %]</th>
390             <th></th>
391         </tr>
392     </tfoot>
393     <tbody class="filterclass">
394         [% FOREACH order IN loop_received %]
395             <tr>
396                 <td>[% order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
397                 <td>
398                   [% IF order.basketgroupid %]
399                     [% order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% order.booksellerid %]">[% order.basketgroupid %]</a>)
400                   [% ELSE %]
401                     No basket group
402                   [% END %]
403                 </td>
404                 <td>
405                   <a href="neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% booksellerid %]">[% order.ordernumber %]</a>
406                   [% IF (order.parent_ordernumber && (order.parent_ordernumber != order.ordernumber)) %]
407                     (<a href="neworderempty.pl?ordernumber=[% order.parent_ordernumber %]&amp;booksellerid=[% booksellerid %]" title="Original order line">[% order.parent_ordernumber %]</a>)
408                   [% END %]
409                 </td>
410                 <td>
411                   [% IF order.holds > 0 %]
412                     <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.holds %]</a></span>
413                   [% ELSE %]
414                     0
415                   [% END %]
416                 </td>
417                 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
418                 [% IF ( order.author ) %] / [% order.author %][% END %]
419                 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
420                 [% IF ( order.publishercode ) %]<br />Publisher :[% order.publishercode %][% END %]
421                 [% IF ( order.suggestionid ) %]
422                     <br/>
423                     Suggested by: [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %]
424                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&amp;op=show">suggestion #[% order.suggestionid %]</a>)
425                 [% END %]
426                 </td>
427                 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% order.biblionumber %]" class="previewData">Card</a></td>
428                 <td>[% order.quantityreceived %]</td>
429                 <td>[% order.budget.budget_name %]</td>
430                 <td>[% order.ecost | $Price %]</td>
431                 <td>[% order.unitprice | $Price %]</td>
432                 <td>[% order.total | $Price %]</td>
433                 <td>
434                     [% IF loop_receive.cannot_cancel or ( Koha.Preference("AcqCreateItem") == "receiving" and loop_receive.holds > 0 ) %]
435                       [% IF loop_receive.cannot_cancel %]
436                         [% span_title = BLOCK %]
437                             Cannot cancel receipt of this order line because it
438                             was created from a partial receipt of order line no.
439                             [% order.parent_ordernumber %], which is
440                             already received. Try cancelling this one first and
441                             retry.
442                         [% END %]
443                       [% ELSE %]
444                         [%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %]
445                         [%# Some additional checks should be added in the pl file %]
446                         [% span_title = BLOCK %]
447                           Cannot cancel receipt of this order line because at least one reservation exists on the records.
448                         [% END %]
449                       [% END %]
450                       <span title="[% span_title | collapse %]">
451                           Can't cancel receipt
452                       </span>
453                     [% ELSE %]
454                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a>
455                     [% END %]
456                 </td>
457             </tr>
458             [% END %]
459         </tbody>
460     </table>
461     </form>
462
463         [% ELSE %]There are no received orders.[% END %]
464 </div>
465
466 <div id="dataPreview" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
467     <div class="modal-header">
468         <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
469         <h3 id="dataPreviewLabel">MARC preview</h3>
470     </div>
471     <div class="modal-body">
472         <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div>
473     </div>
474     <div class="modal-footer">
475         <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
476     </div>
477 </div>
478
479 [% IF (invoiceclosedate) %]
480     <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a>
481 [% ELSE %]
482     <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
483         <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
484         <fieldset class="action">
485             <input type="submit" value="Finish receiving" />
486         </fieldset>
487     </form>
488 [% END %]
489
490 [% END %]
491
492 </div>
493 </div>
494
495
496 <div class="yui-b">
497 <form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
498   <fieldset class="brief">
499     <h4>Filter</h4>
500     <ol>
501       <li>
502         <label for="summaryfilter">ISBN, author or title :</label>
503         <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]"/>
504       </li>
505       <li>
506         <label for="basketfilter">Basket :</label>
507         <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]"/>
508       </li>
509       <li>
510           <label for="basketgroupnamefilter">Basket group name :</label>
511           <input type="text" name="basketgroupnamefilter" id="basketgroupnamefilter" value="[% basketgroupnamefilter %]" />
512       </li>
513       <li>
514         <label for="orderfilter">Order line :</label>
515         <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]"/>
516       </li>
517       [% IF (UNIMARC) %]
518         <li>
519           <label for="eanfilter">EAN :</label>
520           <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]"/>
521         </li>
522       [% END %]
523     </ol>
524     <fieldset class="action">
525       <input type="hidden" value="search" name="op" />
526       <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
527       <input type="submit" value="Filter" />
528       <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Clear</a>
529     </fieldset>
530   </fieldset>
531 </form>
532 [% INCLUDE 'acquisitions-menu.inc' %]
533 </div>
534 </div>
535 [% INCLUDE 'intranet-bottom.inc' %]