Bug 11122: Address MARC21 vs. UNIMARC issue
[koha.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%; } @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/spinner-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 ) %]
274                     <br />Publisher: [% loop_order.publishercode %]
275                     [%- IF    ( loop_order.publicationyear > 0) -%], [% loop_order.publicationyear %]
276                     [%- ELSIF ( loop_order.copyrightdate   > 0) -%], [% loop_order.copyrightdate %]
277                     [% END %]
278                 [% END %]
279                 [% IF ( loop_order.suggestionid ) %]
280                     <br/>
281                     Suggested by: [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
282                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&amp;op=show">suggestion #[% loop_order.suggestionid %]</a>)
283                 [% END %]
284                 <br />
285                 [% IF ( loop_order.order_internalnote ) %]
286                     <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>
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=internal">Add internal note</a>]
289                 [% END %]
290                 [% IF ( loop_order.order_vendornote ) %]
291                     <p class="ordernote"><strong>Vendor note: </strong>[% loop_order.order_vendornote|html %]</p>
292                 [% ELSE %]
293                     [<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>]
294                 [% END %]
295                 </td>
296                 <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>
297                 <td>[% loop_order.quantity %]</td>
298                 <td>[% loop_order.ecost | $Price %]</td>
299                 <td>[% loop_order.total | $Price %]</td>
300                 <td>[% loop_order.budget_name %]</td>
301                                 <td>
302                               <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
303                     <br />
304                     <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
305                                 </td>
306                                 <td>
307                         [% IF ( loop_order.left_holds_on_order ) %]
308                         <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>
309                         [% ELSE %]
310                         <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 />
311                         [% END %]
312                         [% IF ( loop_order.can_del_bib ) %]
313                         <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 />
314                         [% ELSE %]
315                         <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
316                         [% END %]
317                         [% IF ( loop_order.left_item ) %]
318                         <b title="Can't delete catalog record, because of [% loop_order.items %] existing item(s)" >[% loop_order.items %] item(s) left</b><br>
319                         [% END %]
320                         [% IF ( loop_order.left_biblio ) %]
321                         <b title="Can't delete catalog record, delete other orders linked to it first">[% loop_order.biblios %] order(s) left</b><br>
322                         [% END %]
323                         [% IF ( loop_order.left_subscription ) %]
324                         <b title="Can't delete catalog record, delete subscriptions first">[% loop_order.subscriptions %] subscription(s) left</b><br>
325                         [% END %]
326                         [% IF ( loop_order.left_holds ) %]
327                         <b title="Can't delete catalog record or order, cancel holds first">[% loop_order.holds %] hold(s) left</b>
328                         [% END %]
329                     </td>
330                 </tr>
331         [% END %]
332         </tbody>
333       </table>
334     [% ELSE %]There are no pending orders.[% END %]
335   </div>
336 [% ELSE %]
337     <p>
338         Invoice is closed, so you can't receive orders anymore.
339         <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">Reopen it</a>.
340     </p>
341 [% END %]
342
343 <div id="acqui_receive_receivelist">
344     <h3>Already received</h3>
345
346    [% IF ( loop_received ) %]
347    <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
348     <table id="receivedt">
349       <thead>
350         <tr>
351           <th>Basket</th>
352           <th>Basket group</th>
353           <th>Order line</th>
354           <th>Holds</th>
355           <th>Summary</th>
356           <th>View record</th>
357           <th>Quantity</th>
358           <th>Fund</th>
359           <th>Est cost</th>
360           <th>Actual cost</th>
361           <th>TOTAL</th>
362           <th></th>
363         </tr>
364       </thead>
365     <tfoot>
366         [% FOREACH key IN subtotal_for_funds.keys.sort %]
367             <tr>
368                 [% IF invoiceincgst %]
369                     <td colspan="6" class="total">(Tax inc.)</td>
370                 [% ELSE %]
371                     <td colspan="6" class="total">(Tax exc.)</td>
372                 [% END %]
373                 <td colspan="2"><i>Subtotal for</i> [% funds.$key.budget_name %]</td>
374                 <td>[% subtotal_for_funds.$key.ecost | $Price %]</td>
375                 <td>[% subtotal_for_funds.$key.unitprice | $Price  %]</td>
376                 <td>&nbsp;</td>
377                 <td>&nbsp;</td>
378             </tr>
379         [% END %]
380         <tr>
381             <th colspan="10" class="total">Total tax exc.</th>
382             <th>[% total_tax_excluded | $Price %]</th>
383             <th></th>
384         </tr>
385         [% FOREACH book_foot IN book_foot_loop %]
386             <tr>
387                 <th colspan="10">Total (GST [% book_foot.tax_rate * 100 %]%)</th>
388                 <th>[% book_foot.tax_value | $Price %]</th>
389                 <th></th>
390             </tr>
391         [% END %]
392         <tr>
393             <th colspan="10" class="total">Total tax inc.</th>
394             <th>[% total_tax_included | $Price %]</th>
395             <th></th>
396         </tr>
397     </tfoot>
398     <tbody class="filterclass">
399         [% FOREACH order IN loop_received %]
400             <tr>
401                 <td>[% order.basketname %] (<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
402                 <td>
403                   [% IF order.basketgroupid %]
404                     [% order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% order.booksellerid %]">[% order.basketgroupid %]</a>)
405                   [% ELSE %]
406                     No basket group
407                   [% END %]
408                 </td>
409                 <td>
410                   <a href="neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% booksellerid %]">[% order.ordernumber %]</a>
411                   [% IF (order.parent_ordernumber && (order.parent_ordernumber != order.ordernumber)) %]
412                     (<a href="neworderempty.pl?ordernumber=[% order.parent_ordernumber %]&amp;booksellerid=[% booksellerid %]" title="Original order line">[% order.parent_ordernumber %]</a>)
413                   [% END %]
414                 </td>
415                 <td>
416                   [% IF order.holds > 0 %]
417                     <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.holds %]</a></span>
418                   [% ELSE %]
419                     0
420                   [% END %]
421                 </td>
422                 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
423                 [% IF ( order.author ) %] / [% order.author %][% END %]
424                 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
425                 [% IF ( order.publishercode ) %]
426                     <br />Publisher: [% order.publishercode %]
427                     [%- IF    ( order.publicationyear > 0) -%], [% order.publicationyear %]
428                     [%- ELSIF ( order.copyrightdate   > 0) -%], [% order.copyrightdate %]
429                     [% END %]
430                 [% END %]
431                 [% IF ( order.suggestionid ) %]
432                     <br/>
433                     Suggested by: [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %]
434                     (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&amp;op=show">suggestion #[% order.suggestionid %]</a>)
435                 [% END %]
436                 </td>
437                 <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>
438                 <td>[% order.quantityreceived %]</td>
439                 <td>[% order.budget.budget_name %]</td>
440                 <td>[% order.ecost | $Price %]</td>
441                 <td>[% order.unitprice | $Price %]</td>
442                 <td>[% order.total | $Price %]</td>
443                 <td>
444                     [% IF loop_receive.cannot_cancel or ( Koha.Preference("AcqCreateItem") == "receiving" and loop_receive.holds > 0 ) %]
445                       [% IF loop_receive.cannot_cancel %]
446                         [% span_title = BLOCK %]
447                             Cannot cancel receipt of this order line because it
448                             was created from a partial receipt of order line no.
449                             [% order.parent_ordernumber %], which is
450                             already received. Try cancelling this one first and
451                             retry.
452                         [% END %]
453                       [% ELSE %]
454                         [%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %]
455                         [%# Some additional checks should be added in the pl file %]
456                         [% span_title = BLOCK %]
457                           Cannot cancel receipt of this order line because at least one reservation exists on the records.
458                         [% END %]
459                       [% END %]
460                       <span title="[% span_title | collapse %]">
461                           Can't cancel receipt
462                       </span>
463                     [% ELSE %]
464                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a>
465                     [% END %]
466                 </td>
467             </tr>
468             [% END %]
469         </tbody>
470     </table>
471     </form>
472
473         [% ELSE %]There are no received orders.[% END %]
474 </div>
475
476 <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
477     <div class="modal-dialog">
478     <div class="modal-content">
479     <div class="modal-header">
480         <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
481         <h3 id="dataPreviewLabel">MARC preview</h3>
482     </div>
483     <div class="modal-body">
484         <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
485     </div>
486     <div class="modal-footer">
487         <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
488     </div>
489     </div>
490     </div>
491 </div>
492
493 [% IF (invoiceclosedate) %]
494     <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a>
495 [% ELSE %]
496     <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
497         <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
498         <fieldset class="action">
499             <input type="submit" value="Finish receiving" />
500         </fieldset>
501     </form>
502 [% END %]
503
504 [% END %]
505
506 </div>
507 </div>
508
509
510 <div class="yui-b">
511 <form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
512   <fieldset class="brief">
513     <h4>Filter</h4>
514     <ol>
515       <li>
516         <label for="summaryfilter">ISBN, author or title :</label>
517         <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]"/>
518       </li>
519       <li>
520         <label for="basketfilter">Basket :</label>
521         <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]"/>
522       </li>
523       <li>
524           <label for="basketgroupnamefilter">Basket group name :</label>
525           <input type="text" name="basketgroupnamefilter" id="basketgroupnamefilter" value="[% basketgroupnamefilter %]" />
526       </li>
527       <li>
528         <label for="orderfilter">Order line :</label>
529         <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]"/>
530       </li>
531       [% IF (UNIMARC) %]
532         <li>
533           <label for="eanfilter">EAN :</label>
534           <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]"/>
535         </li>
536       [% END %]
537     </ol>
538     <fieldset class="action">
539       <input type="hidden" value="search" name="op" />
540       <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
541       <input type="submit" value="Filter" />
542       <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Clear</a>
543     </fieldset>
544   </fieldset>
545 </form>
546 [% INCLUDE 'acquisitions-menu.inc' %]
547 </div>
548 </div>
549 [% INCLUDE 'intranet-bottom.inc' %]