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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-10 / +7 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;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc (+13 lines)
Lines 48-53 Link Here
48
        <li>
48
        <li>
49
        [%- END -%]
49
        [%- END -%]
50
            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio_object_id | url  %]">Items</a>
50
            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio_object_id | url  %]">Items</a>
51
            [% IF ( ITEM_DATA ) %]
52
                <ul id="items_submenu">
53
                    [% FOREACH ITEM_DAT IN ITEM_DATA %]
54
                        <li>
55
                            [% IF ITEM_DAT.barcode -%]
56
                                <a class="item_sublink" href="#item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %]</a>
57
                            [% ELSE -%]
58
                                <a class="item_sublink" href="#item[% ITEM_DAT.itemnumber | html %]">Item number [% ITEM_DAT.itemnumber | html %]</a>
59
                            [% END %]
60
                        </li>
61
                    [% END %]
62
                </ul>
63
            [% END %]
51
        </li>
64
        </li>
52
65
53
        [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
66
        [% 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 37-42 Link Here
37
        h3.collapsed i.fa.fa-caret-down::before {
37
        h3.collapsed i.fa.fa-caret-down::before {
38
           content: "\f0da";
38
           content: "\f0da";
39
        }
39
        }
40
        #items_submenu {
41
            max-height: 500px;
42
            overflow: auto;
43
        }
40
    </style>
44
    </style>
41
[% END %]
45
[% END %]
42
</head>
46
</head>
Lines 133-141 Link Here
133
                    [% FOREACH ITEM_DAT IN ITEM_DATA %]
137
                    [% FOREACH ITEM_DAT IN ITEM_DATA %]
134
                        <h3 id="item[% ITEM_DAT.itemnumber | html %]" class="expanded">
138
                        <h3 id="item[% ITEM_DAT.itemnumber | html %]" class="expanded">
135
                            <i class="fa fa-caret-down" title="Collapse this section"></i>
139
                            <i class="fa fa-caret-down" title="Collapse this section"></i>
136
                            Barcode [% ITEM_DAT.barcode | html %]  [% IF not_for_loan %][% not_for_loan_description | html %] [% END %]
140
                            [% IF ITEM_DAT.barcode -%]
141
                                Barcode [% ITEM_DAT.barcode | html %]
142
                            [% ELSE -%]
143
                                Item number [% ITEM_DAT.itemnumber | html %]
144
                            [% END %]
145
                            [% IF not_for_loan %][% not_for_loan_description | html %] [% END %]
137
                        </h3>
146
                        </h3>
138
                        <div class="page-section clearfix">
147
                        <div id="collapse_item[% ITEM_DAT.itemnumber | html %]" class="page-section clearfix">
139
                            [% SET not_for_loan = 0 %]
148
                            [% SET not_for_loan = 0 %]
140
                            [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %]
149
                            [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %]
141
                                [% SET not_for_loan = 1 %]
150
                                [% SET not_for_loan = 1 %]
Lines 573-578 Link Here
573
                window.scrollTo( 0, getScrollto( linkid, "" ) );
582
                window.scrollTo( 0, getScrollto( linkid, "" ) );
574
                togglePanel( $(this) );
583
                togglePanel( $(this) );
575
            });
584
            });
585
586
            $(".item_sublink").on("click", function () {
587
                /* If the user clicks a sub-menu link in the sidebar,
588
                check to see if it is collapsed. If so, expand it */
589
                var href = $(this).attr("href");
590
                href = href.replace("#", "");
591
                var panel = $("#collapse_" + href);
592
                if (panel.is(":hidden")) {
593
                    $("#" + href)
594
                        .addClass("expanded")
595
                        .removeClass("collapsed")
596
                        .attr("title", __("Collapse this section"));
597
                    panel.show();
598
                }
599
            });
600
576
        });
601
        });
577
602
578
        function togglePanel( node ){
603
        function togglePanel( node ){
579
- 

Return to bug 7508