Bug 29477: Flatpickr - default to 23:59 for the time part
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities-search.inc
1 <div class="gradient">
2 <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName | html %]</a></h1>
3 <!-- Begin Authorities Resident Search Box -->
4 <div id="header_search" class="residentsearch">
5     <div id="mainmain_heading" class="residentsearch">
6     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
7         <label class="tip" for="value_mainentry">Enter main heading ($a only):</label>
8         <input type="hidden" name="op" value="do_search" />
9         <input type="hidden" name="type" value="intranet" />
10         <select name="authtypecode" id="authtype_main_heading_a">
11         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
12         [% FOREACH authority_type IN authority_types %]
13             [% IF authority_type.authtypecode == authtypecode %]
14             <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
15             [% ELSE %]
16             <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
17             [% END %]
18         [% END %]
19         </select>
20         <input type="hidden" name="marclist" value="mainmainentry" />
21         <input type="hidden" name="and_or" value="and" />
22         <input type="hidden" name="excluding" value="" />
23         <select name="operator">
24             [% IF ( operator == 'contains' ) %]
25             <option value="contains" selected="selected">contains</option>
26             [% ELSE %]
27             <option value="contains">contains</option>
28             [% END %]
29             [% IF ( operator == 'start' ) %]
30             <option value="start" selected="selected">starts with</option>
31             [% ELSE %]
32             <option value="start">starts with</option>
33             [% END %]
34             [% IF ( operator == 'exact' ) %]
35             <option value="exact" selected="selected">is exactly</option>
36             [% ELSE %]
37             <option value="exact">is exactly</option>
38             [% END %]
39         </select>
40         <input id="value_mainentry" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
41         <select name="orderby">
42             [% IF ( orderby == 'HeadingAsc' ) %]
43             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
44             [% ELSE %]
45             <option value="HeadingAsc">Heading A-Z</option>
46             [% END %]
47             [% IF ( orderby == 'HeadingDsc' ) %]
48             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
49             [% ELSE %]
50             <option value="HeadingDsc">Heading Z-A</option>
51             [% END %]
52             [% IF ( orderby == '' && op ) %]
53             <option value="" selected="selected">None</option>
54             [% ELSE %]
55             <option value="">None</option>
56             [% END %]
57         </select>
58         <input type="submit" class="submit" value="Submit" />
59     </form>
60     </div>
61     <div id="main_heading" class="residentsearch">
62     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
63         <label class="tip" for="value_mainheading">Enter main heading:</label>
64         <input type="hidden" name="op" value="do_search" />
65         <input type="hidden" name="type" value="intranet" />
66         <select name="authtypecode" id="authtype_main_heading">
67         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
68         [% FOREACH authority_type IN authority_types %]
69             [% IF authority_type.authtypecode == authtypecode %]
70             <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
71             [% ELSE %]
72             <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
73             [% END %]
74         [% END %]
75         </select>
76         <input type="hidden" name="marclist" value="mainentry" />
77         <input type="hidden" name="and_or" value="and" />
78         <input type="hidden" name="excluding" value="" />
79         <select name="operator">
80             [% IF ( operator == 'contains' ) %]
81             <option value="contains" selected="selected">contains</option>
82             [% ELSE %]
83             <option value="contains">contains</option>
84             [% END %]
85             [% IF ( operator == 'start' ) %]
86             <option value="start" selected="selected">starts with</option>
87             [% ELSE %]
88             <option value="start">starts with</option>
89             [% END %]
90             [% IF ( operator == 'exact' ) %]
91             <option value="exact" selected="selected">is exactly</option>
92             [% ELSE %]
93             <option value="exact">is exactly</option>
94             [% END %]
95         </select>
96         <input id="value_mainheading" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
97         <select name="orderby">
98             [% IF ( orderby == 'HeadingAsc' ) %]
99             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
100             [% ELSE %]
101             <option value="HeadingAsc">Heading A-Z</option>
102             [% END %]
103             [% IF ( orderby == 'HeadingDsc' ) %]
104             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
105             [% ELSE %]
106             <option value="HeadingDsc">Heading Z-A</option>
107             [% END %]
108             [% IF ( orderby == '' && op ) %]
109             <option value="" selected="selected">None</option>
110             [% ELSE %]
111             <option value="">None</option>
112             [% END %]
113         </select>
114         <input type="submit" class="submit" value="Submit" />
115     </form>
116     </div>
117     <div id="matchheading_search" class="residentsearch">
118     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
119         <label class="tip" for="value_matchheading">Enter any heading:</label>
120         <input type="hidden" name="op" value="do_search" />
121         <input type="hidden" name="type" value="intranet" />
122         <select name="authtypecode" id="authtype_all_headings">
123         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
124         [% FOREACH authority_type IN authority_types %]
125             [% IF authority_type.authtypecode == authtypecode %]
126             <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
127             [% ELSE %]
128             <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
129             [% END %]
130         [% END %]
131         </select>
132         <input type="hidden" name="marclist" value="match" />
133         <select name="operator">
134             [% IF ( operator == 'contains' ) %]
135             <option value="contains" selected="selected">contains</option>
136             [% ELSE %]
137             <option value="contains">contains</option>
138             [% END %]
139             [% IF ( operator == 'start' ) %]
140             <option value="start" selected="selected">starts with</option>
141             [% ELSE %]
142             <option value="start">starts with</option>
143             [% END %]
144             [% IF ( operator == 'exact' ) %]
145             <option value="exact" selected="selected">is exactly</option>
146             [% ELSE %]
147             <option value="exact">is exactly</option>
148             [% END %]
149         </select>
150         <input id="value_matchheading" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
151         <select name="orderby">
152             [% IF ( orderby == 'HeadingAsc' ) %]
153             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
154             [% ELSE %]
155             <option value="HeadingAsc">Heading A-Z</option>
156             [% END %]
157             [% IF ( orderby == 'HeadingDsc' ) %]
158             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
159             [% ELSE %]
160             <option value="HeadingDsc">Heading Z-A</option>
161             [% END %]
162             [% IF ( orderby == '' && op ) %]
163             <option value="" selected="selected">None</option>
164             [% ELSE %]
165             <option value="">None</option>
166             [% END %]
167          </select>
168          <input type="submit" class="submit" value="Submit" />
169     </form>
170     </div>
171     <div id="entire_record" class="residentsearch">
172     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
173         <label class="tip" for="value_anywhere">Enter any authority field:</label>
174         <input type="hidden" name="op" value="do_search" />
175         <input type="hidden" name="type" value="intranet" />
176         <select name="authtypecode" id="authtype_entire_record">
177         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
178         [% FOREACH authority_type IN authority_types %]
179             [% IF authority_type.authtypecode == authtypecode %]
180             <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
181             [% ELSE %]
182             <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
183             [% END %]
184         [% END %]
185         </select>
186         <input type="hidden" name="marclist" value="all" />
187         <input type="hidden" name="and_or" value="and" />
188         <input type="hidden" name="excluding" value="" />
189         <select name="operator">
190             [% IF ( operator == 'contains' ) %]
191             <option value="contains" selected="selected">contains</option>
192             [% ELSE %]
193             <option value="contains">contains</option>
194             [% END %]
195             [% IF ( operator == 'start' ) %]
196             <option value="start" selected="selected">starts with</option>
197             [% ELSE %]
198             <option value="start">starts with</option>
199             [% END %]
200             [% IF ( operator == 'exact' ) %]
201             <option value="exact" selected="selected">is exactly</option>
202             [% ELSE %]
203             <option value="exact">is exactly</option>
204             [% END %]
205         </select>
206         <input id="value_anywhere" type="text" name="value" value="[% value | html %]" class="head-searchbox" />
207         <select name="orderby">
208             [% IF ( orderby == 'HeadingAsc' ) %]
209             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
210             [% ELSE %]
211             <option value="HeadingAsc">Heading A-Z</option>
212             [% END %]
213             [% IF ( orderby == 'HeadingDsc' ) %]
214             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
215             [% ELSE %]
216             <option value="HeadingDsc">Heading Z-A</option>
217             [% END %]
218             [% IF ( orderby == '' && op ) %]
219             <option value="" selected="selected">None</option>
220             [% ELSE %]
221             <option value="">None</option>
222             [% END %]
223         </select>
224         <input type="submit" class="submit" value="Submit" />
225     </form>
226     </div>
227     <ul>
228         <li><a class="keep_text" href="#mainmain_heading">Search main heading ($a only)</a></li>
229         <li><a class="keep_text" href="#main_heading">Search main heading</a></li>
230         <li><a class="keep_text" href="#matchheading_search">Search all headings</a></li>
231         <li><a class="keep_text" href="#entire_record">Search entire record</a></li>
232     </ul>
233 </div><!-- /header_search -->
234 </div><!-- /gradient -->
235 <!-- End Authorities Resident Search Box -->