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