View | Details | Raw Unified | Return to bug 30227
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-36 / +42 lines)
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 604-610 Note that permanent location is a code, and location may be an authval. Link Here
604
608
605
[% END %][%# end of block items_table %]
609
[% END %][%# end of block items_table %]
606
610
607
<div id="holdings">
611
<div role="tabpanel" class="tab-pane" id="holdings">
608
612
609
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
613
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
610
    <span class="results_summary NovelistSelect" style="display:none;">
614
    <span class="results_summary NovelistSelect" style="display:none;">
Lines 647-653 Note that permanent location is a code, and location may be an authval. Link Here
647
    </div>
651
    </div>
648
652
649
[% IF (SeparateHoldings) %]
653
[% IF (SeparateHoldings) %]
650
    <div id="otherholdings">
654
    <div role="tabpanel" class="tab-pane" id="otherholdings">
651
        [% IF (otheritemloop.size) %]
655
        [% IF (otheritemloop.size) %]
652
            [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
656
            [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
653
        [% ELSE %]
657
        [% ELSE %]
Lines 658-664 Note that permanent location is a code, and location may be an authval. Link Here
658
662
659
[% IF ( MARCNOTES ) %]
663
[% IF ( MARCNOTES ) %]
660
664
661
<div id="description">
665
<div role="tabpanel" class="tab-pane" id="description">
662
<div class="content_set">
666
<div class="content_set">
663
667
664
    [% FOREACH MARCNOTE IN MARCNOTES %]
668
    [% FOREACH MARCNOTE IN MARCNOTES %]
Lines 676-682 Note that permanent location is a code, and location may be an authval. Link Here
676
[% END %]
680
[% END %]
677
681
678
[% IF ComponentParts && ComponentParts.size %]
682
[% IF ComponentParts && ComponentParts.size %]
679
<div id="components">
683
<div role="tabpanel" class="tab-pane" id="components">
680
    <div class="content_set">
684
    <div class="content_set">
681
        <table>
685
        <table>
682
            [% FOR PART IN ComponentParts %]
686
            [% FOR PART IN ComponentParts %]
Lines 695-701 Note that permanent location is a code, and location may be an authval. Link Here
695
[% END %]
699
[% END %]
696
700
697
[% IF ( subscriptionsnumber ) %]
701
[% IF ( subscriptionsnumber ) %]
698
<div id="subscriptions">
702
<div role="tabpanel" class="tab-pane" id="subscriptions">
699
<div id="catalogue_detail_subscriptions">
703
<div id="catalogue_detail_subscriptions">
700
    <h2>This is a serial subscription</h2>
704
    <h2>This is a serial subscription</h2>
701
    <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p> 
705
    <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p> 
Lines 750-756 Note that permanent location is a code, and location may be an authval. Link Here
750
[% END %]
754
[% END %]
751
755
752
[% IF Koha.Preference('AcquisitionDetails') %]
756
[% IF Koha.Preference('AcquisitionDetails') %]
753
<div id="acq_details">
757
<div role="tabpanel" class="tab-pane" id="acq_details">
754
  [% IF orders.count %]
758
  [% IF orders.count %]
755
    <table id="orders">
759
    <table id="orders">
756
      <thead>
760
      <thead>
Lines 840-846 Note that permanent location is a code, and location may be an authval. Link Here
840
[% END %]
844
[% END %]
841
845
842
[% IF suggestions.count %]
846
[% IF suggestions.count %]
843
    <div id="suggestion_details">
847
    <div role="tabpanel" class="tab-pane" id="suggestion_details">
844
        [% IF nb_archived_suggestions > 0 %]
848
        [% IF nb_archived_suggestions > 0 %]
845
            <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
849
            <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
846
        [% END %]
850
        [% END %]
Lines 910-916 Note that permanent location is a code, and location may be an authval. Link Here
910
[% END %]
914
[% END %]
911
915
912
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
916
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
913
<div id="editions"><h4>Editions</h4>
917
<div role="tabpanel" class="tab-pane" id="editions"><h4>Editions</h4>
914
<table>
918
<table>
915
[% 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 %]
919
[% 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 %]
916
[% 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 %]
920
[% 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 927-933 Note that permanent location is a code, and location may be an authval. Link Here
927
[% END %]
931
[% END %]
928
932
929
[% IF ( LocalCoverImages ) %]
933
[% IF ( LocalCoverImages ) %]
930
    <div id="images">
934
    <div role="tabpanel" class="tab-pane" id="images">
931
        [% IF localimages.count %]
935
        [% IF localimages.count %]
932
            <p>Click on an image to view it in the image viewer</p>
936
            <p>Click on an image to view it in the image viewer</p>
933
            <ul class="thumbnails">
937
            <ul class="thumbnails">
Lines 955-966 Note that permanent location is a code, and location may be an authval. Link Here
955
[% END %]
959
[% END %]
956
960
957
[% IF ( HTML5MediaEnabled ) %]
961
[% IF ( HTML5MediaEnabled ) %]
958
<div id="html5media">
962
<div role="tabpanel" class="tab-pane" id="html5media">
959
          [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
963
          [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
960
            <p>
964
            <p>
961
                [% IF HTML5MediaSet.is_youtube %]
965
                [% IF HTML5MediaSet.is_youtube %]
962
                    <iframe id="player" type="text/html" width="640" height="360"
966
                    <iframe id="player" width="640" height="360" src="[% HTML5MediaSet.srcblock | url %]"></iframe>
963
                        src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
964
                [% ELSE %]
967
                [% ELSE %]
965
                  <[% HTML5MediaParent | html %] controls preload=none>
968
                  <[% HTML5MediaParent | html %] controls preload=none>
966
                    <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
969
                    <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
Lines 974-990 Note that permanent location is a code, and location may be an authval. Link Here
974
977
975
978
976
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
979
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
977
    <div id="NovelistSelect" class="novelistSelect">
980
    <div role="tabpanel" class="tab-pane" id="NovelistSelect" class="novelistSelect">
978
        <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
981
        <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
979
    </div>
982
    </div>
980
[% END %]
983
[% END %]
981
984
982
[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
985
[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
983
    <div id="[% plugins_intranet_catalog_biblio_tab.id | html %]">
986
    <div role="tabpanel" class="tab-pane" id="[% plugins_intranet_catalog_biblio_tab.id | html %]">
984
        [% plugins_intranet_catalog_biblio_tab.content | $raw %]
987
        [% plugins_intranet_catalog_biblio_tab.content | $raw %]
985
    </div>
988
    </div>
986
[% END %]
989
[% END %]
987
990
991
</div><!-- /tab-content -->
988
</div><!-- /bibliodetails -->
992
</div><!-- /bibliodetails -->
989
993
990
<div id="export" style="margin-top: 1em;">
994
<div id="export" style="margin-top: 1em;">
Lines 1260-1273 Note that permanent location is a code, and location may be an authval. Link Here
1260
        [% END %]
1264
        [% END %]
1261
1265
1262
        $(document).ready(function() {
1266
        $(document).ready(function() {
1263
            $('#bibliodetails').tabs();
1264
            // Pick details tab to display by default
1267
            // Pick details tab to display by default
1265
            [% IF count == 0 %]
1268
            [% IF count == 0 %]
1266
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1269
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1267
                    $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1270
                    $(".nav-tabs a[href='#html5media']").tab("show");
1268
                [% ELSIF ComponentParts && ComponentParts.size %]
1271
                [% ELSIF ComponentParts && ComponentParts.size %]
1269
                    $('#bibliodetails').tabs("option", "active", $('#components_tab').index() );
1272
                    $(".nav-tabs a[href='#components']").tab("show");
1273
                [% ELSE %]
1274
                    $(".nav-tabs a[href='#holdings']").tab("show");
1270
                [% END %]
1275
                [% END %]
1276
            [% ELSE %]
1277
                $(".nav-tabs a[href='#holdings']").tab("show");
1271
            [% END %]
1278
            [% END %]
1272
            $('#search-form').focus();
1279
            $('#search-form').focus();
1273
            $('.thumbnails > li > .remove').click(function() {
1280
            $('.thumbnails > li > .remove').click(function() {
1274
- 

Return to bug 30227