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