|
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 540-547
Link Here
|
| 540 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
565 |
[% Asset.js("js/modals/add_catalog_concern.js") | $raw %] |
| 541 |
[% END %] |
566 |
[% END %] |
| 542 |
<script> |
567 |
<script> |
| 543 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
568 |
$(document).ready(function(){ |
| 544 |
browser.show(); |
569 |
var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10)); |
|
|
570 |
browser.show(); |
| 571 |
$(".collapsed, .expanded").on("click",function(e){ |
| 572 |
e.preventDefault(); |
| 573 |
var linkid = this.id; |
| 574 |
window.scrollTo( 0, getScrollto( linkid, "" ) ); |
| 575 |
togglePanel( $(this) ); |
| 576 |
}); |
| 577 |
}); |
| 578 |
|
| 579 |
function togglePanel( node ){ |
| 580 |
var panel = node.next( ".page-section" ); |
| 581 |
if(panel.is(":visible")){ |
| 582 |
node.addClass("collapsed").removeClass("expanded").attr("title", __("Click to expand this section") ); |
| 583 |
panel.hide(); |
| 584 |
} else { |
| 585 |
node.addClass("expanded").removeClass("collapsed").attr("title", __("Click to collapse this section") ); |
| 586 |
panel.show(); |
| 587 |
} |
| 588 |
} |
| 545 |
</script> |
589 |
</script> |
| 546 |
[% END %] |
590 |
[% END %] |
| 547 |
[% INCLUDE 'intranet-bottom.inc' %] |
591 |
[% INCLUDE 'intranet-bottom.inc' %] |