Bug 34135: Show the icons for selected tab to the left of the search bar in the staff...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities-search.inc
1 <!-- authorities-search.inc -->
2
3 [% BLOCK orderby %]
4     <div>
5         <label class="control-label">
6             Order by
7
8             <select name="orderby" class="form-control">
9                 [% IF ( orderby == 'HeadingAsc' ) %]
10                     <option value="HeadingAsc" selected="selected">Heading A-Z</option>
11                 [% ELSE %]
12                     <option value="HeadingAsc">Heading A-Z</option>
13                 [% END %]
14                 [% IF ( orderby == 'HeadingDsc' ) %]
15                     <option value="HeadingDsc" selected="selected">Heading Z-A</option>
16                 [% ELSE %]
17                     <option value="HeadingDsc">Heading Z-A</option>
18                 [% END %]
19                 [% IF ( orderby == '' && op ) %]
20                     <option value="" selected="selected">None</option>
21                 [% ELSE %]
22                     <option value="">None</option>
23                 [% END %]
24             </select>
25         </label>
26     </div>
27 [% END %]
28
29 [% BLOCK operator %]
30     <div>
31         <label class="control-label">
32             Operator
33
34             <select name="operator" class="form-control">
35                 [% IF ( operator == 'contains' ) %]
36                     <option value="contains" selected="selected">contains</option>
37                 [% ELSE %]
38                     <option value="contains">contains</option>
39                 [% END %]
40                 [% IF ( operator == 'start' ) %]
41                     <option value="start" selected="selected">starts with</option>
42                 [% ELSE %]
43                     <option value="start">starts with</option>
44                 [% END %]
45                 [% IF ( operator == 'exact' ) %]
46                     <option value="exact" selected="selected">is exactly</option>
47                 [% ELSE %]
48                     <option value="exact">is exactly</option>
49                 [% END %]
50             </select>
51         </label>
52     </div>
53 [% END %]
54
55 [% BLOCK authtype %]
56     <div>
57         <label>
58             Authority type
59             <select name="authtypecode" class="form-control">
60                 [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
61                 [% FOREACH authority_type IN authority_types %]
62                     [% IF authority_type.authtypecode == authtypecode %]
63                         <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
64                     [% ELSE %]
65                         <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
66                     [% END %]
67                 [% END %]
68             </select>
69         </label>
70     </div>
71 [% END %]
72
73 <div id="header_search" role="tablist">
74     <div class="tab-content">
75         <div id="mainmain_heading" role="tabpanel" class="tab-pane active">
76             <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
77                 <input type="hidden" name="op" value="do_search" />
78                 <input type="hidden" name="type" value="intranet" />
79                 <input type="hidden" name="marclist" value="mainmainentry" />
80                 <input type="hidden" name="and_or" value="and" />
81                 <input type="hidden" name="excluding" value="" />
82
83                 <div class="form-title">
84                     <label class="control-label"><span class="control-text">Search main heading</span> <i class="fa fa-fw fa-main-heading-a" aria-hidden="true"></i></label>
85                 </div>
86
87                 <div class="form-content">
88                     <input id="value_mainentry" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search main heading ($a only)" />
89                     <button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
90                 </div>
91
92                 <button type="submit"><i class="fa fa-arrow-right"></i></button>
93
94                 <span class="form-extra-content">
95                     [% INCLUDE authtype %]
96                     [% INCLUDE operator %]
97                     [% INCLUDE orderby %]
98                 </span>
99             </form>
100         </div>
101
102         <div id="main_heading" role="tabpanel" class="tab-pane">
103             <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
104                 <input type="hidden" name="marclist" value="mainentry" />
105                 <input type="hidden" name="and_or" value="and" />
106                 <input type="hidden" name="excluding" value="" />
107                 <input type="hidden" name="op" value="do_search" />
108                 <input type="hidden" name="type" value="intranet" />
109
110                 <div class="form-title">
111                     <label class="control-label"><span class="control-text">Search main heading</span> <i class="fa fa-fw fa-header" aria-hidden="true"></i></label>
112                 </div>
113
114                 <div class="form-content">
115                     <input id="value_mainheading" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search main heading" />
116                     <button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
117                 </div>
118
119                 <button type="submit"><i class="fa fa-arrow-right"></i></button>
120
121                 <span class="form-extra-content">
122                     [% INCLUDE authtype %]
123                     [% INCLUDE operator %]
124                     [% INCLUDE orderby %]
125                 </span>
126             </form>
127         </div>
128
129         <div id="matchheading_search" role="tabpanel" class="tab-pane">
130             <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
131                 <input type="hidden" name="op" value="do_search" />
132                 <input type="hidden" name="type" value="intranet" />
133                 <input type="hidden" name="marclist" value="match" />
134
135                 <div class="form-title">
136                     <label class="control-label"><span class="control-text">Search all headings</span> <i class="fa fa-fw fa-align-center" aria-hidden="true"></i></label>
137                 </div>
138
139                 <div class="form-content">
140                     <input id="value_matchheading" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search any heading" />
141                     <button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
142                 </div>
143
144                 <button type="submit"><i class="fa fa-arrow-right"></i></button>
145
146                 <span class="form-extra-content">
147                     [% INCLUDE authtype %]
148                     [% INCLUDE operator %]
149                     [% INCLUDE orderby %]
150                 </span>
151             </form>
152         </div>
153
154         <div id="entire_record" role="tabpanel" class="tab-pane">
155             <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
156                 <input type="hidden" name="op" value="do_search" />
157                 <input type="hidden" name="type" value="intranet" />
158                 <input type="hidden" name="marclist" value="all" />
159                 <input type="hidden" name="and_or" value="and" />
160                 <input type="hidden" name="excluding" value="" />
161
162                 <div class="form-title">
163                     <label class="control-label"><span class="control-text">Search entire record</span> <i class="fa-solid fa-fw fa-folder-open" aria-hidden="true"></i></label>
164                 </div>
165
166                 <div class="form-content">
167                     <input id="value_anywhere" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search any authority field" />
168                     <button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
169                 </div>
170
171                 <button type="submit"><i class="fa fa-arrow-right"></i></button>
172
173                 <span class="form-extra-content">
174                     [% INCLUDE authtype %]
175                     [% INCLUDE operator %]
176                     [% INCLUDE orderby %]
177                 </span>
178             </form>
179         </div>
180
181     </div><!-- /.tab-content -->
182     <ul class="nav nav-tabs" role="tablist">
183         <li role="presentation" class="active">
184             <a title="Search main heading ($a only)" href="#mainmain_heading" aria-controls="mainmain_heading" role="tab"  aria-expanded="true" data-toggle="tab" class="keep_text"><i class="fa fa-fw fa-main-heading-a" aria-hidden="true"></i> <span class="tab-title">Main heading ($a only)</span></a>
185         </li>
186         <li role="presentation">
187             <a title="Search main heading" href="#main_heading" aria-controls="main_heading" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-fw fa-header" aria-hidden="true"></i> <span class="tab-title">Main heading</span></a>
188         </li>
189         <li role="presentation">
190             <a title="Search all headings" href="#matchheading_search" aria-controls="matchheading_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-fw fa-align-center" aria-hidden="true"></i> <span class="tab-title">All headings</span></a>
191         </li>
192         <li role="presentation">
193             <a title="Search entire record" href="#entire_record" aria-controls="entire_record" role="tab" data-toggle="tab" class="keep_text"><i class="fa-solid fa-fw fa-folder-open" aria-hidden="true"></i> <span class="tab-title">Entire record</span></a>
194         </li>
195         <li role="presentation">
196     </ul>
197 </div><!-- /#header_search -->
198 <!-- /authorities-search.inc -->