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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-10 / +3 lines)
Lines 81-87 Link Here
81
                        <h1>Advanced search</h1>
81
                        <h1>Advanced search</h1>
82
82
83
                        <!-- SEARCH BUTTONS -->
83
                        <!-- SEARCH BUTTONS -->
84
                        <div id="toolbar" class="btn-toolbar">
84
                        <div id="toolbar" class="btn-toolbar sticky">
85
                            <div class="btn-group">
85
                            <div class="btn-group">
86
                                <button class="btn btn-primary" type="submit" accesskey="s"><i class="fa fa-search"></i> Search</button>
86
                                <button class="btn btn-primary" type="submit" accesskey="s"><i class="fa fa-search"></i> Search</button>
87
                            </div>
87
                            </div>
Lines 101-107 Link Here
101
                            </div>
101
                            </div>
102
102
103
                            [% IF Koha.Preference('EnableSearchHistory') %]
103
                            [% IF Koha.Preference('EnableSearchHistory') %]
104
                                <div class="btn-group">
104
                            <div class="btn-group">
105
                                <a href="/cgi-bin/koha/catalogue/search-history.pl" class="btn btn-link"><i class="fa fa-history"></i> Search history</a>
105
                                <a href="/cgi-bin/koha/catalogue/search-history.pl" class="btn btn-link"><i class="fa fa-history"></i> Search history</a>
106
                            </div>
106
                            </div>
107
                            [% END %]
107
                            [% END %]
Lines 209-215 Link Here
209
                    [% END %]
209
                    [% END %]
210
                    </fieldset>
210
                    </fieldset>
211
                <!-- /BOOLEAN SEARCH OPTIONS -->
211
                <!-- /BOOLEAN SEARCH OPTIONS -->
212
                </div> <!-- /#advanced-search -->
213
212
214
                <!-- MC-TYPE LIMITS -->
213
                <!-- MC-TYPE LIMITS -->
215
                [% WRAPPER tabs id= "advsearches" %]
214
                [% WRAPPER tabs id= "advsearches" %]
Lines 401-412 Link Here
401
                    </p>
400
                    </p>
402
                </fieldset> <!-- /#sortby -->
401
                </fieldset> <!-- /#sortby -->
403
                <!-- /RANK LIMITS -->
402
                <!-- /RANK LIMITS -->
403
                </div> <!-- /#advanced-search -->
404
            </form>
404
            </form>
405
        </div>
405
        </div>
406
    </div>
406
    </div>
407
407
408
[% MACRO jsinclude BLOCK %]
408
[% MACRO jsinclude BLOCK %]
409
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
410
    [% Asset.js("js/browser.js") | $raw %]
409
    [% Asset.js("js/browser.js") | $raw %]
411
    [% Asset.css("css/humanmsg.css") | $raw %]
410
    [% Asset.css("css/humanmsg.css") | $raw %]
412
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
411
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
Lines 423-439 Link Here
423
            line.removeChild(ButtonPlus);
422
            line.removeChild(ButtonPlus);
424
        }
423
        }
425
424
426
        var Sticky;
427
        $(document).ready(function() {
425
        $(document).ready(function() {
428
            $("input[name=q]:eq(0)").focus();
426
            $("input[name=q]:eq(0)").focus();
429
            if( $("#advsearches .tab-pane.active").length < 1 ){
427
            if( $("#advsearches .tab-pane.active").length < 1 ){
430
                $("#advsearches a:first").tab("show");
428
                $("#advsearches a:first").tab("show");
431
            }
429
            }
432
            Sticky = $("#toolbar");
433
            Sticky.hcSticky({
434
                stickTo: ".main",
435
                stickyClass: "floating"
436
            });
437
            [% IF search_groups %]
430
            [% IF search_groups %]
438
                function branch_limit() {
431
                function branch_limit() {
439
                    if( $("#branchloop").val() != "" ){
432
                    if( $("#branchloop").val() != "" ){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-7 / +1 lines)
Lines 176-182 Link Here
176
      <h1>Item search</h1>
176
      <h1>Item search</h1>
177
177
178
      <form action="/cgi-bin/koha/catalogue/itemsearch.pl" method="get" id="itemsearchform">
178
      <form action="/cgi-bin/koha/catalogue/itemsearch.pl" method="get" id="itemsearchform">
179
          <div id="toolbar" class="btn-toolbar">
179
          <div id="toolbar" class="btn-toolbar sticky">
180
                <div class="btn-group">
180
                <div class="btn-group">
181
                    <button class="btn btn-primary"><i class="fa fa-search"></i> Search</button>
181
                    <button class="btn btn-primary"><i class="fa fa-search"></i> Search</button>
182
                </div>
182
                </div>
Lines 287-293 Link Here
287
[% MACRO jsinclude BLOCK %]
287
[% MACRO jsinclude BLOCK %]
288
    [% INCLUDE 'datatables.inc' %]
288
    [% INCLUDE 'datatables.inc' %]
289
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
289
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
290
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
291
    [% INCLUDE 'select2.inc' %]
290
    [% INCLUDE 'select2.inc' %]
292
    <script>
291
    <script>
293
        var authorised_values = [% authorised_values_json | $raw %];
292
        var authorised_values = [% authorised_values_json | $raw %];
Lines 581-591 Link Here
581
            });
580
            });
582
            $('#results').on('draw.dt', function (e, settings) {
581
            $('#results').on('draw.dt', function (e, settings) {
583
                prepSelections();
582
                prepSelections();
584
                var Sticky = $("#searchheader");
585
                Sticky.hcSticky({
586
                    stickTo: "#results-wrapper .page-section",
587
                    stickyClass: "floating"
588
                });
589
            });
583
            });
590
        }
584
        }
591
585
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 102-108 Link Here
102
                        </form>
102
                        </form>
103
                    </div>
103
                    </div>
104
104
105
                    <div class="searchheader" id="searchheader">
105
                    <div class="searchheader sticky" id="searchheader">
106
                        <div id="selection_ops">
106
                        <div id="selection_ops">
107
                            <a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a>
107
                            <a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a>
108
                            <a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-times"></i> Clear all</a>
108
                            <a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-times"></i> Clear all</a>
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js (-8 lines)
Lines 104-110 $(window).load(function() { Link Here
104
    verify_cover_images();
104
    verify_cover_images();
105
});
105
});
106
106
107
var Sticky;
108
var toHighlight = {};
107
var toHighlight = {};
109
var q_array;
108
var q_array;
110
109
Lines 130-141 $(document).ready(function() { Link Here
130
        $(this).toggle();
129
        $(this).toggle();
131
    });
130
    });
132
131
133
    Sticky = $("#searchheader");
134
    Sticky.hcSticky({
135
        stickTo: "main",
136
        stickyClass: "floating"
137
    });
138
139
    $("#cartsubmit").click(function(e){
132
    $("#cartsubmit").click(function(e){
140
        e.preventDefault();
133
        e.preventDefault();
141
        addMultiple();
134
        addMultiple();
142
- 

Return to bug 36694