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 |
- |
|
|