|
Lines 19-24
Link Here
|
| 19 |
$("input[name=q]:eq(0)").focus(); |
19 |
$("input[name=q]:eq(0)").focus(); |
| 20 |
$('#advsearches').tabs(); |
20 |
$('#advsearches').tabs(); |
| 21 |
$('#toolbar').fixFloat(); |
21 |
$('#toolbar').fixFloat(); |
|
|
22 |
|
| 23 |
$("#show_less").hide(); |
| 24 |
$(".more").hide(); |
| 25 |
$("#show_more").click(function(){ |
| 26 |
$(".more").show(); |
| 27 |
$("#show_more").hide(); |
| 28 |
$("#show_less").show(); |
| 29 |
}); |
| 30 |
$("#show_less").click(function(){ |
| 31 |
$(".more").hide(); |
| 32 |
$("#show_less").hide(); |
| 33 |
$("#show_more").show(); |
| 34 |
}); |
| 35 |
|
| 22 |
}); |
36 |
}); |
| 23 |
</script> |
37 |
</script> |
| 24 |
</head> |
38 |
</head> |
|
Lines 44-58
Link Here
|
| 44 |
<button class="btn btn-default btn-sm" type="submit" accesskey="s"><i class="fa fa-search"></i> Search</button> |
58 |
<button class="btn btn-default btn-sm" type="submit" accesskey="s"><i class="fa fa-search"></i> Search</button> |
| 45 |
</div> |
59 |
</div> |
| 46 |
<div class="btn-group"> |
60 |
<div class="btn-group"> |
| 47 |
[% IF ( expanded_options ) %] |
61 |
<a id="show_less" class="btn btn-sm btn-link"><i class="fa fa-search-minus"></i> Fewer options</a> |
| 48 |
<a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0" class="btn btn-sm btn-link"><i class="fa fa-search-minus"></i> Fewer options</a> |
62 |
<a id="show_more" class="btn btn-sm btn-link"><i class="fa fa-search-plus"></i> More options</a> |
| 49 |
</div> |
|
|
| 50 |
[% ELSE %] |
| 51 |
<a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1" class="btn btn-sm btn-link"><i class="fa fa-search-plus"></i> More options</a> |
| 52 |
</div> |
63 |
</div> |
| 53 |
[% END %] |
|
|
| 54 |
<div class="btn-group"> |
64 |
<div class="btn-group"> |
| 55 |
<a href="/cgi-bin/koha/catalogue/search.pl?do=Clear&expanded_options=[% expanded_options %]" class="btn btn-sm btn-link"><i class="fa fa-trash"></i> Clear fields</a> |
65 |
<a href="/cgi-bin/koha/catalogue/search.pl?do=Clear" class="btn btn-sm btn-link"><i class="fa fa-trash"></i> Clear fields</a> |
| 56 |
</div> |
66 |
</div> |
| 57 |
</fieldset> |
67 |
</fieldset> |
| 58 |
</div> |
68 |
</div> |
|
Lines 87-111
Link Here
|
| 87 |
<legend>Search for </legend> |
97 |
<legend>Search for </legend> |
| 88 |
[% FOREACH search_box IN search_boxes_loop %] |
98 |
[% FOREACH search_box IN search_boxes_loop %] |
| 89 |
[% IF ( search_boxes_label ) %]<div style="text-indent: 4.5em;">[% ELSE %]<div>[% END %] |
99 |
[% IF ( search_boxes_label ) %]<div style="text-indent: 4.5em;">[% ELSE %]<div>[% END %] |
| 90 |
[% IF ( expanded_options ) %] |
|
|
| 91 |
[% IF ( search_box.boolean ) %] |
100 |
[% IF ( search_box.boolean ) %] |
| 92 |
<select name="op"> |
101 |
<select name="op" class="more"> |
| 93 |
<option value="and" selected="selected">and</option> |
102 |
<option value="and" selected="selected">and</option> |
| 94 |
<option value="or">or</option> |
103 |
<option value="or">or</option> |
| 95 |
<option value="not">not</option> |
104 |
<option value="not">not</option> |
| 96 |
</select> |
105 |
</select> |
| 97 |
[% END %] |
106 |
[% END %] |
| 98 |
[% END %] |
|
|
| 99 |
[% INCLUDE 'search_indexes.inc' %] |
107 |
[% INCLUDE 'search_indexes.inc' %] |
| 100 |
<input type="text" size="30" name="q" title="Enter search terms" value="" /> |
108 |
<input type="text" size="30" name="q" title="Enter search terms" value="" /> |
| 101 |
[% IF ( expanded_options ) %] |
|
|
| 102 |
[% IF ( search_box.add_field ) %] |
109 |
[% IF ( search_box.add_field ) %] |
| 103 |
<a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a> |
110 |
<a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field" class="more">[+]</a> |
| 104 |
[% END %] |
111 |
[% END %] |
| 105 |
[% IF ( search_box.scan_index ) %] |
112 |
[% IF ( search_box.scan_index ) %] |
| 106 |
<label for="scan">Scan indexes:</label> <input type="checkbox" name="scan" id="scan" value="1" /> |
113 |
<label for="scan" class="more">Scan indexes:</label> <input class="more" type="checkbox" name="scan" id="scan" value="1" /> |
| 107 |
[% END %] |
114 |
[% END %] |
| 108 |
[% END %] |
|
|
| 109 |
</div> |
115 |
</div> |
| 110 |
[% END %] |
116 |
[% END %] |
| 111 |
</fieldset> |
117 |
</fieldset> |
|
Lines 142-150
Link Here
|
| 142 |
</div> |
148 |
</div> |
| 143 |
[% END %] |
149 |
[% END %] |
| 144 |
<!-- /MC-TYPE LIMIT --> |
150 |
<!-- /MC-TYPE LIMIT --> |
| 145 |
[% IF ( expanded_options ) %] |
|
|
| 146 |
<!-- BASIC LIMITS --> |
151 |
<!-- BASIC LIMITS --> |
| 147 |
<fieldset id="basiclimits"> |
152 |
<fieldset id="basiclimits" class="more"> |
| 148 |
<legend>Limits</legend> |
153 |
<legend>Limits</legend> |
| 149 |
<fieldset id="pubrange"> |
154 |
<fieldset id="pubrange"> |
| 150 |
<!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options --> |
155 |
<!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options --> |
|
Lines 170-177
Link Here
|
| 170 |
</fieldset> |
175 |
</fieldset> |
| 171 |
</fieldset> |
176 |
</fieldset> |
| 172 |
<!-- /BASIC LIMITS --> |
177 |
<!-- /BASIC LIMITS --> |
| 173 |
[% END %] |
|
|
| 174 |
|
| 175 |
|
178 |
|
| 176 |
[% IF ( UNIMARC ) %] |
179 |
[% IF ( UNIMARC ) %] |
| 177 |
[% INCLUDE 'subtypes_unimarc.inc' %] |
180 |
[% INCLUDE 'subtypes_unimarc.inc' %] |
| 178 |
- |
|
|