Bug 11182: remove spurious logged warnings in circulation
[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 %]</a></h1>
3 <!-- Begin Authorities Resident Search Box -->
4 <script type="text/javascript">
5 //<![CDATA[
6     $(document).ready(function() {
7         var searchType = '[% marclist %]';
8         if (searchType) {
9             if ('mainentry' == searchType) {
10                 $("#header_search").tabs( "option", "selected", 0 );
11             } else if ('match' == searchType) {
12                 $("#header_search").tabs( "option", "selected", 1 );
13             } else if ('all' == searchType) {
14                 $("#header_search").tabs( "option", "selected", 2 );
15             }
16         }
17         $("#header_search input[type='text'], #header_search select").change(function() {
18             var myname = $(this).attr("name");
19             var myval  = $(this).val();
20             $("#header_search [name='" + myname + "']").val(myval);
21         });
22     });
23 //]]>
24 </script>
25 <div id="header_search" class="residentsearch">
26     <div id="main_heading" class="residentsearch">
27     <p class="tip">Enter authorized heading:</p>
28     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
29         <input type="hidden" name="op" value="do_search" />
30         <input type="hidden" name="type" value="intranet" />
31         <select name="authtypecode">
32         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
33         [% FOREACH authtypesloo IN authtypesloop %]
34             [% IF ( authtypesloo.selected ) %]
35             <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
36             [% ELSE %]
37             <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
38             [% END %]
39         [% END %]
40         </select>
41         <input type="hidden" name="marclist" value="mainentry" />
42         <input type="hidden" name="and_or" value="and" />
43         <input type="hidden" name="excluding" value="" />
44         <select name="operator">
45             [% IF ( operator == 'contains' ) %]
46             <option value="contains" selected="selected">contains</option>
47             [% ELSE %]
48             <option value="contains">contains</option>
49             [% END %]
50             [% IF ( operator == 'start' ) %]
51             <option value="start" selected="selected">starts with</option>
52             [% ELSE %]
53             <option value="start">starts with</option>
54             [% END %]
55             [% IF ( operator == 'is' ) %]
56             <option value="is" selected="selected">is exactly</option>
57             [% ELSE %]
58             <option value="is">is exactly</option>
59             [% END %]
60         </select>
61         <input id="value_mainentry" type="text" name="value" value="[% value %]" />
62         <select name="orderby">
63             [% IF ( orderby == 'HeadingAsc' ) %]
64             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
65             [% ELSE %]
66             <option value="HeadingAsc">Heading A-Z</option>
67             [% END %]
68             [% IF ( orderby == 'HeadingDsc' ) %]
69             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
70             [% ELSE %]
71             <option value="HeadingDsc">Heading Z-A</option>
72             [% END %]
73             [% IF ( orderby == '' && op ) %]
74             <option value="" selected="selected">None</option>
75             [% ELSE %]
76             <option value="">None</option>
77             [% END %]
78         </select>
79         <input type="submit" class="submit" value="Submit" />
80     </form>
81     </div>
82     <div id="matchheading_search" class="residentsearch">
83     <p class="tip">Enter any heading:</p>
84     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
85         <input type="hidden" name="op" value="do_search" />
86         <input type="hidden" name="type" value="intranet" />
87         <select  name="authtypecode">
88         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
89         [% FOREACH authtypesloo IN authtypesloop %]
90             [% IF ( authtypesloo.selected ) %]
91             <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
92             [% ELSE %]
93             <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
94             [% END %]
95         [% END %]
96         </select>
97         <input type="hidden" name="marclist" value="match" />
98         <select name="operator">
99             [% IF ( operator == 'contains' ) %]
100             <option value="contains" selected="selected">contains</option>
101             [% ELSE %]
102             <option value="contains">contains</option>
103             [% END %]
104             [% IF ( operator == 'start' ) %]
105             <option value="start" selected="selected">starts with</option>
106             [% ELSE %]
107             <option value="start">starts with</option>
108             [% END %]
109             [% IF ( operator == 'is' ) %]
110             <option value="is" selected="selected">is exactly</option>
111             [% ELSE %]
112             <option value="is">is exactly</option>
113             [% END %]
114         </select>
115         <input id="value_matchheading" type="text" name="value" value="[% value %]" />
116         <select name="orderby">
117             [% IF ( orderby == 'HeadingAsc' ) %]
118             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
119             [% ELSE %]
120             <option value="HeadingAsc">Heading A-Z</option>
121             [% END %]
122             [% IF ( orderby == 'HeadingDsc' ) %]
123             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
124             [% ELSE %]
125             <option value="HeadingDsc">Heading Z-A</option>
126             [% END %]
127             [% IF ( orderby == '' && op ) %]
128             <option value="" selected="selected">None</option>
129             [% ELSE %]
130             <option value="">None</option>
131             [% END %]
132          </select>
133          <input type="submit" class="submit" value="Submit" />
134     </form>
135     </div>
136     <div id="all_headings" class="residentsearch">
137     <p class="tip">Enter any authority field:</p>
138     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
139         <input type="hidden" name="op" value="do_search" />
140         <input type="hidden" name="type" value="intranet" />
141         <select name="authtypecode">
142         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
143         [% FOREACH authtypesloo IN authtypesloop %]
144             [% IF ( authtypesloo.selected ) %]
145             <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
146             [% ELSE %]
147             <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
148             [% END %]
149         [% END %]
150         </select>
151         <input type="hidden" name="marclist" value="all" />
152         <input type="hidden" name="and_or" value="and" />
153         <input type="hidden" name="excluding" value="" />
154         <select name="operator">
155             [% IF ( operator == 'contains' ) %]
156             <option value="contains" selected="selected">contains</option>
157             [% ELSE %]
158             <option value="contains">contains</option>
159             [% END %]
160             [% IF ( operator == 'start' ) %]
161             <option value="start" selected="selected">starts with</option>
162             [% ELSE %]
163             <option value="start">starts with</option>
164             [% END %]
165             [% IF ( operator == 'is' ) %]
166             <option value="is" selected="selected">is exactly</option>
167             [% ELSE %]
168             <option value="is">is exactly</option>
169             [% END %]
170         </select>
171         <input id="value_anywhere" type="text" name="value" value="[% value %]" />
172         <select name="orderby">
173             [% IF ( orderby == 'HeadingAsc' ) %]
174             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
175             [% ELSE %]
176             <option value="HeadingAsc">Heading A-Z</option>
177             [% END %]
178             [% IF ( orderby == 'HeadingDsc' ) %]
179             <option value="HeadingDsc" selected="selected">Heading Z-A</option>
180             [% ELSE %]
181             <option value="HeadingDsc">Heading Z-A</option>
182             [% END %]
183             [% IF ( orderby == '' && op ) %]
184             <option value="" selected="selected">None</option>
185             [% ELSE %]
186             <option value="">None</option>
187             [% END %]
188         </select>
189         <input type="submit" class="submit" value="Submit" />
190     </form>
191     </div>
192     <ul>
193         <li><a href="#main_heading">Search main heading</a></li>
194         <li><a href="#matchheading_search">Search all headings</a></li>
195         <li><a href="#all_headings">Keyword search</a></li>
196     </ul>
197 </div><!-- /header_search -->
198 </div><!-- /gradient -->
199 <!-- End Authorities Resident Search Box -->