Lines 253-293
Link Here
|
253 |
</div> <!-- /.col-xs-* --> |
253 |
</div> <!-- /.col-xs-* --> |
254 |
[% END # /IF ( AmazonCoverImages, etc ) %] |
254 |
[% END # /IF ( AmazonCoverImages, etc ) %] |
255 |
</div> |
255 |
</div> |
|
|
256 |
|
256 |
<div id="bibliodetails" class="toptabs"> |
257 |
<div id="bibliodetails" class="toptabs"> |
257 |
|
258 |
|
258 |
<ul> |
259 |
<ul class="nav nav-tabs" role="tablist"> |
259 |
[% IF (SeparateHoldings) %] |
260 |
[% IF (SeparateHoldings) %] |
260 |
<li> |
261 |
<li role="presentation"> |
261 |
<a href="#holdings">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a> |
262 |
<a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a> |
262 |
</li> |
263 |
</li> |
263 |
<li> |
264 |
<li role="presentation"> |
264 |
<a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a> |
265 |
<a href="#otherholdings" aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% otheritemloop.size() || 0 | html %])</a> |
265 |
</li> |
266 |
</li> |
266 |
[% ELSE %] |
267 |
[% ELSE %] |
267 |
<li> |
268 |
<li role="presentation"> |
268 |
<a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a> |
269 |
<a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% itemloop.size() || 0 | html %])</a> |
269 |
</li> |
270 |
</li> |
270 |
[% END %] |
271 |
[% END %] |
271 |
[% IF ( MARCNOTES ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %] |
272 |
[% IF ( MARCNOTES ) %]<li role="presentation"><a href="#description" aria-controls="description" role="tab" data-toggle="tab">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %] |
272 |
[% IF ComponentParts && ComponentParts.size %]<li id="components_tab"><a href="#components">Components ([% ComponentParts.size | html %])</a></li>[% END %] |
273 |
[% IF ComponentParts && ComponentParts.size %]<li id="components_tab" role="presentation"><a href="#components" aria-controls="components" role="tab" data-toggle="tab">Components ([% ComponentParts.size | html %])</a></li>[% END %] |
273 |
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %] |
274 |
[% IF ( subscriptionsnumber ) %]<li role="presentation"><a href="#subscriptions" aria-controls="subscriptions" role="tab" data-toggle="tab">Subscriptions</a></li>[% END %] |
274 |
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %] |
275 |
[% IF Koha.Preference('AcquisitionDetails') %]<li role="presentation"><a href="#acq_details" aria-controls="acq_details" role="tab" data-toggle="tab">Acquisition details</a></li>[% END %] |
275 |
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %] |
276 |
[% IF suggestions.count %]<li role="presentation"><a href="#suggestion_details" aria-controls="suggestion_details" role="tab" data-toggle="tab">Suggestion details</a></li>[% END %] |
276 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %] |
277 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li role="presentation"><a href="#editions" aria-controls="editions" role="tab" data-toggle="tab">Editions</a></li>[% END %][% END %] |
277 |
[% IF ( LocalCoverImages ) %] |
278 |
[% IF ( LocalCoverImages ) %] |
278 |
<li> |
279 |
<li role="presentation"> |
279 |
<a href="#images">Images ([% localimages.count || 0 | html %])</a> |
280 |
<a href="#images" aria-controls="images" role="tab" data-toggle="tab">Images ([% localimages.count || 0 | html %])</a> |
280 |
</li> |
281 |
</li> |
281 |
[% END %] |
282 |
[% END %] |
282 |
[% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %] |
283 |
[% IF HTML5MediaEnabled && HTML5MediaSets.size %] |
|
|
284 |
<li id="media_tab" role="presentation"><a href="#html5media" aria-controls="html5media" role="tab" data-toggle="tab">Play media</a></li> |
285 |
[% END %] |
283 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] |
286 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] |
284 |
<li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li> |
287 |
<li class="NovelistSelect" style="display:none;" role="presentation"><a href="#NovelistSelect" aria-controls="NovelistSelect" role="tab" data-toggle="tab">NoveList Select</a></li> |
285 |
[% END %] |
288 |
[% END %] |
286 |
[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] |
289 |
[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] |
287 |
<li><a href="#[% plugins_intranet_catalog_biblio_tab.id | uri %]">[% plugins_intranet_catalog_biblio_tab.title | html %]</a></li> |
290 |
<li role="presentation"><a href="#[% plugins_intranet_catalog_biblio_tab.id | uri %]" aria-controls="[% plugins_intranet_catalog_biblio_tab.id | uri %]" role="tab" data-toggle="tab">[% plugins_intranet_catalog_biblio_tab.title | html %]</a></li> |
288 |
[% END %] |
291 |
[% END %] |
289 |
</ul> |
292 |
</ul> |
290 |
|
293 |
|
|
|
294 |
<div class="tab-content"> |
291 |
[% items_table_block_iter = 0 %] |
295 |
[% items_table_block_iter = 0 %] |
292 |
[% BLOCK items_table %] |
296 |
[% BLOCK items_table %] |
293 |
[% items_table_block_iter = items_table_block_iter + 1 %] |
297 |
[% items_table_block_iter = items_table_block_iter + 1 %] |
Lines 596-602
Note that permanent location is a code, and location may be an authval.
Link Here
|
596 |
|
600 |
|
597 |
[% END %][%# end of block items_table %] |
601 |
[% END %][%# end of block items_table %] |
598 |
|
602 |
|
599 |
<div id="holdings"> |
603 |
<div role="tabpanel" class="tab-pane" id="holdings"> |
600 |
|
604 |
|
601 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %] |
605 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %] |
602 |
<span class="results_summary NovelistSelect" style="display:none;"> |
606 |
<span class="results_summary NovelistSelect" style="display:none;"> |
Lines 639-645
Note that permanent location is a code, and location may be an authval.
Link Here
|
639 |
</div> |
643 |
</div> |
640 |
|
644 |
|
641 |
[% IF (SeparateHoldings) %] |
645 |
[% IF (SeparateHoldings) %] |
642 |
<div id="otherholdings"> |
646 |
<div role="tabpanel" class="tab-pane" id="otherholdings"> |
643 |
[% IF (otheritemloop.size) %] |
647 |
[% IF (otheritemloop.size) %] |
644 |
[% PROCESS items_table tab="otherholdings" items=otheritemloop %] |
648 |
[% PROCESS items_table tab="otherholdings" items=otheritemloop %] |
645 |
[% ELSE %] |
649 |
[% ELSE %] |
Lines 650-656
Note that permanent location is a code, and location may be an authval.
Link Here
|
650 |
|
654 |
|
651 |
[% IF ( MARCNOTES ) %] |
655 |
[% IF ( MARCNOTES ) %] |
652 |
|
656 |
|
653 |
<div id="description"> |
657 |
<div role="tabpanel" class="tab-pane" id="description"> |
654 |
<div class="content_set"> |
658 |
<div class="content_set"> |
655 |
|
659 |
|
656 |
[% FOREACH MARCNOTE IN MARCNOTES %] |
660 |
[% FOREACH MARCNOTE IN MARCNOTES %] |
Lines 668-674
Note that permanent location is a code, and location may be an authval.
Link Here
|
668 |
[% END %] |
672 |
[% END %] |
669 |
|
673 |
|
670 |
[% IF ComponentParts && ComponentParts.size %] |
674 |
[% IF ComponentParts && ComponentParts.size %] |
671 |
<div id="components"> |
675 |
<div role="tabpanel" class="tab-pane" id="components"> |
672 |
<div class="content_set"> |
676 |
<div class="content_set"> |
673 |
<table> |
677 |
<table> |
674 |
[% FOR PART IN ComponentParts %] |
678 |
[% FOR PART IN ComponentParts %] |
Lines 687-693
Note that permanent location is a code, and location may be an authval.
Link Here
|
687 |
[% END %] |
691 |
[% END %] |
688 |
|
692 |
|
689 |
[% IF ( subscriptionsnumber ) %] |
693 |
[% IF ( subscriptionsnumber ) %] |
690 |
<div id="subscriptions"> |
694 |
<div role="tabpanel" class="tab-pane" id="subscriptions"> |
691 |
<div id="catalogue_detail_subscriptions"> |
695 |
<div id="catalogue_detail_subscriptions"> |
692 |
<h2>This is a serial subscription</h2> |
696 |
<h2>This is a serial subscription</h2> |
693 |
<p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p> |
697 |
<p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p> |
Lines 742-748
Note that permanent location is a code, and location may be an authval.
Link Here
|
742 |
[% END %] |
746 |
[% END %] |
743 |
|
747 |
|
744 |
[% IF Koha.Preference('AcquisitionDetails') %] |
748 |
[% IF Koha.Preference('AcquisitionDetails') %] |
745 |
<div id="acq_details"> |
749 |
<div role="tabpanel" class="tab-pane" id="acq_details"> |
746 |
[% IF orders.count %] |
750 |
[% IF orders.count %] |
747 |
<table id="orders"> |
751 |
<table id="orders"> |
748 |
<thead> |
752 |
<thead> |
Lines 832-838
Note that permanent location is a code, and location may be an authval.
Link Here
|
832 |
[% END %] |
836 |
[% END %] |
833 |
|
837 |
|
834 |
[% IF suggestions.count %] |
838 |
[% IF suggestions.count %] |
835 |
<div id="suggestion_details"> |
839 |
<div role="tabpanel" class="tab-pane" id="suggestion_details"> |
836 |
[% IF nb_archived_suggestions > 0 %] |
840 |
[% IF nb_archived_suggestions > 0 %] |
837 |
<p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %] |
841 |
<p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %] |
838 |
[% END %] |
842 |
[% END %] |
Lines 902-908
Note that permanent location is a code, and location may be an authval.
Link Here
|
902 |
[% END %] |
906 |
[% END %] |
903 |
|
907 |
|
904 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %] |
908 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %] |
905 |
<div id="editions"><h4>Editions</h4> |
909 |
<div role="tabpanel" class="tab-pane" id="editions"><h4>Editions</h4> |
906 |
<table> |
910 |
<table> |
907 |
[% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %] |
911 |
[% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %] |
908 |
[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %] |
912 |
[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %] |
Lines 919-925
Note that permanent location is a code, and location may be an authval.
Link Here
|
919 |
[% END %] |
923 |
[% END %] |
920 |
|
924 |
|
921 |
[% IF ( LocalCoverImages ) %] |
925 |
[% IF ( LocalCoverImages ) %] |
922 |
<div id="images"> |
926 |
<div role="tabpanel" class="tab-pane" id="images"> |
923 |
[% IF localimages.count %] |
927 |
[% IF localimages.count %] |
924 |
<p>Click on an image to view it in the image viewer</p> |
928 |
<p>Click on an image to view it in the image viewer</p> |
925 |
<ul class="thumbnails"> |
929 |
<ul class="thumbnails"> |
Lines 947-958
Note that permanent location is a code, and location may be an authval.
Link Here
|
947 |
[% END %] |
951 |
[% END %] |
948 |
|
952 |
|
949 |
[% IF ( HTML5MediaEnabled ) %] |
953 |
[% IF ( HTML5MediaEnabled ) %] |
950 |
<div id="html5media"> |
954 |
<div role="tabpanel" class="tab-pane" id="html5media"> |
951 |
[% FOREACH HTML5MediaSet IN HTML5MediaSets %] |
955 |
[% FOREACH HTML5MediaSet IN HTML5MediaSets %] |
952 |
<p> |
956 |
<p> |
953 |
[% IF HTML5MediaSet.is_youtube %] |
957 |
[% IF HTML5MediaSet.is_youtube %] |
954 |
<iframe id="player" type="text/html" width="640" height="360" |
958 |
<iframe id="player" width="640" height="360" src="[% HTML5MediaSet.srcblock | url %]"></iframe> |
955 |
src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe> |
|
|
956 |
[% ELSE %] |
959 |
[% ELSE %] |
957 |
<[% HTML5MediaParent | html %] controls preload=none> |
960 |
<[% HTML5MediaParent | html %] controls preload=none> |
958 |
<[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] /> |
961 |
<[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] /> |
Lines 966-982
Note that permanent location is a code, and location may be an authval.
Link Here
|
966 |
|
969 |
|
967 |
|
970 |
|
968 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] |
971 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] |
969 |
<div id="NovelistSelect" class="novelistSelect"> |
972 |
<div role="tabpanel" class="tab-pane" id="NovelistSelect" class="novelistSelect"> |
970 |
<div data-novelist-novelistselect=[% normalized_isbn | html %]></div> |
973 |
<div data-novelist-novelistselect=[% normalized_isbn | html %]></div> |
971 |
</div> |
974 |
</div> |
972 |
[% END %] |
975 |
[% END %] |
973 |
|
976 |
|
974 |
[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] |
977 |
[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] |
975 |
<div id="[% plugins_intranet_catalog_biblio_tab.id | html %]"> |
978 |
<div role="tabpanel" class="tab-pane" id="[% plugins_intranet_catalog_biblio_tab.id | html %]"> |
976 |
[% plugins_intranet_catalog_biblio_tab.content | $raw %] |
979 |
[% plugins_intranet_catalog_biblio_tab.content | $raw %] |
977 |
</div> |
980 |
</div> |
978 |
[% END %] |
981 |
[% END %] |
979 |
|
982 |
|
|
|
983 |
</div><!-- /tab-content --> |
980 |
</div><!-- /bibliodetails --> |
984 |
</div><!-- /bibliodetails --> |
981 |
|
985 |
|
982 |
<div id="export" style="margin-top: 1em;"> |
986 |
<div id="export" style="margin-top: 1em;"> |
Lines 1251-1264
Note that permanent location is a code, and location may be an authval.
Link Here
|
1251 |
[% END %] |
1255 |
[% END %] |
1252 |
|
1256 |
|
1253 |
$(document).ready(function() { |
1257 |
$(document).ready(function() { |
1254 |
$('#bibliodetails').tabs(); |
|
|
1255 |
// Pick details tab to display by default |
1258 |
// Pick details tab to display by default |
1256 |
[% IF count == 0 %] |
1259 |
[% IF count == 0 %] |
1257 |
[% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %] |
1260 |
[% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %] |
1258 |
$('#bibliodetails').tabs("option", "active", $('#media_tab').index() ); |
1261 |
$(".nav-tabs a[href='#html5media']").tab("show"); |
1259 |
[% ELSIF ComponentParts && ComponentParts.size %] |
1262 |
[% ELSIF ComponentParts && ComponentParts.size %] |
1260 |
$('#bibliodetails').tabs("option", "active", $('#components_tab').index() ); |
1263 |
$(".nav-tabs a[href='#components']").tab("show"); |
|
|
1264 |
[% ELSE %] |
1265 |
$(".nav-tabs a[href='#holdings']").tab("show"); |
1261 |
[% END %] |
1266 |
[% END %] |
|
|
1267 |
[% ELSE %] |
1268 |
$(".nav-tabs a[href='#holdings']").tab("show"); |
1262 |
[% END %] |
1269 |
[% END %] |
1263 |
$('#search-form').focus(); |
1270 |
$('#search-form').focus(); |
1264 |
$('.thumbnails > li > .remove').click(function() { |
1271 |
$('.thumbnails > li > .remove').click(function() { |
1265 |
- |
|
|