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