Bug 10649 - Upgrade DataTables and move scripts out of theme directory
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / histsearch.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( suggestions_loop ) %]Orders search &rsaquo; Search results[% ELSE %]Order search[% END %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
9 //<![CDATA[
10 [% IF (dateformat == 'metric') %]
11     dt_add_type_uk_date();
12 [% END %]
13  $(document).ready(function() {
14     var histsearcht = $("#histsearcht").dataTable($.extend(true, {}, dataTablesDefaults, {
15         "sPaginationType": "four_button"
16     } ) );
17  });
18  //]]>
19 </script>
20 </head>
21 <body id="acq_histsearch" class="acq">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'acquisitions-search.inc' %]
24
25 <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; [% IF ( suggestions_loop ) %]<a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a> &rsaquo; Search results[% ELSE %]Order search[% END %]</div>
26
27 <div id="doc3" class="yui-t2">
28    
29    <div id="bd">
30         <div id="yui-main">
31         <div class="yui-b">
32         
33                 [% UNLESS ( suggestions_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
34 <fieldset class="rows">
35         <legend>Search Orders</legend>
36                 <ol>
37                 <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
38                 <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
39         <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" /></li>
40                 [% IF (UNIMARC) %]
41         <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% ean %]" /></li>
42                 [% END %]
43                 <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
44                 <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
45         <li><label for="booksellerinvoicenumber ">Bookseller invoice no: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
46         <li>
47             <label for="basketgroupname">Basket group:</label>
48             <input type="text" name="basketgroupname" id="basketgroupname" value="[% basketgroupname %]" />
49         </li>
50                 <li><label for="from">From: </label> 
51         <input type="text" size="10" id="from" name="from" value="[% from_placed_on %]" class="datepickerfrom" />
52                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
53                 </li>
54                 <li><label for="to">To: </label> 
55         <input type="text" size="10" id="to" name="to" value="[% to_placed_on %]" class="datepickerto" />
56                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
57                 </li>
58                 </ol>
59         </fieldset>
60     <input type="hidden" name="do_search" value="1" />
61         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
62         </form>[% END %]
63     [% IF ( suggestions_loop ) %]<h1>Search results</h1>
64         <div id="acqui_histsearch">
65         <table id="histsearcht">
66             <thead>
67                         <tr>
68                                 <th>Basket</th>
69                                 <th>Basket group</th>
70                 <th>Invoice number</th>
71                 <th>Order number</th>
72                                 <th>Summary</th>
73                                 <th>Vendor</th>
74                                 <th>Placed on</th>
75                                 <th>Received on</th>
76                                 <th>Quantity ordered</th>
77                                 <th>Unit cost</th>
78                         </tr>
79             </thead>
80             <tbody>
81                         [% FOREACH suggestions_loo IN suggestions_loop %]
82                                 <tr>
83                     <td>[% suggestions_loo.basketname %] (<a href="basket.pl?basketno=[% suggestions_loo.basketno %]">[% suggestions_loo.basketno %]</a>)</td>
84                     <td>
85                         [% IF ( suggestions_loo.basketgroupid ) %]
86                             [% suggestions_loo.groupname %] (<a href="basketgroup.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.basketgroupid %]</a>)
87                         [% ELSE %]
88                             &nbsp;
89                         [% END %]
90                     </td>
91                     <td>[% IF  suggestions_loo.invoicenumber  %]
92                         <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% suggestions_loo.invoiceid %]">[% suggestions_loo.invoicenumber %]</a>
93                                             [% ELSE %]
94                                                 &nbsp;
95                                             [% END %]
96                                         </td>
97                     <td>[% suggestions_loo.ordernumber %]</td>
98                                         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestions_loo.biblionumber %]">[% suggestions_loo.title |html %]</a>
99                         <br />[% suggestions_loo.author %] <br /> [% suggestions_loo.isbn %]</td>
100                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.name %]</a></td>
101                                         <td>[% suggestions_loo.creationdate | $KohaDates %]</td>
102                     <td>
103                         [% IF suggestions_loo.datereceived %]
104                             [% suggestions_loo.datereceived | $KohaDates %]
105                         [% END %]
106                     </td>
107                                         <td>[% suggestions_loo.quantity %]</td>
108                                         <td>[% suggestions_loo.ecost %]</td>
109                                 </tr>
110                         [% END %]
111             </tbody>
112                 </table>
113         </div>[% ELSE %][% END %]
114
115 </div>
116 </div>
117 <div class="yui-b">
118 [% INCLUDE 'acquisitions-menu.inc' %]
119 </div>
120 </div>
121 [% INCLUDE 'intranet-bottom.inc' %]