Add ordernumber column in orders history table
[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 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 </head>
7 <body id="acq_histsearch" class="acq">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'acquisitions-search.inc' %]
10
11 <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>
12
13 <div id="doc3" class="yui-t2">
14    
15    <div id="bd">
16         <div id="yui-main">
17         <div class="yui-b">
18         
19                 [% UNLESS ( suggestions_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
20 <fieldset class="rows">
21         <legend>Search Orders</legend>
22                 <ol>
23                 <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
24                 <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
25                 <li><label for="isbn">ISBN: </label> <input type="isbn" name="isbn" id="isbn" value="[% isbn %]" /></li>
26                 <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
27                 <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
28         <li><label for="booksellerinvoicenumber ">Bookseller invoice no: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
29                 <li><label for="from">From: </label> 
30                         <input type="text" size="10" id="from" name="from" value="[% from_placed_on %]" />
31                         <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
32                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
33                 </li>
34                 <li><label for="to">To: </label> 
35                         <input type="text" size="10" id="to" name="to" value="[% to_placed_on %]" />
36                         <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
37                         <script type="text/javascript">
38                                 // return true if the date is blocked.
39                                 function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}  // true or false
40                                 function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}  // true or false
41                                 Calendar.setup({
42                                         inputField : "from",
43                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
44                                         button : "openCalendarFrom",
45                                         disableFunc : disable_from,
46                                         dateStatusFunc : disable_from
47                                 });
48                                 Calendar.setup({
49                                         inputField : "to",
50                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
51                                         button : "openCalendarTo",
52                                         disableFunc : disable_to,
53                                         dateStatusFunc : disable_to
54                      });
55                         </script>
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>
66                         <tr>
67                                 <th>Basket</th>
68                                 <th>Basket group</th>
69                 <th>Invoice Number</th>
70                 <th>Order Number</th>
71                                 <th>Summary</th>
72                                 <th>Vendor</th>
73                                 <th>Placed on</th>
74                                 <th>Received on</th>
75                                 <th>Quantity ordered</th>
76                                 <th>Unit cost</th>
77                         </tr>
78                         
79                         [% FOREACH suggestions_loo IN suggestions_loop %]
80                                 <tr>
81                     <td>[% suggestions_loo.basketname %] (<a href="basket.pl?basketno=[% suggestions_loo.basketno %]">[% suggestions_loo.basketno %]</a>)</td>
82                         <td>[% suggestions_loo.groupname %] (<a href="basketgroup.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.basketgroupid %]</a>)</td>
83                                         <td>[% IF ( suggestions_loo.invoicenumber ) %]
84                                                 <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>
85                                             [% ELSE %]
86                                                 &nbsp;
87                                             [% END %]
88                                         </td>
89                     <td>[% suggestions_loo.ordernumber %]</td>
90                                         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestions_loo.biblionumber %]">[% suggestions_loo.title |html %]</a>
91                         <br />[% suggestions_loo.author %] <br /> [% suggestions_loo.isbn %]</td>
92                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.name %]</a></td>
93                                         <td>[% suggestions_loo.creationdate | $KohaDates %]</td>
94                                         <td>[% suggestions_loo.datereceived | $KohaDates %]</td>
95                                         <td>[% suggestions_loo.quantity %]</td>
96                                         <td>[% suggestions_loo.ecost %]</td>
97                                 </tr>
98                         [% END %]
99                 </table>
100         </div>[% ELSE %][% END %]
101
102 </div>
103 </div>
104 <div class="yui-b">
105 [% INCLUDE 'acquisitions-menu.inc' %]
106 </div>
107 </div>
108 [% INCLUDE 'intranet-bottom.inc' %]