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 199-205 Link Here
199
      <h1>Item search</h1>
199
      <h1>Item search</h1>
200
200
201
      <form action="/cgi-bin/koha/catalogue/itemsearch.pl" method="get" id="itemsearchform">
201
      <form action="/cgi-bin/koha/catalogue/itemsearch.pl" method="get" id="itemsearchform">
202
          <div id="toolbar" class="btn-toolbar">
202
          <div id="toolbar" class="btn-toolbar sticky">
203
                <div class="btn-group">
203
                <div class="btn-group">
204
                    <button class="btn btn-primary"><i class="fa fa-search"></i> Search</button>
204
                    <button class="btn btn-primary"><i class="fa fa-search"></i> Search</button>
205
                </div>
205
                </div>
Lines 356-362 Link Here
356
[% MACRO jsinclude BLOCK %]
356
[% MACRO jsinclude BLOCK %]
357
    [% INCLUDE 'datatables.inc' %]
357
    [% INCLUDE 'datatables.inc' %]
358
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
358
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
359
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
360
    [% INCLUDE 'select2.inc' %]
359
    [% INCLUDE 'select2.inc' %]
361
    <script>
360
    <script>
362
        var authorised_values = [% authorised_values_json | $raw %];
361
        var authorised_values = [% authorised_values_json | $raw %];
Lines 675-685 Link Here
675
            $('#results').on('draw.dt', function (e, settings) {
674
            $('#results').on('draw.dt', function (e, settings) {
676
                prepSelections();
675
                prepSelections();
677
                $('[data-bs-toggle="tooltip"]').tooltip();
676
                $('[data-bs-toggle="tooltip"]').tooltip();
678
                var Sticky = $("#searchheader");
679
                Sticky.hcSticky({
680
                    stickTo: "#results-wrapper .page-section",
681
                    stickyClass: "floating"
682
                });
683
            });
677
            });
684
        }
678
        }
685
679
(-)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