Bug 16522: (follow-up) MARC display templates and get_marc_host fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / filter-orders.inc
1 [% USE Koha %]
2 [% USE Branches %]
3 [% PROCESS 'html_helpers.inc' %]
4 <ol>
5     <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% filters.title | html %]" /></li>
6     <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% filters.author | html %]" /></li>
7     <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% filters.isbn | html %]" /></li>
8     <li><label for="isbn">ISSN: </label> <input type="text" name="issn" id="issn" value="[% filters.issn | html %]" /></li>
9             [% IF Koha.Preference('marcflavour') == 'UNIMARC' %]
10     <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% filters.ean | html %]" /></li>
11             [% END %]
12     <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% filters.name | html %]" /></li>
13     <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% filters.basket | html %]" /></li>
14     <li><label for="internalnote">Internal note: </label> <input type="text" name="internalnote" id="internalnote" value="[% filters.internalnote | html %]" /></li>
15     <li><label for="vendornote">Vendor note: </label> <input type="text" name="vendornote" id="vendornote" value="[% filters.vendornote | html %]" /></li>
16     <li><label for="basket_creators">Basket created by: </label>
17         <input autocomplete="off" id="find_patron" type="text" class="noEnterSubmit" />
18         <div>
19             <div id="basket_creators" style="float:left;"></div>
20         </div>
21     </li>
22     <li>
23         <label for="managing_library">Managing library: </label>
24         <select name="managing_library" id="managing_library">
25             <option value="">Any library</option>
26             [% PROCESS options_for_libraries libraries => Branches.all(selected => '') %]
27         </select>
28     </li>
29     <li><label for="booksellerinvoicenumber ">Vendor invoice number: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% filters.booksellerinvoicenumber | html %]" /></li>
30     <li>
31         <label for="basketgroupname">Basket group:</label>
32         <input type="text" name="basketgroupname" id="basketgroupname" value="[% filters.basketgroupname | html %]" />
33     </li>
34         [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_filters wrap_fieldset=0 %]
35     <li>
36       <label for="ordernumber">Order line:</label>
37       <input type="text" name="ordernumber" id="ordernumber" value="[% filters.ordernumber | html %]" />
38         <label class="yesno" for="search_children_too">
39             [% IF filters.search_children_too %]
40                 <input type="checkbox" name="search_children_too" id="search_children_too" value="1" checked="checked" />
41             [% ELSE %]
42                 <input type="checkbox" name="search_children_too" id="search_children_too" value="1" />
43             [% END %]
44             Display children too
45         </label>
46     </li>
47
48     <li>
49         <label for="orderstatus">Order status: </label>
50         <select name="orderstatus" id="orderstatus">
51             [% IF filters.orderstatus == "" %]
52               <option value="">Any status except cancelled</option>
53             [% ELSE %]
54               <option value="" selected="selected"></option>
55             [% END %]
56             [% IF filters.orderstatus == "new" %]
57               <option value="new" selected="selected">New</option>
58             [% ELSE %]
59               <option value="new">New</option>
60             [% END %]
61             [% IF filters.orderstatus == "ordered" %]
62               <option value="ordered" selected="selected">Ordered</option>
63             [% ELSE %]
64               <option value="ordered">Ordered</option>
65             [% END %]
66             [% IF filters.orderstatus == "partial" %]
67               <option value="partial" selected="selected">Partially received</option>
68             [% ELSE %]
69               <option value="partial">Partially received</option>
70             [% END %]
71             [% IF filters.orderstatus == "complete" %]
72               <option value="complete" selected="selected">Received</option>
73             [% ELSE %]
74               <option value="complete">Received</option>
75             [% END %]
76             [% IF filters.orderstatus == "cancelled" %]
77               <option value="cancelled" selected="selected">Cancelled</option>
78             [% ELSE %]
79               <option value="cancelled">Cancelled</option>
80             [% END %]
81         </select>
82         <label class="yesno" for="search_children_too">
83             [% IF filters.is_standing %]
84                 <input type="checkbox" name="is_standing" id="is_standing" value="1" checked="checked" />
85             [% ELSE %]
86                 <input type="checkbox" name="is_standing" id="is_standing" value="1" />
87             [% END %]
88             Standing order
89         </label>
90     </li>
91     <li>
92         <label for="fund">Fund: </label>
93         <select name="budget" id="fund">
94             <option value="">All funds</option>
95             [% FOREACH bp_loo IN bp_loop %]
96                 <optgroup label="[% bp_loo.budget_period_description | html %]">
97                 [% FOREACH h_loo IN bp_loo.hierarchy %]
98                   [% IF h_loo.budget_id == filters.budget %]
99                     <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]" selected="selected">
100                   [% ELSE %]
101                     <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]">
102                   [% END %]
103                         [% h_loo.budget_display_name | html %]
104                     </option>
105                 [% END %]
106                 </optgroup>
107             [% END %]
108         </select>
109     </li>
110
111     <li><label for="from">From: </label>
112         <input type="text" size="10" id="from" name="from" value="[% filters.from_placed_on | html %]" class="flatpickr" data-date_to="to" />
113         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
114     </li>
115     <li><label for="to">To: </label>
116         <input type="text" size="10" id="to" name="to" value="[% filters.to_placed_on | html %]" class="flatpickr" />
117         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
118     </li>
119 </ol>