Bug 28412: Add information about supported authentication methods
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / opac-topissues.inc
1 [% USE Koha %]
2 [% USE Branches %]
3 [% PROCESS 'html_helpers.inc' %]
4
5 <div id="search-facets">
6     <form method="get" action="/cgi-bin/koha/opac-topissues.pl">
7     <h2><a href="#" class="menu-collapse-toggle">Refine your search</a></h2>
8             <ul class="menu-collapse">
9                 <li><label for="limit">Show the top </label>
10                             <select name="limit" id="limit">
11                                 [% IF ( limit == 10 ) %]<option value ="10" selected="selected">10 titles</option>[% ELSE %]<option value="10">10 titles</option>[% END %]
12                                 [% IF ( limit == 15 ) %]<option value ="15" selected="selected">15 titles</option>[% ELSE %]<option value="15">15 titles</option>[% END %]
13                                 [% IF ( limit == 20 ) %]<option value ="20" selected="selected">20 titles</option>[% ELSE %]<option value="20">20 titles</option>[% END %]
14                                 [% IF ( limit == 30 ) %]<option value ="30" selected="selected">30 titles</option>[% ELSE %]<option value="30">30 titles</option>[% END %]
15                                 [% IF ( limit == 40 ) %]<option value ="40" selected="selected">40 titles</option>[% ELSE %]<option value="40">40 titles</option>[% END %]
16                                 [% IF ( limit == 50 ) %]<option value ="50" selected="selected">50 titles</option>[% ELSE %]<option value="50">50 titles</option>[% END %]
17                                 [% IF ( limit == 100 ) %]<option value ="100" selected="selected">100 titles</option>[% ELSE %]<option value="100">100 titles</option>[% END %]
18                             </select></li>
19
20                 [% IF Branches.all.size > 1 %]
21                 <li><label for="branch">From: </label>
22                             <select name="branch" id="branch">
23                                 <option value="">All libraries</option>
24                                 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
25                             </select></li>
26                 [% END %]
27
28                 [% AdvancedSearchTypes = Koha.Preference('AdvancedSearchTypes').split('\|') %]
29                 [% IF AdvancedSearchTypes.grep('^itemtypes$').size %]
30                     <li>
31                         <label for="itemtype">Limit to: </label>
32                         <select name="itemtype" id="itemtype">
33                             <option value="">All item types</option>
34                             [% FOREACH itemtype IN ItemTypes.Get() %]
35                                 [% IF itemtype.itemtype == selected_itemtype %]
36                                     <option value="[% itemtype.itemtype | html %]" selected="selected">
37                                 [% ELSE %]
38                                     <option value="[% itemtype.itemtype | html %]">
39                                 [% END %]
40                                     [% itemtype.translated_description | html %]
41                                 </option>
42                             [% END %]
43                         </select>
44                     </li>
45                 [% END %]
46
47                 [% IF AdvancedSearchTypes.grep('^ccode$').size %]
48                     <li>
49                         <label for="ccode">Limit to:</label>
50                         <select name="ccode" id="ccode">
51                             <option value="">All collections</option>
52                             [% FOREACH ccode IN AuthorisedValues.Get('CCODE', 1) %]
53                                 [% IF ccode.authorised_value == selected_ccode %]
54                                     <option value="[% ccode.authorised_value | html %]" selected="selected">
55                                 [% ELSE %]
56                                     <option value="[% ccode.authorised_value | html %]">
57                                 [% END %]
58                                     [% ccode.lib | html %]
59                                 </option>
60                             [% END %]
61                         </select>
62                     </li>
63                 [% END %]
64
65                 <li><label for="timeLimit">Acquired in the last:</label>
66                             <select name="timeLimit" id="timeLimit">
67                                 [% IF ( timeLimit == 3 ) %]
68                                     <option value="3" selected="selected">3 months</option>
69                                 [% ELSE %]
70                                     <option value="3">3 months</option>
71                                 [% END %]
72                                 [% IF ( timeLimit == 6 ) %]
73                                     <option value="6" selected="selected">6 months</option>
74                                 [% ELSE %]
75                                     <option value="6">6 months</option>
76                                 [% END %]
77                                 [% IF ( timeLimit == 12 ) %]
78                                     <option value="12" selected="selected">12 months</option>
79                                 [% ELSE %]
80                                     <option value="12">12 months</option>
81                                 [% END %]
82                                 [% IF ( timeLimit == 999 ) %]
83                                     <option value="999" selected="selected">No limit</option>
84                                 [% ELSE %]
85                                     <option value="999">No limit</option>
86                                 [% END %]
87                             </select></li>
88                 <li>
89                     <input type="hidden" name="do_it" value="1" />
90                     <input type="submit" class="btn btn-primary" value="Submit" />
91                 </li>
92             </ul>
93     </form>
94 </div>