Merge branch 'bug_7731' 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                 return false;
129             }
130         });
131         [% END %]
132         
133         //keep a copy of all budgets before removing the inactives
134         disabledBudgetsCopy = $('#budget_id').html();
135         $('#budget_id .b_inactive').remove();
136
137         $('#showallbudgets').click(function() {
138             if ($(this).is(":checked")) {
139                 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
140             }
141             else {
142                 $('#budget_id .b_inactive').remove();
143             }
144         });
145     });
146 //]]>
147 </script>
148 </head>
149 <body id="acq_neworderempty" class="acq" onload="updateCosts()">
150
151 [% INCLUDE 'header.inc' %]
152 [% INCLUDE 'acquisitions-search.inc' %]
153
154 <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>
155
156 <div id="doc3" class="yui-t2">
157
158 <div id="bd">
159     <div id="yui-main">
160     <div class="yui-b">
161
162 <h2>
163     [% IF ( ordernumber ) %]
164         Modify order line
165     [% ELSE %]
166         New order
167     [% END %]
168 </h2>
169
170 <div class="error" style="display:none"></div>
171
172 [% IF ( basketno ) %]
173     <div id="acqui_basket_summary"  class="yui-g">
174     <fieldset class="rows">
175         <legend>Basket details</legend>
176         <ol>
177         [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
178         [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
179         [% IF ( basketcontractno ) %]
180             <li><span class="label">Contract number: </span>[% basketcontractno %]</li>
181             <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
182         [% END %]
183         [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span>  [% authorisedbyname %]</li>[% END %]
184         [% IF ( creationdate ) %]<li><span class="label">Open on:</span>  [% creationdate | $KohaDates %]</li>[% END %]
185         [% IF ( closedate ) %]
186         <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
187         <li><span class="label">Closed on:</span>  [% closedate | $KohaDates %]</li>
188         [% IF ( basketgroups ) %]
189             <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
190                 [% FOREACH basketgroup IN basketgroups %]
191                     [% IF ( basketgroup.default ) %]
192                     <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
193                     [% ELSE %]
194                     <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
195                     [% END %]
196                 [% END %]
197                 </select>
198                 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
199                 <input type="hidden" value="mod_basket" name="op" />
200                 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
201             </li>
202             <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
203         [% END %]
204         </form>
205         [% END %]
206         </ol>
207     </fieldset>
208     </div>
209 [% END %]
210
211 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform" onsubmit="return Check(this);">
212
213 <fieldset class="rows">
214         <legend>
215             Catalog details
216             [% IF ( biblionumber ) %]
217                 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> Edit record</a></span>
218             [% END %]
219         </legend>
220         [% UNLESS ( existing ) %]
221         <input type="hidden" name="existing" value="no" />
222         [% END %]
223         <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
224         <input type="hidden" name="basketno" value="[% basketno %]" />
225         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
226         <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
227         <input type="hidden" name="biblioitemnumber" value="[% biblioitemnumber %]" />
228         <input type="hidden" name="listinc" id="listinc" value="[% listincgst %]" />
229         <input type="hidden" name="applygst" id="applygst" value="[% gstreg %]" />
230         <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst %]" />
231         <input type="hidden" name="suggestionid" value="[% suggestionid %]" />
232         <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
233         <input type="hidden" name="currency_rate" id="currency_rate" value="[% currency_rate %]" />
234
235         <ol><li>
236             [% IF ( biblionumber ) %]
237             <span class="label">Title</span>
238                 <input type="hidden" size="50" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
239             [% ELSE %]
240             <label for="entertitle" class="required">Title: </label>
241                 <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" />
242             [% END %]
243         </li>
244         <li>
245             [% IF ( biblionumber ) %]
246             <span class="label">Author: </span>
247                 <input type="hidden" size="50" name="author" id="author" value="[% author %]" />[% author %]
248             [% ELSE %]
249             <label for="author">Author: </label>
250                 <input type="text" size="50" name="author" id="author" value="[% author %]" />
251             [% END %]
252         </li>
253         <li>
254             [% IF ( biblionumber ) %]
255             <span class="label">Publisher: </span>
256                 <input type="hidden" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
257             [% ELSE %]
258             <label for="publishercode"> Publisher: </label>
259                 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
260             [% END %]
261         </li>
262         <li>
263             [% IF ( biblionumber ) %]
264             <span class="label">Edition: </span>
265                 <input type="hidden" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
266
267             [% ELSE %]
268             <label for="editionstatement">Edition: </label>
269                 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
270             [% END %]
271         </li>
272         <li>
273             [% IF ( biblionumber ) %]
274             <span class="label">Publication year: </span>
275                 <input type="hidden" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
276             [% ELSE %]
277             <label for="publicationyear">Publication year: </label>
278                 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
279             [% END %]
280         </li>
281         <li>
282             [% IF ( biblionumber ) %]
283             <span class="label">ISBN: </span>
284                 <input type="hidden" size="50" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
285             [% ELSE %]
286             <label for="ISBN">ISBN: </label>
287                 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
288             [% END %]
289         </li>
290         [% IF (UNIMARC) %]
291         <li>
292             [% IF ( biblionumber ) %]
293             <span class="label">EAN: </span>
294                 <input type="hidden" size="20" name="ean" id="EAN" value="[% ean %]" />[% ean %]
295             [% ELSE %]
296             <label for="EAN">EAN: </label>
297                 <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
298             [% END %]
299         </li>
300         [% END %]
301         <li>
302             [% IF ( biblionumber ) %]
303             <span class="label">Series: </span>
304                 <input type="hidden" size="50" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
305             [% ELSE %]
306             <label for="series">Series: </label>
307                 <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
308             [% END %]
309         </li>
310         </li>
311             [% UNLESS ( biblionumber ) %]
312             [% IF ( itemtypeloop ) %]
313             <li>
314                 <span class="label">Item type:</span>
315                 <select name="itemtype" style="width:12em;">
316                 [% FOREACH itemtype IN itemtypeloop %]
317                     [% IF ( itemtype.selected ) %]
318                         <option value="[% itemtype.itemtype %]" selected="selected">[% itemtype.description %]</option>
319                     [% ELSE %]
320                         <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
321                     [% END %]
322                 [% END %]
323                 </select>
324             </li>
325             [% END %]
326             [% END %]
327         </ol>
328     </fieldset>
329
330     [% IF ( suggestionid ) %]
331         <fieldset class="rows">
332         <legend>Suggestion</legend>
333         <ol>
334           <li>
335             <span class="label">Suggested by: </span>
336             [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&amp;op=show">suggestion #[% suggestionid %]</a>)
337           </li>
338         </ol>
339         </fieldset>
340     [% END %]
341
342     [% IF (AcqCreateItemOrdering) %]
343
344     <div id="items_list" style="display:none">
345         <p><b>Items list</b></p>
346         <div style="width:100%;overflow:auto;">
347             <table>
348                 <thead>
349                     <tr>
350                         <th>&nbsp;</th>
351                         <th>&nbsp;</th>
352                         <th>Barcode</th>
353                         <th>Home library</th>
354                         <th>Holding library</th>
355                         <th>Not for loan</th>
356                         <th>Restricted</th>
357                         <th>Location</th>
358                         <th>Call number</th>
359                         <th>Copy number</th>
360                         <th>Stock number</th>
361                         <th>Collection code</th>
362                         <th>Item type</th>
363                         <th>Materials</th>
364                         <th>Notes</th>
365                     </tr>
366                 </thead>
367                 <tbody>
368                 </tbody>
369             </table>
370         </div>
371     </div>
372
373     <fieldset class="rows" id="itemfieldset">
374         <legend>Item</legend>
375         [% IF ( NoACQframework ) %]
376             <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
377         [% END %]
378
379         <div id="outeritemblock"></div>
380
381     </fieldset>
382     [% END %][%# IF (AcqCreateItemOrdering) %]
383     <fieldset class="rows">
384         <legend>Accounting Details</legend>
385         <ol>
386             <li>
387                 [% IF ( close ) %]
388             <span class="label required">Quantity: </span>
389                     <input type="hidden" size="20" name="quantity" value="[% quantity %]" />[% quantity %]
390                 [% ELSE %]
391                     <label class="required" for="quantity">Quantity: </label>
392                     [% IF (AcqCreateItemOrdering) %]
393                         <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
394                     [% ELSE %]
395                         <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
396                     [% END %]
397                 [% END %]
398                 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
399                 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
400             </li>
401             <li>
402                 [% IF ( close ) %]
403             <span class="label required">Fund: </span>
404                     <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
405                 [% ELSE %]
406                 <label class="required" for="budget_id">Fund: </label>
407                 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
408                         <option value="">Select a budget</option>
409                 [% FOREACH budget_loo IN budget_loop %]
410                     [% IF ( budget_loo.b_sel ) %]
411                         <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
412                     [% ELSE %]
413                         [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
414                         [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %]</option>
415                         [% END %]
416                     [% END %]
417                 [% END %]
418                 </select>
419                 <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all:</label>
420                 <input type="checkbox" id="showallbudgets" />
421                 [% END %]
422             </li>
423                 <li>
424                 [% IF ( close ) %]
425                         <span class="label">Currency: </span>
426                         <input type="hidden" size="10" name="currency" id="currency" value="[% currency %]" />[% currency %]
427                 [% ELSE %]
428                         <label for="currency">Currency:</label>
429                         <select name="currency" id="currency" onchange="updateCosts();">
430                         [% FOREACH loop_currencie IN loop_currencies %]
431                         [% 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 %]
432                         </select>
433                 [% END %]
434                 </li>
435             <li>
436                 [% IF ( close ) %]
437                     <span class="label">Vendor price: </span>
438                     <input type="hidden" size="20" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %]
439                 [% ELSE %]
440                 <label for="listprice">Vendor price: </label>
441                     <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" />
442                 [% END %]
443             </li>
444             [% UNLESS ( close ) %]
445             <li>
446                     <label for="uncertainprice">Uncertain price: </label>
447                     [% IF ( uncertainprice ) %]
448                     <input type="checkbox" name="uncertainprice"  id="uncertainprice" value="1" checked="checked" />
449                     [% ELSE %]
450                     <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
451                 [% END %]
452             </li>
453             [% END %]
454             [% IF ( gst_values ) %]
455                 <li>
456                     [% IF ( close ) %]
457                         <span class="label">Tax rate: </span>
458                         <input type="hidden" size="20" name="gstrate" id="gstrate" value="[% gstrate %]" />[% gstrate %]%
459                     [% ELSE %]
460                         <label for="gst">Tax rate: </label>
461                         <select name="gstrate" id="gstrate" onchange="updateCosts();">
462                         [% FOREACH gst IN gst_values %]
463                           [% IF ( gst.option == gstrate ) %]
464                             <option value="[% gst.option %]" selected="selected">[% gst.option * 100 | format("%.1f") %]%</option>
465                           [% ELSE %]
466                             <option value="[% gst.option %]">[% gst.option * 100 | format("%.1f") %]%</option>
467                           [% END %]
468                         [% END %]
469                         </select>
470                     [% END %]
471                 [% ELSE %]
472                     <input type="hidden" name="gstrate" value="0" />
473                 </li>
474             [% END %]
475             <li>
476                 <label for="discount">Discount: </label>
477                 [% IF ( close ) %]
478                     [% IF ( orderdiscount ) %]
479                         <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
480                     [% ELSE %]
481                         <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% discount_2dp %]%
482                     [% END %]
483                 [% ELSE %]
484                     [% IF ( orderdiscount ) %]
485                         <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />%
486                     [% ELSE %]
487                         <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />%
488                     [% END %]
489                 [% END %]
490             </li>
491             <li>
492                 [% IF ( close ) %]
493                     <span class="label">Replacement cost: </span>
494                     <input type="hidden" size="20" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %]
495                 [% ELSE %]
496                     <label for="rrp">Replacement cost: </label>
497                     <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %])
498                 [% END %]
499             </li>
500             <li>
501                 [% IF ( close ) %]
502                     <label for="ecost">Budgeted cost: </label>
503                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly"  />
504                 [% ELSE %]
505                     <label for="ecost">Budgeted cost: </label>
506                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" />
507                 [% END %]
508             </li>
509             <li>
510                 [% IF ( close ) %]
511                     <label for="total">Total: </label>
512                     <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" />
513                 [% ELSE %]
514                     <label for="total">Total: </label>
515                     <input type="text" id="total" size="20" name="total" value="[% total %]" /> (budgeted cost * quantity)
516                 [% END %]
517             </li>
518             <li>
519                 [% IF ( close ) %]
520                     <label for="unitprice">Actual cost: </label>
521                     <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" />
522                 [% ELSE %]
523                     <label for="unitprice">Actual cost: </label>
524                     <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" />
525                 [% END %]
526             </li>
527             <li>
528                 <label for="notes">Notes: </label>
529                 <textarea id="notes" cols="30" rows="3" name="notes" >[% notes %]</textarea>
530             </li>
531             <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
532                 <label for="sort1">Statistic 1: </label>
533                 <span id="sort1_zone">
534                 [% IF CGIsort1 %]
535                     <select id="sort1" size="1" name="sort1">
536                     [% FOREACH sort_opt IN CGIsort1 %]
537                        [% IF sort_opt.default %]
538                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
539                         [% ELSE %]
540                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
541                         [% END %]
542                     [% END %]
543                     </select>
544                 [% ELSE %]
545                     <input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
546                 [% END %]
547                 </span>
548             </li>
549             <li>
550                 <label for="sort2">Statistic 2: </label>
551                 <span id="sort2_zone">
552                 [% IF CGIsort2 %]
553                     <select id="sort2" size="1" name="sort2">
554                     [% FOREACH sort_opt IN CGIsort2 %]
555                        [% IF sort_opt.default %]
556                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
557                         [% ELSE %]
558                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
559                         [% END %]
560                     [% END %]
561                     </select>
562                 [% ELSE %]
563                     <input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
564                 [% END %]
565                 </span>
566             </li>
567 </ol>
568     </fieldset>
569     <fieldset class="action">
570         <input type="submit" value="Save" />
571         [% IF (suggestionid) %]
572             <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Cancel</a>
573         [% ELSE %]
574             <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
575         [% END %]
576     </fieldset>
577 </form>
578 </div>
579 </div>
580 <div class="yui-b">
581 [% INCLUDE 'acquisitions-menu.inc' %]
582 </div>
583 </div>
584 [% INCLUDE 'intranet-bottom.inc' %]