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