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