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 432-438 aside { Link Here
432
        padding-left: 0;
432
        padding-left: 0;
433
433
434
        ul {
434
        ul {
435
            font-size: 75%;
435
            background-color: #F3F4F4;
436
437
            li {
438
                a {
439
                    padding: .5em .3em .5em 1.3rem;
440
                }
441
            }
436
        }
442
        }
437
443
438
        li {
444
        li {
Lines 469-483 aside { Link Here
469
    }
475
    }
470
}
476
}
471
477
472
#admin_preferences #menu {
473
    ul {
474
        ul {
475
            background-color: #F3F4F4;
476
            font-size: 85%;
477
        }
478
    }
479
}
480
481
div {
478
div {
482
    &.mainmenu {
479
    &.mainmenu {
483
        display: inline;
480
        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 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 574-579 Link Here
574
                window.scrollTo( 0, getScrollto( linkid, "" ) );
583
                window.scrollTo( 0, getScrollto( linkid, "" ) );
575
                togglePanel( $(this) );
584
                togglePanel( $(this) );
576
            });
585
            });
586
587
            $(".item_sublink").on("click", function () {
588
                /* If the user clicks a sub-menu link in the sidebar,
589
                check to see if it is collapsed. If so, expand it */
590
                var href = $(this).attr("href");
591
                href = href.replace("#", "");
592
                var panel = $("#collapse_" + href);
593
                if (panel.is(":hidden")) {
594
                    $("#" + href)
595
                        .addClass("expanded")
596
                        .removeClass("collapsed")
597
                        .attr("title", __("Collapse this section"));
598
                    panel.show();
599
                }
600
            });
601
577
        });
602
        });
578
603
579
        function togglePanel( node ){
604
        function togglePanel( node ){
580
- 

Return to bug 7508