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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-11 / +8 lines)
Lines 461-467 aside { Link Here
461
        padding-left: 0;
461
        padding-left: 0;
462
462
463
        ul {
463
        ul {
464
            font-size: 75%;
464
            background-color: #F3F4F4;
465
466
            li {
467
                a {
468
                    padding: .5em .3em .5em 1.3rem;
469
                }
470
            }
465
        }
471
        }
466
472
467
        li {
473
        li {
Lines 498-512 aside { Link Here
498
    }
504
    }
499
}
505
}
500
506
501
#admin_preferences #menu {
502
    ul {
503
        ul {
504
            background-color: #F3F4F4;
505
            font-size: 85%;
506
        }
507
    }
508
}
509
510
div {
507
div {
511
    &.mainmenu {
508
    &.mainmenu {
512
        display: inline;
509
        display: inline;
Lines 4895-4898 div .suggestion_note { Link Here
4895
            display: block;
4892
            display: block;
4896
        }
4893
        }
4897
    }
4894
    }
4898
}
4895
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc (+13 lines)
Lines 28-33 Link Here
28
28
29
        <li [% IF moredetailview %]class="active"[% END %]>
29
        <li [% IF moredetailview %]class="active"[% END %]>
30
            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio_object_id | url %]">Items</a>
30
            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio_object_id | url %]">Items</a>
31
            [% IF ( ITEM_DATA ) %]
32
                <ul id="items_submenu">
33
                    [% FOREACH ITEM_DAT IN ITEM_DATA %]
34
                        <li>
35
                            [% IF ITEM_DAT.barcode -%]
36
                                <a class="item_sublink" href="#item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %]</a>
37
                            [% ELSE -%]
38
                                <a class="item_sublink" href="#item[% ITEM_DAT.itemnumber | html %]">Item number [% ITEM_DAT.itemnumber | html %]</a>
39
                            [% END %]
40
                        </li>
41
                    [% END %]
42
                </ul>
43
            [% END %]
31
        </li>
44
        </li>
32
45
33
        [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
46
        [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-3 / +27 lines)
Lines 38-43 Link Here
38
        h3.collapsed i.fa.fa-caret-down::before {
38
        h3.collapsed i.fa.fa-caret-down::before {
39
            content: "\f0da";
39
            content: "\f0da";
40
        }
40
        }
41
        #items_submenu {
42
            max-height: 500px;
43
            overflow: auto;
44
        }
41
    </style>
45
    </style>
42
[% END %]
46
[% END %]
43
</head>
47
</head>
Lines 134-142 Link Here
134
        [% FOREACH ITEM_DAT IN ITEM_DATA %]
138
        [% FOREACH ITEM_DAT IN ITEM_DATA %]
135
            <h3 id="item[% ITEM_DAT.itemnumber | html %]" class="expanded">
139
            <h3 id="item[% ITEM_DAT.itemnumber | html %]" class="expanded">
136
                <i class="fa fa-caret-down" title="Collapse this section"></i>
140
                <i class="fa fa-caret-down" title="Collapse this section"></i>
137
                Barcode [% ITEM_DAT.barcode | html %] [% IF not_for_loan %][% not_for_loan_description | html %][% END %]
141
                [% IF ITEM_DAT.barcode -%]
142
                    Barcode [% ITEM_DAT.barcode | html %]
143
                [% ELSE -%]
144
                    Item number [% ITEM_DAT.itemnumber | html %]
145
                [% END %]
146
                [% IF not_for_loan %][% not_for_loan_description | html %][% END %]
138
            </h3>
147
            </h3>
139
            <div class="page-section clearfix">
148
            <div id="collapse_item[% ITEM_DAT.itemnumber | html %]" class="page-section clearfix">
140
                [% SET not_for_loan = 0 %]
149
                [% SET not_for_loan = 0 %]
141
                [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %]
150
                [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %]
142
                    [% SET not_for_loan = 1 %]
151
                    [% SET not_for_loan = 1 %]
Lines 584-589 Link Here
584
                window.scrollTo( 0, getScrollto( linkid, "" ) );
593
                window.scrollTo( 0, getScrollto( linkid, "" ) );
585
                togglePanel( $(this) );
594
                togglePanel( $(this) );
586
            });
595
            });
596
597
            $(".item_sublink").on("click", function () {
598
                /* If the user clicks a sub-menu link in the sidebar,
599
                check to see if it is collapsed. If so, expand it */
600
                var href = $(this).attr("href");
601
                href = href.replace("#", "");
602
                var panel = $("#collapse_" + href);
603
                if (panel.is(":hidden")) {
604
                    $("#" + href)
605
                        .addClass("expanded")
606
                        .removeClass("collapsed")
607
                        .attr("title", __("Collapse this section"));
608
                    panel.show();
609
                }
610
            });
611
587
        });
612
        });
588
613
589
        function togglePanel( node ){
614
        function togglePanel( node ){
590
- 

Return to bug 7508