Lines 15-21
Link Here
|
15 |
[% t("Koha") | html %] |
15 |
[% t("Koha") | html %] |
16 |
[% END %]</title> |
16 |
[% END %]</title> |
17 |
[% INCLUDE 'doc-head-close.inc' %] |
17 |
[% INCLUDE 'doc-head-close.inc' %] |
18 |
<style>.listgroup .rows{margin-left:1em;}</style> |
18 |
[% FILTER collapse %] |
|
|
19 |
<style> |
20 |
.listgroup .rows{ |
21 |
margin-left: 1em; |
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: .2rem; |
37 |
} |
38 |
h3.collapsed i.fa.fa-caret-down::before { |
39 |
content: "\f0da"; |
40 |
} |
41 |
</style> |
42 |
[% END %] |
19 |
</head> |
43 |
</head> |
20 |
<body id="catalog_moredetail" class="catalog"> |
44 |
<body id="catalog_moredetail" class="catalog"> |
21 |
[% USE KohaDates %] |
45 |
[% USE KohaDates %] |
Lines 108-113
Link Here
|
108 |
[% END %] |
132 |
[% END %] |
109 |
|
133 |
|
110 |
[% 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> |
111 |
<div class="page-section clearfix"> |
139 |
<div class="page-section clearfix"> |
112 |
[% SET not_for_loan = 0 %] |
140 |
[% SET not_for_loan = 0 %] |
113 |
[% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] |
141 |
[% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] |
Lines 115-123
Link Here
|
115 |
[% 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 ) %] |
116 |
[% END %] |
144 |
[% END %] |
117 |
<div class="listgroup"> |
145 |
<div class="listgroup"> |
118 |
<h3 id="item[% ITEM_DAT.itemnumber | html %]"> |
|
|
119 |
Barcode [% ITEM_DAT.barcode | html %] [% IF not_for_loan %][% not_for_loan_description | html %] [% END %] |
120 |
</h3> |
121 |
|
146 |
|
122 |
<h4> |
147 |
<h4> |
123 |
Item information |
148 |
Item information |
Lines 533-540
Link Here
|
533 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
558 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
534 |
[% END %] |
559 |
[% END %] |
535 |
<script> |
560 |
<script> |
536 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
561 |
$(document).ready(function(){ |
537 |
browser.show(); |
562 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
|
|
563 |
browser.show(); |
564 |
$(".collapsed, .expanded").on("click",function(e){ |
565 |
e.preventDefault(); |
566 |
var linkid = this.id; |
567 |
window.scrollTo( 0, getScrollto( linkid, "" ) ); |
568 |
togglePanel( $(this) ); |
569 |
}); |
570 |
}); |
571 |
|
572 |
function togglePanel( node ){ |
573 |
var panel = node.next( ".page-section" ); |
574 |
if(panel.is(":visible")){ |
575 |
node.addClass("collapsed").removeClass("expanded").attr("title", __("Click to expand this section") ); |
576 |
panel.hide(); |
577 |
} else { |
578 |
node.addClass("expanded").removeClass("collapsed").attr("title", __("Click to collapse this section") ); |
579 |
panel.show(); |
580 |
} |
581 |
} |
538 |
</script> |
582 |
</script> |
539 |
[% END %] |
583 |
[% END %] |
540 |
[% INCLUDE 'intranet-bottom.inc' %] |
584 |
[% INCLUDE 'intranet-bottom.inc' %] |