Bug 7760: Add unique ids and a module class to all acquisitions pages
[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 <script type="text/javascript" src="[% themelang %]/js/additem.js"></script>
8 <script type="text/javascript">
9 //<![CDATA[
10 actTotal = "";
11
12 function Check(ff) {
13     var ok=0;
14     var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
15
16     _alertString +="-------------------------------------------------------------------\n\n";
17
18     if ( isNull(ff.title,1)  &&  isNull(ff.entertitle,1)   ){
19         ok=1;
20                     _alertString += "\n- " + _("Title cannot be empty");
21     }
22     
23     if(isNull(ff.budget_id,1)){
24                 ok=1;
25                                         _alertString += "\n- "+ _("You must select a budget");
26     }
27
28     if (!(isNum(ff.quantity,0))){
29         ok=1;
30                     _alertString += "\n- " + _("Quantity must be greater than '0'");
31     }
32
33     if (!(isNum(ff.listprice,0))){
34         ok=1;
35                     _alertString += "\n- " + _("Vendor price must be a number");
36     }
37
38     if (!(isNum(ff.total,0))){
39         ok=1;
40                     _alertString += "\n- " + _("Total must be a number");
41     }
42
43     if (totalExceedsBudget(ff.budget_id.value, ff.total.value  )  ) {
44         ok=1;
45         _alertString += "\n- " + _("Order total (") + ff.total.value +
46             _(") exceeds budget available (") + actTotal+")";
47     }
48
49     if ( ff.field_value ) {
50         var barcodes = [];
51         var empty_item_mandatory = 0;
52         for (i = 0; i < ff.field_value.length; i++) {
53             //alert("i = " + i + " => " + ff.kohafield[i] );
54             if (ff.field_value[i].value.length == 0 && ff.mandatory[i].value == 1) {
55                 empty_item_mandatory++;
56             }
57             if(ff.subfield[i].value === '[% barcode_subfield %]' && ff.field_value[i].value.length != 0) {
58                 barcodes.push(ff.field_value[i].value);
59             }
60         }
61         if (empty_item_mandatory > 0) {
62             ok = 1;
63             _alertString +=
64                 "\n- " + empty_item_mandatory + _(" item mandatory fields empty");
65         }
66
67         if(barcodes.length > 0) {
68             // Check for duplicate barcodes in the form
69             barcodes = barcodes.sort();
70             for(var i=0; i<barcodes.length-1; i++) {
71                 if(barcodes[i] == barcodes[i+1]) {
72                     ok = 1;
73                     _alertString += "\n- " + _("The barcode ") + barcodes[i] + _(" is used more than once in the form. Every barcode must be unique");
74                 }
75             }
76
77             // Check for duplicate barcodes in the database via an ajax call
78             $.ajax({
79                 url: "/cgi-bin/koha/acqui/check_duplicate_barcode_ajax.pl",
80                 async:false,
81                 method: "post",
82                 data: {barcodes : barcodes},
83                 dataType: 'json',
84
85                 error: function(xhr) {
86                     alert("Error: \n" + xhr.responseText);
87                 },
88                 success: function(json) {
89                     switch(json.status) {
90                         case 'UNAUTHORIZED':
91                             ok = 1;
92                             _alertString += "\n- " + _("Error: Duplicate barcode verification failed. Insufficient user permissions.");
93                             break;
94                         case 'DUPLICATES':
95                             ok = 1;
96                             $.each(json.barcodes, function(index, barcode) {
97                                 _alertString += "\n- " + _("The barcode ") + barcode + _(" already exists in the database");
98                             });
99                             break;
100                     }
101                 },
102             });
103         }
104     }
105
106     if (ok) {
107         alert(_alertString);
108         return false;
109     }
110
111     ff.submit();
112
113 }
114
115 $(document).ready(function() 
116     {
117         //We apply the fonction only for modify option
118         [% IF ( quantityrec ) %]
119         $('#quantity').blur(function() 
120         {
121             // if user decreases the quantity
122             if($(this).val() < [% quantityrec %]) 
123             {
124                 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
125                 return true;
126             } 
127             else 
128             {
129                 // if user increases the quantity
130                 alert(_("You can't add a new item, please create a new order line"));
131                 // and we replace the original value
132                 $(this).val([% quantityrec %])
133                 return false;
134             }
135         });
136         [% END %]
137         
138         $('#showallbudgets').click(function() {
139             if ( $('#budget_id .b_inactive').is(":visible") )
140             {
141             $('#budget_id .b_inactive').hide();
142             }
143             else {
144             $('#budget_id .b_inactive').show();
145             }
146         });
147     });
148 //]]>
149 </script>
150 </head>
151 <body id="acq_neworderempty" class="acq">
152
153 [% INCLUDE 'header.inc' %]
154 [% INCLUDE 'acquisitions-search.inc' %]
155
156 <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>
157
158 <div id="doc3" class="yui-t2">
159
160 <div id="bd">
161     <div id="yui-main">
162     <div class="yui-b">
163
164 <h2>
165     [% IF ( ordernumber ) %]
166         Modify order line
167     [% ELSE %]
168         New order
169     [% END %]
170 </h2>
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">
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="discount" value="[% discount %]" />
229         <input type="hidden" name="listinc" value="[% listincgst %]" />
230 <!--        <input type="hidden" name="currency" value="[% currency %]" />-->
231         <input type="hidden" name="applygst" value="[% gstreg %]" />
232         <input type="hidden" name="invoiceincgst" value="[% invoiceincgst %]" />
233         <input type="hidden" name="gstrate" value="[% gstrate %]" />
234         <input type="hidden" name="suggestionid" value="[% suggestionid %]" />
235         <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
236
237         [% FOREACH loop_currencie IN loop_currencies %]
238             <input type="hidden" id="[% loop_currencie.currcode %]"  name="[% loop_currencie.currcode %]" value="[% loop_currencie.rate %]" />
239         [% END %]
240         <ol><li>
241             [% IF ( biblionumber ) %]
242             <span class="label">Title</span>
243                 <input type="hidden" size="50" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
244             [% ELSE %]
245             <label for="entertitle" class="required">Title: </label>
246                 <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" />
247             [% END %]
248         </li>
249         <li>
250             [% IF ( biblionumber ) %]
251             <span class="label">Author: </span>
252                 <input type="hidden" size="50" name="author" id="author" value="[% author %]" />[% author %]
253             [% ELSE %]
254             <label for="author">Author: </label>
255                 <input type="text" size="50" name="author" id="author" value="[% author %]" />
256             [% END %]
257         </li>
258         <li>
259             [% IF ( biblionumber ) %]
260             <span class="label">Publisher: </span>
261                 <input type="hidden" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
262             [% ELSE %]
263             <label for="publishercode"> Publisher: </label>
264                 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
265             [% END %]
266         </li>
267         <li>
268             [% IF ( biblionumber ) %]
269             <span class="label">Edition: </span>
270                 <input type="hidden" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
271
272             [% ELSE %]
273             <label for="editionstatement">Edition: </label>
274                 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
275             [% END %]
276         </li>
277         <li>
278             [% IF ( biblionumber ) %]
279             <span class="label">Publication year: </span>
280                 <input type="hidden" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
281             [% ELSE %]
282             <label for="publicationyear">Publication year: </label>
283                 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
284             [% END %]
285         </li>
286         <li>
287             [% IF ( biblionumber ) %]
288             <span class="label">ISBN: </span>
289                 <input type="hidden" size="50" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
290             [% ELSE %]
291             <label for="ISBN">ISBN: </label>
292                 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
293             [% END %]
294         </li>
295         <li>
296             [% IF ( biblionumber ) %]
297             <span class="label">Series: </span>
298                 <input type="hidden" size="50" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
299             [% ELSE %]
300             <label for="series">Series: </label>
301                 <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
302             [% END %]
303         </li>
304         </li>
305             [% UNLESS ( biblionumber ) %]
306             [% IF ( itemtypeloop ) %]
307             <li>
308                 <span class="label">Item type:</span>
309                 <select name="itemtype" style="width:12em;">
310                 [% FOREACH itemtype IN itemtypeloop %]
311                     [% IF ( itemtype.selected ) %]
312                         <option value="[% itemtype.itemtype %]" selected="selected">[% itemtype.description %]</option>
313                     [% ELSE %]
314                         <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
315                     [% END %]
316                 [% END %]
317                 </select>
318             </li>
319             [% END %]
320             [% END %]
321         </ol>
322     </fieldset>
323
324     [% IF ( suggestionid ) %]
325         <fieldset class="rows">
326         <legend>Suggestion</legend>
327         <ol>
328           <li>
329             <span class="label">Suggested by: </span>
330             [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&amp;op=show">suggestion #[% suggestionid %]</a>)
331           </li>
332         </ol>
333         </fieldset>
334     [% END %]
335
336     [% IF ( items ) %]
337     <fieldset class="rows">
338         <legend>Item</legend>
339         [% IF ( NoACQframework ) %]
340             <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
341         [% END %]
342
343         [% FOREACH item IN items %]
344         <div id="outeritemblock">
345         <div id="itemblock">
346             <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
347                 <div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
348
349                     <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
350                     [% iteminformatio.marc_value %]
351                     <input type="hidden" name="itemid" value="1" />
352                     <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
353                     <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
354                     <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
355                     <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
356                     [% IF ( iteminformatio.ITEM_SUBFIELDS_ARE_NOT_REPEATABLE ) %]
357                         <span class="buttonPlus" onclick="CloneSubfield('subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]')">+</span>
358                     [% END %]
359
360                 </div></li>
361             [% END %]
362             </ol>
363             <a class="addItem" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">Add</a>
364             <a class="delItem" style="display:none;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">Delete</a>
365         </div><!-- /iteminformation -->
366         </div>
367
368         [% END %] <!-- /items -->
369     </fieldset>
370     [% END %] <!-- items -->
371     <fieldset class="rows">
372         <legend>Accounting Details</legend>
373         <ol>
374             <li>
375                 [% IF ( close ) %]
376             <span class="label required">Quantity: </span>
377                     <input type="hidden" size="20" name="quantity" value="[% quantity %]" />[% quantity %]
378                 [% ELSE %]
379                 <label class="required" for="quantity">Quantity: </label>
380                     [% IF ( items ) %]
381                         <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" onchange="calcNeworderTotal();" />
382                     [% ELSE %]
383                         <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="calcNeworderTotal();" />
384                     [% END %]
385                 [% END %]
386                 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
387                 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
388             </li>
389             <li>
390                 [% IF ( close ) %]
391             <span class="label required">Fund: </span>
392                     <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
393                 [% ELSE %]
394                 <label class="required" for="budget_id">Fund: </label>
395                 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
396                         <option value="">Select a budget</option>
397                 [% FOREACH budget_loo IN budget_loop %]
398                     [% IF ( budget_loo.b_sel ) %]
399                         <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
400                     [% ELSE %]
401                         [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
402                         [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" style="display : none;">[% budget_loo.b_txt %]</option>    
403                         [% END %]
404                     [% END %]
405                 [% END %]
406                 </select>
407                 <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all:</label>
408                 <input type="checkbox" id="showallbudgets" />
409                 [% END %]
410             </li>
411                 <li>
412                 [% IF ( close ) %]
413                         <span class="label">Currency: </span>
414                         <input type="hidden" size="10" name="currency" id="currency" value="[% currency %]" />[% currency %]
415                 [% ELSE %]
416                         <label for="currency">Currency:</label>
417                         <select name="currency" id="currency" onchange="calcNeworderTotal();">
418                         [% FOREACH loop_currencie IN loop_currencies %]
419                         [% 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 %]
420                         </select>
421                 [% END %]
422                 </li>
423             <li>
424                 [% IF ( close ) %]
425             <span class="label">Vendor price: </span>
426                     <input type="hidden" size="20" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %]
427                 [% ELSE %]
428                 <label for="listprice">Vendor price: </label>
429                     <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="calcNeworderTotal()" />
430                 [% END %]
431             </li>
432             [% UNLESS ( close ) %]
433             <li>
434                     <label for="uncertainprice">Uncertain price: </label>
435                     [% IF ( uncertainprice ) %]
436                     <input type="checkbox" name="uncertainprice"  id="uncertainprice" value="1" checked="checked" />
437                     [% ELSE %]
438                     <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
439                 [% END %]
440             </li>
441             [% END %]
442                         <li>
443                 [% IF ( close ) %]
444             <span class="label">Replacement cost: </span>
445                     <input type="hidden" size="20" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %]
446                 [% ELSE %]
447                 <label for="rrp">Replacement cost: </label>
448                     <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %])
449                 [% END %]
450             </li>
451             <li>
452                 [% IF ( close ) %]
453             <label for="ecost">Budgeted cost: </label>
454                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly"  />
455                 [% ELSE %]
456                 <label for="ecost">Budgeted cost: </label>
457                     <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" />
458                 [% END %]
459                 [% IF ( discount_2dp ) %]  (adjusted for [% discount_2dp %]% discount)  [% END %]
460
461             </li>
462             [% IF ( GST ) %]
463             <li>
464                 [% IF ( close ) %]
465             <label for="GST">Budgeted GST: </label>
466                 <input type="text" id="" size="20" name="gst" value="" id="GST" readonly="readonly" />
467                 [% ELSE %]
468                 <label for="GST">Budgeted GST: </label>
469                 <input type="text" size="20" name="gst" id="GST" value="" />
470                 [% END %]
471             </li>
472             [% END %]
473             <li>
474                 [% IF ( close ) %]
475             <label for="total">Total: </label>
476                 <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" />
477                 [% ELSE %]
478                 <label for="total">Total: </label>
479                 <input type="text" id="total" size="20" name="total" value="[% total %]" /> (budgeted cost * quantity)
480                 [% END %]
481             </li>
482             <li>
483                 [% IF ( close ) %]
484             <label for="cost">Actual cost: </label>
485                 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" />
486                 [% ELSE %]
487                 <label for="cost">Actual cost: </label>
488                 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" />
489                 [% END %]
490             </li>
491             <li>
492                 <label for="notes">Notes: </label>
493                 <textarea id="notes" cols="30" rows="3" name="notes" >[% notes %]</textarea>
494             </li>
495             <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
496                 <label for="sort1">Statistic 1: </label>
497
498                 [% IF CGIsort1 %]
499                     <select id="sort1" size="1" name="sort1">
500                     [% FOREACH sort_opt IN CGIsort1 %]
501                        [% IF sort_opt.default %]
502                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
503                         [% ELSE %]
504                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
505                         [% END %]
506                     [% END %]
507                     </select>
508                 [% ELSE %]
509
510                     <input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
511                 [% END %]
512             </li>
513             <li>
514                 <label for="sort2">Statistic 2: </label>
515
516                 [% IF CGIsort2 %]
517                     <select id="sort2" size="1" name="sort2">
518                     [% FOREACH sort_opt IN CGIsort2 %]
519                        [% IF sort_opt.default %]
520                           <option value="[% sort_opt.value %]" selected="selected">[% sort_opt.label %]</option>
521                         [% ELSE %]
522                           <option value="[% sort_opt.value %]">[% sort_opt.label %]</option>
523                         [% END %]
524                     [% END %]
525                     </select>
526                 [% ELSE %]
527                     <input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
528                 [% END %]
529             </li>
530 </ol>
531     </fieldset>
532     <fieldset class="action">
533         <input type="button" value="Save" onclick="Check(this.form)" /> [% IF ( suggestionid ) %]<a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Cancel</a>[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>[% END %]
534     </fieldset>
535 </form>
536 </div>
537 </div>
538 <div class="yui-b">
539 [% INCLUDE 'acquisitions-menu.inc' %]
540 </div>
541 </div>
542 [% INCLUDE 'intranet-bottom.inc' %]