8cc68b5df14bf57ae0e330ca321686e2e4a82a7b
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / filter-orders.inc
1 [% USE Koha %]
2 [% USE KohaDates %]
3 <ol>
4     <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% filters.title | html %]" /></li>
5     <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% filters.author | html %]" /></li>
6     <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% filters.isbn | html %]" /></li>
7             [% IF Koha.Preference('marcflavour') == 'UNIMARC' %]
8     <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% filters.ean | html %]" /></li>
9             [% END %]
10     <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% filters.name | html %]" /></li>
11     <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% filters.basket | html %]" /></li>
12     <li><label for="basket_creators">Basket created by: </label>
13         <input autocomplete="off" id="find_patron" type="text" class="noEnterSubmit" />
14         <div>
15             <div id="basket_creators" style="float:left;"></div>
16         </div>
17     </li>
18     <li><label for="booksellerinvoicenumber ">Bookseller invoice no: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% filters.booksellerinvoicenumber | html %]" /></li>
19     <li>
20         <label for="basketgroupname">Basket group:</label>
21         <input type="text" name="basketgroupname" id="basketgroupname" value="[% filters.basketgroupname | html %]" />
22     </li>
23         [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_filters wrap_fieldset=0 %]
24     <li>
25       <label for="ordernumber">Order line:</label>
26       <input type="text" name="ordernumber" id="ordernumber" value="[% filters.ordernumber | html %]" />
27       [% IF filters.search_children_too %]
28         <input type="checkbox" name="search_children_too" id="search_children_too" value="1" checked="checked" />
29       [% ELSE %]
30         <input type="checkbox" name="search_children_too" id="search_children_too" value="1" />
31       [% END %]
32       <label class="yesno" for="search_children_too">Display children too.</label>
33     </li>
34
35     <li>
36         <label for="orderstatus">Order status: </label>
37         <select name="orderstatus" id="orderstatus">
38             [% IF filters.orderstatus == "" %]
39               <option value="">Any status except cancelled</option>
40             [% ELSE %]
41               <option value="" selected="selected"></option>
42             [% END %]
43             [% IF filters.orderstatus == "new" %]
44               <option value="new" selected="selected">New</option>
45             [% ELSE %]
46               <option value="new">New</option>
47             [% END %]
48             [% IF filters.orderstatus == "ordered" %]
49               <option value="ordered" selected="selected">Ordered</option>
50             [% ELSE %]
51               <option value="ordered">Ordered</option>
52             [% END %]
53             [% IF filters.orderstatus == "partial" %]
54               <option value="partial" selected="selected">Partially received</option>
55             [% ELSE %]
56               <option value="partial">Partially received</option>
57             [% END %]
58             [% IF filters.orderstatus == "complete" %]
59               <option value="complete" selected="selected">Received</option>
60             [% ELSE %]
61               <option value="complete">Received</option>
62             [% END %]
63             [% IF filters.orderstatus == "cancelled" %]
64               <option value="cancelled" selected="selected">Cancelled</option>
65             [% ELSE %]
66               <option value="cancelled">Cancelled</option>
67             [% END %]
68         </select>
69     </li>
70     <li>
71         <label for="fund">Fund: </label>
72         <select name="budget" id="fund">
73             <option value="">All funds</option>
74             [% FOREACH bp_loo IN bp_loop %]
75                 <optgroup label="[% bp_loo.budget_period_description | html %]">
76                 [% FOREACH h_loo IN bp_loo.hierarchy %]
77                   [% IF h_loo.budget_id == filters.budget %]
78                     <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]" selected="selected">
79                   [% ELSE %]
80                     <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]">
81                   [% END %]
82                         [% h_loo.budget_display_name | html %]
83                     </option>
84                 [% END %]
85                 </optgroup>
86             [% END %]
87         </select>
88     </li>
89
90     <li><label for="from">From: </label>
91     <input type="text" size="10" id="from" name="from" value="[% filters.from_placed_on | $KohaDates %]" class="datepickerfrom" />
92             <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
93     </li>
94     <li><label for="to">To: </label>
95     <input type="text" size="10" id="to" name="to" value="[% filters.to_placed_on | $KohaDates %]" class="datepickerto" />
96             <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
97     </li>
98 </ol>