Merge branch 'bug_9346' into 3.12-master
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / neworderempty.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; Basket [% basketno %] &rsaquo; [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5
6 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
7 [% INCLUDE 'additem.js.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/additem.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11 actTotal = "";
12
13 function Check(ff) {
14     [% IF (AcqCreateItemOrdering) %]
15         // Remove last itemblock if it is not in items_list
16         var lastitemblock = $("#outeritemblock > div:last");
17         var tobedeleted = true;
18         var listitems = $("#items_list tr");
19         $(listitems).each(function(){
20             if($(this).attr('idblock') == $(lastitemblock).attr('id')){
21                 tobedeleted = false;
22             }
23         });
24         if(tobedeleted){
25             $(lastitemblock).remove();
26         }
27     [% END %]
28
29     var ok=0;
30     var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
31
32     _alertString +="-------------------------------------------------------------------\n\n";
33
34     if ( isNull(ff.title,1)  &&  isNull(ff.entertitle,1)   ){
35         ok=1;
36                     _alertString += "\n- " + _("Title cannot be empty");
37     }
38     
39     if(isNull(ff.budget_id,1)){
40                 ok=1;
41                                         _alertString += "\n- "+ _("You must select a budget");
42     }
43
44     if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
45         ok=1;
46                     _alertString += "\n- " + _("Quantity must be greater than '0'");
47     }
48
49     if (!(isNum(ff.listprice,0))){
50         ok=1;
51                     _alertString += "\n- " + _("Vendor price must be a number");
52     }
53
54     if (!(isNum(ff.total,0))){
55         ok=1;
56                     _alertString += "\n- " + _("Total must be a number");
57     }
58
59     if (totalExceedsBudget(ff.budget_id.value, ff.total.value  )  ) {
60         ok=1;
61         _alertString += "\n- " + _("Order total (") + ff.total.value +
62             _(") exceeds budget available (") + actTotal+")";
63     }
64
65     if ( ff.field_value ) {
66         var empty_item_mandatory = 0;
67         for (i = 0; i < ff.field_value.length; i++) {
68             //alert("i = " + i + " => " + ff.kohafield[i] );
69             if (ff.field_value[i].value.length == 0 && ff.mandatory[i].value == 1) {
70                 empty_item_mandatory++;
71             }
72         }
73         if (empty_item_mandatory > 0) {
74             ok = 1;
75             _alertString +=
76                 "\n- " + empty_item_mandatory + _(" item mandatory fields empty");
77         }
78
79     }
80
81     if (ok) {
82         alert(_alertString);
83         [% IF (AcqCreateItemOrdering) %]
84             if(tobedeleted) {
85                 $(lastitemblock).appendTo('#outeritemblock');
86             }
87         [% END %]
88         return false;
89     }
90
91     [% IF (AcqCreateItemOrdering) %]
92         if(check_additem('[% UniqueItemFields %]') == false) {
93             alert(_('Duplicate values detected. Please correct the errors and resubmit.') );
94             if(tobedeleted) {
95                 $(lastitemblock).appendTo('#outeritemblock');
96             }
97             return false;
98         }
99     [% END %]
100 }
101
102 $(document).ready(function() 
103     {
104         [% IF (AcqCreateItemOrdering) %]
105             cloneItemBlock(0, '[% UniqueItemFields %]');
106         [% END %]
107
108         $("#quantity").change(function() {
109             updateCosts();
110         });
111
112         //We apply the fonction only for modify option
113         [% IF ( quantityrec ) %]
114         $('#quantity').blur(function() 
115         {
116             // if user decreases the quantity
117             if($(this).val() < [% quantityrec %]) 
118             {
119                 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
120                 return true;
121             } 
122             else 
123             {
124                 // if user increases the quantity
125                 alert(_("You can't add a new item, please create a new order line"));
126                 // and we replace the original value
127                 $(this).val([% quantityrec %])
128                 updateCosts(); // blur is invoked after change which updated values
129                 return false;
130             }
131         });
132         [% END %]
133         
134         //keep a copy of all budgets before removing the inactives
135         disabledBudgetsCopy = $('#budget_id').html();
136         $('#budget_id .b_inactive').remove();
137
138         $('#showallbudgets').click(function() {
139             if ($(this).is(":checked")) {
140                 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
141             }
142             else {
143                 $('#budget_id .b_inactive').remove();
144             }
145         });
146     });
147 //]]>
148 </script>
149 </head>
150 <body id="acq_neworderempty" class="acq">
151
152 [% INCLUDE 'header.inc' %]
153 [% INCLUDE 'acquisitions-search.inc' %]
154
155 <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 %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</div>
156
157 <div id="doc3" class="yui-t2">
158
159 <div id="bd">
160     <div id="yui-main">
161     <div class="yui-b">
162
163 <h2>
164     [% IF ( ordernumber ) %]
165         Modify order line
166     [% ELSE %]
167         New order
168     [% END %]
169 </h2>
170
171 <div class="error" style="display:none"></div>
172
173 [% IF ( basketno ) %]
174     <div id="acqui_basket_summary"  class="yui-g">
175     <fieldset class="rows">
176         <legend>Basket details</legend>
177         <ol>
178         [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
179         [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
180         [% IF ( basketcontractno ) %]
181             <li><span class="label">Contract number: </span>[% basketcontractno %]</li>
182             <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
183         [% END %]
184         [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span>  [% authorisedbyname %]</li>[% END %]
185         [% IF ( creationdate ) %]<li><span class="label">Open on:</span>  [% creationdate | $KohaDates %]</li>[% END %]
186         [% IF ( closedate ) %]
187         <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
188         <li><span class="label">Closed on:</span>  [% closedate | $KohaDates %]</li>
189         [% IF ( basketgroups ) %]
190             <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
191                 [% FOREACH basketgroup IN basketgroups %]
192                     [% IF ( basketgroup.default ) %]
193                     <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
194                     [% ELSE %]
195                     <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
196                     [% END %]
197                 [% END %]
198                 </select>
199                 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
200                 <input type="hidden" value="mod_basket" name="op" />
201                 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
202             </li>
203             <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
204         [% END %]
205         </form>
206         [% END %]
207         </ol>
208     </fieldset>
209     </div>
210 [% END %]
211
212 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform" onsubmit="return Check(this);">
213
214 <fieldset class="rows">
215         <legend>
216             Catalog details
217             [% IF ( biblionumber ) %]
218                 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> Edit record</a></span>
219             [% END %]
220         </legend>
221         [% UNLESS ( existing ) %]
222         <input type="hidden" name="existing" value="no" />
223         [% END %]
224         <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
225         <input type="hidden" name="basketno" value="[% basketno %]" />
226         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
227         <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
228         <input type="hidden" name="biblioitemnumber" value="[% biblioitemnumber %]" />
229         <input type="hidden" name="listinc" id="listinc" value="[% listincgst %]" />
230         <input type="hidden" name="applygst" id="applygst" value="[% gstreg %]" />
231         <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst %]" />
232         <input type="hidden" name="suggestionid" value="[% suggestionid %]" />
233         <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
234
235         [% FOREACH loop_currencie IN loop_currencies %]
236             <input type="hidden" id="currency_rate_[% loop_currencie.currcode %]"  name="[% loop_currencie.currcode %]" value="[% loop_currencie.rate %]" />
237         [% END %]
238
239         <ol><li>
240             [% IF ( biblionumber ) %]
241             <span class="label">Title</span>
242                 <input type="hidden" size="50" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
243             [% ELSE %]
244             <label for="entertitle" class="required">Title: </label>
245                 <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" />
246             [% END %]
247         </li>
248         <li>
249             [% IF ( biblionumber ) %]
250             <span class="label">Author: </span>
251                 <input type="hidden" size="50" name="author" id="author" value="[% author %]" />[% author %]
252             [% ELSE %]
253             <label for="author">Author: </label>
254                 <input type="text" size="50" name="author" id="author" value="[% author %]" />
255             [% END %]
256         </li>
257         <li>
258             [% IF ( biblionumber ) %]
259             <span class="label">Publisher: </span>
260                 <input type="hidden" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
261             [% ELSE %]
262             <label for="publishercode"> Publisher: </label>
263                 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
264             [% END %]
265         </li>
266         <li>
267             [% IF ( biblionumber ) %]
268             <span class="label">Edition: </span>
269                 <input type="hidden" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
270
271             [% ELSE %]
272             <label for="editionstatement">Edition: </label>
273                 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
274             [% END %]
275         </li>
276         <li>
277             [% IF ( biblionumber ) %]
278             <span class="label">Publication year: </span>
279                 <input type="hidden" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
280             [% ELSE %]
281             <label for="publicationyear">Publication year: </label>
282                 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
283             [% END %]
284         </li>
285         <li>
286             [% IF ( biblionumber ) %]
287             <span class="label">ISBN: </span>
288                 <input type="hidden" size="50" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
289             [% ELSE %]
290             <label for="ISBN">ISBN: </label>
291                 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
292             [% END %]
293         </li>
294         [% IF (UNIMARC) %]
295         <li>
296             [% IF ( biblionumber ) %]
297             <span class="label">EAN: </span>
298                 <input type="hidden" size="20" name="ean" id="EAN" value="[% ean %]" />[% ean %]
299             [% ELSE %]
300             <label for="EAN">EAN: </label>
301                 <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
302             [% END %]
303         </li>
304         [% END %]
305         <li>
306             [% IF ( biblionumber ) %]
307             <span class="label">Series: </span>
308                 <input type="hidden" size="50" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
309             [% ELSE %]
310             <label for="series">Series: </label>
311                 <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
312             [% END %]
313         </li>
314         </li>
315             [% UNLESS ( biblionumber ) %]
316             [% IF ( itemtypeloop ) %]
317             <li>
318                 <span class="label">Item type:</span>
319                 <select name="itemtype" style="width:12em;">
320                 [% FOREACH itemtype IN itemtypeloop %]
321                     [% IF ( itemtype.selected ) %]
322                         <option value="[% itemtype.itemtype %]" selected="selected">[% itemtype.description %]</option>
323                     [% ELSE %]
324                         <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
325                     [% END %]
326                 [% END %]
327                 </select>
328             </li>
329             [% END %]
330             [% END %]
331         </ol>
332     </fieldset>
333
334     [% IF ( suggestionid ) %]
335         <fieldset class="rows">
336         <legend>Suggestion</legend>
337         <ol>
338           <li>
339             <span class="label">Suggested by: </span>
340             [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&amp;op=show">suggestion #[% suggestionid %]</a>)
341           </li>
342         </ol>
343         </fieldset>
344     [% END %]
345
346     [% IF (AcqCreateItemOrdering) %]
347
348     <div id="items_list" style="display:none">
349         <p><b>Items list</b></p>
350         <div style="width:100%;overflow:auto;">
351             <table>
352                 <thead>
353                     <tr>
354                         <th>&nbsp;</th>
355                         <th>&nbsp;</th>
356                         <th>Barcode</th>
357                         <th>Home library</th>
358                         <th>Holding library</th>
359                         <th>Not for loan</th>
360                         <th>Restricted</th>
361                         <th>Location</th>
362                         <th>Call number</th>
363                         <th>Copy number</th>
364                         <th>Stock number</th>
365                         <th>Collection code</th>
366                         <th>Item type</th>
367                         <th>Materials</th>
368                         <th>Notes</th>
369                     </tr>
370                 </thead>
371                 <tbody>
372                 </tbody>
373             </table>
374         </div>
375     </div>
376
377     <fieldset class="rows" id="itemfieldset">
378         <legend>Item</legend>
379         [% IF ( NoACQframework ) %]
380             <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
381         [% END %]
382
383         <div id="outeritemblock"></div>
384
385     </fieldset>
386     [% END %][%# IF (AcqCreateItemOrdering) %]
387     <fieldset class="rows">
388         <legend>Accounting Details</legend>
389         <ol>
390             <li>
391                 [% IF ( close ) %]
392             <span class="label required">Quantity: </span>
393                     <input type="hidden" size="20" name="quantity" value="[% quantity %]" />[% quantity %]
394                 [% ELSE %]
395                     <label class="required" for="quantity">Quantity: </label>
396                     [% IF (AcqCreateItemOrdering) %]
397                         <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
398                     [% ELSE %]
399                         <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
400                     [% END %]
401                 [% END %]
402                 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
403                 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
404             </li>
405             <li>
406                 [% IF ( close ) %]
407             <span class="label required">Fund: </span>
408                     <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
409                 [% ELSE %]
410                 <label class="required" for="budget_id">Fund: </label>
411                 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
412                         <option value="">Select a budget</option>
413                 [% FOREACH budget_loo IN budget_loop %]
414                     [% IF ( budget_loo.b_sel ) %]
415                         <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
416                     [% ELSE %]
417                         [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
418                         [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %]</option>
419                         [% END %]
420                     [% END %]
421                 [% END %]
422                 </select>
423                 <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all:</label>
424                 <input type="checkbox" id="showallbudgets" />
425                 [% END %]
426             </li>
427                 <li>
428                 [% IF ( close ) %]
429                         <span class="label">Currency: </span>
430                         <input type="hidden" size="10" name="currency" id="currency" value="[% currency %]" />[% currency %]
431                 [% ELSE %]
432                         <label for="currency">Currency:</label>
433                         <select name="currency" id="currency" onchange="updateCosts();">
434                         [% FOREACH loop_currencie IN loop_currencies %]
435                         [% IF ( loop_currencie.selected ) %]<option value="[% loop_currencie.currcode %]" selected="selected">[% loop_currencie.currcode %]</option>[% ELSE %]<option value="[% loop_currencie.currcode %]">[% loop_currencie.currcode %]</option>[% END %][% END %]
436                         </select>
437                 [% END %]
438                 </li>
439             <li>
440                 [% IF ( close ) %]
441                     <span class="label">Vendor price: </span>
442                     <input type="hidden" size="20" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %]
443                 [% ELSE %]
444                 <label for="listprice">Vendor price: </label>
445                     <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" />
446                 [% END %]
447             </li>
448             [% UNLESS ( close ) %]
449             <li>
450                     <label for="uncertainprice">Uncertain price: </label>
451                     [% IF ( uncertainprice ) %]
452                     <input type="checkbox" name="uncertainprice"  id="uncertainprice" value="1" checked="checked" />
453                     [% ELSE %]
454                     <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
455                 [% END %]
456             </li>
457             [% END %]
458             [% IF ( gst_values ) %]
459                 <li>
460                     [% IF ( close ) %]
461                         <span class="label">Tax rate: </span>
462                         <input type="hidden" size="20" name="gstrate" id="gstrate" value="[% gstrate %]" />[% gstrate %]%
463                     [% ELSE %]
464                         <label for="gst">Tax rate: </label>
465                         <select name="gstrate" id="gstrate" onchange="updateCosts();">
466                         [% FOREACH gst IN gst_values %]
467                           [% IF ( gst.option == gstrate ) %]
468                             <option value="[% gst.option %]" selected="selected">[% gst.option * 100 | format("%.1f") %]%</option>
469                           [% ELSE %]
470                             <option value="[% gst.option %]">[% gst.option * 100 | format("%.1f") %]%</option>
471                           [% END %]
472                         [% END %]
473                         </select>
474                     [% END %]
475                 [% ELSE %]
476                     <input type="hidden" name="gstrate" value="0" />
477                 </li>
478             [% END %]
479             <li>
480                 <label for="discount">Discount: </label>
481                 [% IF ( close ) %]
482                     [% IF ( orderdiscount ) %]
483                         <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
484                     [% ELSE %]
485                         <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% discount_2dp %]%
486                     [% END %]
487                 [% ELSE %]
488                     [% IF ( orderdiscount ) %]
489                         <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />%
490                     [% ELSE %]
491                         <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />%
492                     [% END %]
493                 [% END %]
494             </li>
495             <li>
496                 [% IF ( close ) %]
497                     <span class="label">Replacement cost: </span>
498                     <input type="hidden" size="20" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %]
499                 [% ELSE %]
500                     <label for="rrp">Replacement cost: </label>
501                     <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %])
502                 [% END %]
503             </li>
504             <li>
505                 [% IF ( close ) %]
506                     <label for="ecost">Budgeted cost: </label>
507                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly"  />
508                 [% ELSE %]
509                     <label for="ecost">Budgeted cost: </label>
510                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" />
511                 [% END %]
512             </li>
513             <li>
514                 [% IF ( close ) %]
515                     <label for="total">Total: </label>
516                     <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" />
517                 [% ELSE %]
518                     <label for="total">Total: </label>
519                     <input type="text" id="total" size="20" name="total" value="[% total %]" /> (budgeted cost * quantity)
520                 [% END %]
521             </li>
522             <li>
523                 [% IF ( close ) %]
524                     <label for="unitprice">Actual cost: </label>
525                     <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" />
526                 [% ELSE %]
527                     <label for="unitprice">Actual cost: </label>
528                     <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" />
529                 [% END %]
530             </li>
531             <li>
532                 <label for="notes">Notes: </label>
533                 <textarea id="notes" cols="30" rows="3" name="notes" >[% notes %]</textarea>
534             </li>
535             <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
536                 <label for="sort1">Statistic 1: </label>
537                 <span id="sort1_zone">
538                 [% IF CGIsort1 %]
539                     <select id="sort1" size="1" name="sort1">
540                     [% FOREACH sort_opt IN CGIsort1 %]
541                        [% IF sort_opt.default %]
542                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
543                         [% ELSE %]
544                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
545                         [% END %]
546                     [% END %]
547                     </select>
548                 [% ELSE %]
549                     <input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
550                 [% END %]
551                 </span>
552             </li>
553             <li>
554                 <label for="sort2">Statistic 2: </label>
555                 <span id="sort2_zone">
556                 [% IF CGIsort2 %]
557                     <select id="sort2" size="1" name="sort2">
558                     [% FOREACH sort_opt IN CGIsort2 %]
559                        [% IF sort_opt.default %]
560                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
561                         [% ELSE %]
562                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
563                         [% END %]
564                     [% END %]
565                     </select>
566                 [% ELSE %]
567                     <input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
568                 [% END %]
569                 </span>
570             </li>
571 </ol>
572     </fieldset>
573     <fieldset class="action">
574         <input type="submit" value="Save" />
575         [% IF (suggestionid) %]
576             <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Cancel</a>
577         [% ELSE %]
578             <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
579         [% END %]
580     </fieldset>
581 </form>
582 </div>
583 </div>
584 <div class="yui-b">
585 [% INCLUDE 'acquisitions-menu.inc' %]
586 </div>
587 </div>
588 [% INCLUDE 'intranet-bottom.inc' %]