|
Lines 15-25
Link Here
|
| 15 |
[% END %]</title |
15 |
[% END %]</title |
| 16 |
> |
16 |
> |
| 17 |
[% INCLUDE 'doc-head-close.inc' %] |
17 |
[% INCLUDE 'doc-head-close.inc' %] |
| 18 |
<style> |
18 |
[% FILTER collapse %] |
| 19 |
.listgroup .rows { |
19 |
<style> |
| 20 |
margin-left: 1em; |
20 |
.listgroup .rows { |
| 21 |
} |
21 |
margin-left: 1em; |
| 22 |
</style> |
22 |
} |
|
|
23 |
h3 { |
| 24 |
background-color: #fff; |
| 25 |
border: 1px solid #fff; |
| 26 |
margin-bottom: 0; |
| 27 |
padding: 1rem; |
| 28 |
} |
| 29 |
h3:hover { |
| 30 |
border: 1px solid #6faf44; |
| 31 |
cursor: pointer; |
| 32 |
} |
| 33 |
h3 i { |
| 34 |
color: #4c7aa8; |
| 35 |
font-size: 80%; |
| 36 |
padding-right: 0.2rem; |
| 37 |
} |
| 38 |
h3.collapsed i.fa.fa-caret-down::before { |
| 39 |
content: "\f0da"; |
| 40 |
} |
| 41 |
</style> |
| 42 |
[% END %] |
| 23 |
</head> |
43 |
</head> |
| 24 |
<body id="catalog_moredetail" class="catalog"> |
44 |
<body id="catalog_moredetail" class="catalog"> |
| 25 |
[% USE KohaDates %] |
45 |
[% USE KohaDates %] |
|
Lines 112-117
Link Here
|
| 112 |
[% END %] |
132 |
[% END %] |
| 113 |
|
133 |
|
| 114 |
[% FOREACH ITEM_DAT IN ITEM_DATA %] |
134 |
[% FOREACH ITEM_DAT IN ITEM_DATA %] |
|
|
135 |
<h3 id="item[% ITEM_DAT.itemnumber | html %]" class="expanded"> |
| 136 |
<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 %] |
| 138 |
</h3> |
| 115 |
<div class="page-section clearfix"> |
139 |
<div class="page-section clearfix"> |
| 116 |
[% SET not_for_loan = 0 %] |
140 |
[% SET not_for_loan = 0 %] |
| 117 |
[% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] |
141 |
[% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] |
|
Lines 119-126
Link Here
|
| 119 |
[% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] |
143 |
[% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] |
| 120 |
[% END %] |
144 |
[% END %] |
| 121 |
<div class="listgroup"> |
145 |
<div class="listgroup"> |
| 122 |
<h3 id="item[% ITEM_DAT.itemnumber | html %]"> Barcode [% ITEM_DAT.barcode | html %] [% IF not_for_loan %][% not_for_loan_description | html %][% END %] </h3> |
|
|
| 123 |
|
| 124 |
<h4> |
146 |
<h4> |
| 125 |
Item information |
147 |
Item information |
| 126 |
[% UNLESS ( ITEM_DAT.nomod ) %] |
148 |
[% UNLESS ( ITEM_DAT.nomod ) %] |
|
Lines 553-560
Link Here
|
| 553 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
575 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
| 554 |
[% END %] |
576 |
[% END %] |
| 555 |
<script> |
577 |
<script> |
| 556 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
578 |
$(document).ready(function(){ |
| 557 |
browser.show(); |
579 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
|
|
580 |
browser.show(); |
| 581 |
$(".collapsed, .expanded").on("click",function(e){ |
| 582 |
e.preventDefault(); |
| 583 |
var linkid = this.id; |
| 584 |
window.scrollTo( 0, getScrollto( linkid, "" ) ); |
| 585 |
togglePanel( $(this) ); |
| 586 |
}); |
| 587 |
}); |
| 588 |
|
| 589 |
function togglePanel( node ){ |
| 590 |
var panel = node.next( ".page-section" ); |
| 591 |
if(panel.is(":visible")){ |
| 592 |
node.addClass("collapsed").removeClass("expanded").attr("title", __("Click to expand this section") ); |
| 593 |
panel.hide(); |
| 594 |
} else { |
| 595 |
node.addClass("expanded").removeClass("collapsed").attr("title", __("Click to collapse this section") ); |
| 596 |
panel.show(); |
| 597 |
} |
| 598 |
} |
| 558 |
</script> |
599 |
</script> |
| 559 |
[% END %] |
600 |
[% END %] |
| 560 |
[% INCLUDE 'intranet-bottom.inc' %] |
601 |
[% INCLUDE 'intranet-bottom.inc' %] |