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