View | Details | Raw Unified | Return to bug 13787
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-9 / +15 lines)
Lines 111-117 Link Here
111
                    </div>
111
                    </div>
112
112
113
            <div class="row-fluid">
113
            <div class="row-fluid">
114
              [% IF ( ( OpacAdvSearchOptions.grep('itemtype').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) %]
114
              [% IF ( ( OpacAdvSearchOptions     and OpacAdvSearchOptions.grep('itemtype').size > 0     and not expanded_options ) or
115
                      ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) %]
115
                <div class="span12">
116
                <div class="span12">
116
                    <div id="advsearches" class="toptabs">
117
                    <div id="advsearches" class="toptabs">
117
                        <ul>
118
                        <ul>
Lines 161-167 Link Here
161
              [% END %]
162
              [% END %]
162
163
163
                <div class="row-fluid">
164
                <div class="row-fluid">
164
                  [% IF ( ( OpacAdvSearchOptions.grep('pubdate').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions.grep('pubdate').size > 0 and expanded_options ) ) %]
165
                  [% IF ( ( OpacAdvSearchOptions     and OpacAdvSearchOptions.grep('pubdate').size > 0     and not expanded_options ) or
166
                          ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('pubdate').size > 0 and expanded_options ) ) %]
165
                    <div class="span3">
167
                    <div class="span3">
166
                        <div id="pubrange">
168
                        <div id="pubrange">
167
                            <!-- PUB RANGE OPTION -->
169
                            <!-- PUB RANGE OPTION -->
Lines 176-182 Link Here
176
                    </div>
178
                    </div>
177
                  [% END %]
179
                  [% END %]
178
180
179
                  [% IF ( ( OpacAdvSearchOptions.grep('language').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions.grep('language').size > 0 and expanded_options ) ) %]
181
                  [% IF ( ( OpacAdvSearchOptions     and OpacAdvSearchOptions.grep('language').size > 0     and not expanded_options ) or
182
                          ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('language').size > 0 and expanded_options ) ) %]
180
                    <div class="span3">
183
                    <div class="span3">
181
                        <div id="langfilter">
184
                        <div id="langfilter">
182
                            <fieldset>
185
                            <fieldset>
Lines 201-207 Link Here
201
                    </div> <!-- / .span3 -->
204
                    </div> <!-- / .span3 -->
202
                  [% END %]
205
                  [% END %]
203
206
204
                  [% IF ( ( OpacAdvSearchOptions.grep('location').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions.grep('location').size > 0 and expanded_options ) ) %]
207
                  [% IF ( ( OpacAdvSearchOptions     and OpacAdvSearchOptions.grep('location').size > 0     and not expanded_options ) or
208
                          ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('location').size > 0 and expanded_options ) ) %]
205
                    [% UNLESS ( singleBranchMode ) %]
209
                    [% UNLESS ( singleBranchMode ) %]
206
                        <div class="span3">
210
                        <div class="span3">
207
                            <!-- AVAILABILITY LIMITS -->
211
                            <!-- AVAILABILITY LIMITS -->
Lines 239-245 Link Here
239
                    [% END # / UNLESS singleBranchMode %]
243
                    [% END # / UNLESS singleBranchMode %]
240
                  [% END %]
244
                  [% END %]
241
245
242
                  [% IF ( ( OpacAdvSearchOptions.grep('sorting').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions.grep('sorting').size > 0 and expanded_options ) ) %]
246
                  [% IF ( ( OpacAdvSearchOptions     and OpacAdvSearchOptions.grep('sorting').size > 0     and not expanded_options ) or
247
                          ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('sorting').size > 0 and expanded_options ) ) %]
243
                    <div class="span3">
248
                    <div class="span3">
244
                    <!-- RANK LIMITS -->
249
                    <!-- RANK LIMITS -->
245
                        <div id="sortby">
250
                        <div id="sortby">
Lines 256-262 Link Here
256
                  [% END %]
261
                  [% END %]
257
                </div> <!-- / .row-fluid -->
262
                </div> <!-- / .row-fluid -->
258
263
259
                [% IF ( ( OpacAdvSearchOptions.grep('subtype').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions.grep('subtype').size > 0 and expanded_options ) ) %]
264
                [% IF ( ( OpacAdvSearchOptions     and OpacAdvSearchOptions.grep('subtype').size > 0     and not expanded_options ) or
265
                        ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('subtype').size > 0 and expanded_options ) ) %]
260
                    <div class="row-fluid">
266
                    <div class="row-fluid">
261
                        [% IF ( usmarc ) %]
267
                        [% IF ( usmarc ) %]
262
                            <!-- SUBTYPE LIMITS -->
268
                            <!-- SUBTYPE LIMITS -->
Lines 356-362 Link Here
356
                [% END # / IF expanded_options %]
362
                [% END # / IF expanded_options %]
357
            </div> <!-- / .row-fluid -->
363
            </div> <!-- / .row-fluid -->
358
364
359
        [% IF ( OpacAdvSearchMoreOptions.size > 0 and expanded_options ) or ( OpacAdvSearchOptions.size > 0 and not expanded_options ) %]
365
        [% IF ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.size > 0 and expanded_options ) or
366
              ( OpacAdvSearchOptions     and OpacAdvSearchOptions.size > 0     and not expanded_options ) %]
360
            <div class="row-fluid">
367
            <div class="row-fluid">
361
                <div class="span12">
368
                <div class="span12">
362
                    <div class="text-center">
369
                    <div class="text-center">
Lines 375-381 Link Here
375
    <p>
382
    <p>
376
        <input class="btn btn-success" type="submit" accesskey="s" name="do" title="Search" value="Search" />
383
        <input class="btn btn-success" type="submit" accesskey="s" name="do" title="Search" value="Search" />
377
384
378
        [% IF OpacAdvSearchMoreOptions.size > 0 %]
385
        [% IF ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.size > 0 ) %]
379
            [% IF expanded_options %]
386
            [% IF expanded_options %]
380
                <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0" class="btn btn-default more-less-options">Fewer options</a>
387
                <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0" class="btn btn-default more-less-options">Fewer options</a>
381
            [% ELSIF not expanded_options %]
388
            [% ELSIF not expanded_options %]
382
- 

Return to bug 13787