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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-5 / +29 lines)
Lines 24-34 $footer-height: 45px; Link Here
24
}
24
}
25
25
26
.js {
26
.js {
27
    .dateformat {
27
    .dateformat,
28
        display: none;
28
    #sorting-form {
29
    }
30
31
    #sortsubmit {
32
        display: none;
29
        display: none;
33
    }
30
    }
34
}
31
}
Lines 605-610 th { Link Here
605
    color: #333;
602
    color: #333;
606
}
603
}
607
604
605
/* Add style for Bootstrap dropdown-header class */
606
.dropdown-header {
607
    border-top: 1px solid #eee;
608
    color: #000;
609
    display: block;
610
    font-size: 90%;
611
    font-weight: 700;
612
    line-height: 1.42857143;
613
    padding: 3px 20px;
614
    padding-left: 10px;
615
    white-space: nowrap;
616
}
617
618
.btn-group.open {
619
    .btn-link {
620
        &.dropdown-toggle {
621
            background-image: none;
622
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
623
        }
624
    }
625
}
626
627
608
.breadcrumb {
628
.breadcrumb {
609
    background-color: #F0F3F3;
629
    background-color: #F0F3F3;
610
    font-size: 85%;
630
    font-size: 85%;
Lines 1357-1362 div { Link Here
1357
                border-left: 0;
1377
                border-left: 0;
1358
            }
1378
            }
1359
        }
1379
        }
1380
1381
        &.dropdown-header {
1382
            display: block;
1383
        }
1360
    }
1384
    }
1361
1385
1362
    ul {
1386
    ul {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-3 / +23 lines)
Lines 978-985 $(function() { Link Here
978
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
978
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
979
    [% END %]
979
    [% END %]
980
980
981
    $('#sort-submit').hide();
982
983
    [% IF print %]
981
    [% IF print %]
984
        window.print();
982
        window.print();
985
        setTimeout('window.close()', 1);
983
        setTimeout('window.close()', 1);
Lines 993-1004 $(function() { Link Here
993
        stickyClass: "floating"
991
        stickyClass: "floating"
994
    });
992
    });
995
993
994
    sortMenu( $("#sorting-form") );
995
996
    $("#sortfield").on("change", function(){
996
    $("#sortfield").on("change", function(){
997
        $('#sorting-form').submit();
997
        $('#sorting-form').submit();
998
    });
998
    });
999
999
1000
}); // document.ready
1000
}); // document.ready
1001
1001
1002
function sortMenu( sorting_form ){
1003
    var shelfnumber = sorting_form.find("input[name='shelfnumber']").val();
1004
    var sort_link = "/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=" + shelfnumber + "&sortfield=";
1005
    var menu = "<div class=\"btn-group\"><button type=\"button\" class=\"btn btn-link dropdown-toggle\" data-toggle=\"dropdown\" id=\"sortmenu\" aria-haspopup=\"true\" aria-expanded=\"false\"><i class=\"fa fa-sort\"></i> " + _("Sort") + "</span></button><ul class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"sortmenu\">";
1006
    $("#sortfield").children().each(function(){
1007
        if( $(this)[0].tagName.toUpperCase() == "OPTION" ){
1008
            menu += "<li><a href=\"" + sort_link + $(this).val() + "\">" + $(this).text() + "</a></li>";
1009
        } else if( $(this)[0].tagName.toUpperCase() == "OPTGROUP" ){
1010
            menu += "<li class=\"dropdown-header\">" + $(this).attr("label") + "</li>";
1011
            $(this).children().each(function(){
1012
                if( $(this)[0].tagName.toUpperCase() == "OPTION" ){
1013
                    menu += "<li><a href=\"" + sort_link + $(this).val() + "\">" + $(this).text() + "</a></li>";
1014
                }
1015
            });
1016
        }
1017
    });
1018
    menu += "</ul></div>";
1019
    $(".list-actions").append( menu );
1020
    sorting_form.remove();
1021
}
1022
1002
function AdjustRemark() {
1023
function AdjustRemark() {
1003
    var category;
1024
    var category;
1004
    if( $("#category").length > 0 ) {
1025
    if( $("#category").length > 0 ) {
1005
- 

Return to bug 23915