Bug 5910: allow users to search on all auth types
[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 <div id="header_search" class="residentsearch">
5     <div id="authority_search" class="residentsearch">
6     <p class="tip">Enter authority heading ($a):</p>
7     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
8         <input type="hidden" name="op" value="do_search" />
9         <input type="hidden" name="type" value="intranet" />
10         <select name="authtypecode">
11         <option value="">All Authority Types</option>
12         [% FOREACH authtypesloo IN authtypesloop %]
13             [% IF ( authtypesloo.selected ) %]
14             <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
15             [% ELSE %]
16             <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
17             [% END %]
18         [% END %]
19         </select>
20         <input type="hidden" name="marclist" value="mainmainentry" />
21         <select name="operator">
22             <option value="contains">contains</option>
23             <option value="start">starts with</option>
24             <option value="is">is exactly</option>
25         </select>
26         <input id="value_anywhere" type="text" name="value" value="[% value %]" />
27         <select name="orderby">
28             <option value="">None</option>
29             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
30             <option value="HeadingDsc">Heading Z-A</option>
31          </select>
32          <input type="submit" class="submit" value="Submit" />
33     </form>
34     </div>
35     <div id="main_heading" class="residentsearch">
36     <p class="tip">Enter authority heading:</p>
37     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
38         <input type="hidden" name="op" value="do_search" />
39         <input type="hidden" name="type" value="intranet" />
40         <select  name="authtypecode">
41         <option value="">All Authority Types</option>
42         [% FOREACH authtypesloo IN authtypesloop %]
43             [% IF ( authtypesloo.selected ) %]
44             <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
45             [% ELSE %]
46             <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
47             [% END %]
48         [% END %]
49         </select>
50         <input type="hidden" name="marclist" value="mainentry" />
51         <input type="hidden" name="and_or" value="and" />
52         <input type="hidden" name="excluding" value="" />
53         <select name="operator">
54             <option value="contains">contains</option>
55             <option value="start">starts with</option>
56             <option value="is">is exactly</option>
57         </select>
58         <input id="value_mainentry" type="text" name="value" value="[% value %]" />
59         <select name="orderby">
60             <option value="">None</option>
61             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
62             <option value="HeadingDsc">Heading Z-A</option>
63         </select>
64         <input type="submit" class="submit" value="Submit" />
65     </form>
66     </div>
67     <div id="all_headings" class="residentsearch">
68     <p class="tip">Enter any authority field:</p>
69     <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
70         <input type="hidden" name="op" value="do_search" />
71         <input type="hidden" name="type" value="intranet" />
72         <select name="authtypecode">
73         <option value="">All Authority Types</option>
74         [% FOREACH authtypesloo IN authtypesloop %]
75             [% IF ( authtypesloo.selected ) %]
76             <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
77             [% ELSE %]
78             <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
79             [% END %]
80         [% END %]
81         </select>
82         <input type="hidden" name="marclist" value="all" />
83         <input type="hidden" name="and_or" value="and" />
84         <input type="hidden" name="excluding" value="" />
85         <select name="operator">
86             <option value="contains">contains</option>
87             <option value="start">starts with</option>
88             <option value="is">is exactly</option>
89         </select>
90         <input id="value_mainmainentry" type="text" name="value" value="[% value %]" />
91         <select name="orderby">
92             <option value="">None</option>
93             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
94             <option value="HeadingDsc">Heading Z-A</option>
95         </select>
96         <input type="submit" class="submit" value="Submit" />
97     </form>
98     </div>
99     <ul>
100         <li><a href="#authority_search">Search authorities</a></li>
101         <li><a href="#main_heading">Search main heading</a></li>
102         <li><a href="#all_headings">Search all headings</a></li>
103     </ul>
104 </div><!-- /header_search -->
105 </div><!-- /gradient -->
106 <!-- End Authorities Resident Search Box -->