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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-5 / +5 lines)
Lines 112-118 Link Here
112
        function itemSelectionBuildActionLinks(tab_id) {
112
        function itemSelectionBuildActionLinks(tab_id) {
113
            var delete_link_ok = itemSelectionBuildDeleteLink(tab_id);
113
            var delete_link_ok = itemSelectionBuildDeleteLink(tab_id);
114
            var modify_link_ok = itemSelectionBuildModifyLink(tab_id);
114
            var modify_link_ok = itemSelectionBuildModifyLink(tab_id);
115
            var tab = $("#" + tab_id);
115
            var tab = $("#" + tab_id + "_panel" );
116
            if (modify_link_ok || delete_link_ok) {
116
            if (modify_link_ok || delete_link_ok) {
117
                $('.itemselection_actions', tab).show();
117
                $('.itemselection_actions', tab).show();
118
            } else {
118
            } else {
Lines 125-131 Link Here
125
            $(".SelectAll").on("click",function(e){
125
            $(".SelectAll").on("click",function(e){
126
                e.preventDefault();
126
                e.preventDefault();
127
                let tab_id = $(this).data("tab");
127
                let tab_id = $(this).data("tab");
128
                let tab = $("#"+tab_id);
128
                let tab = $("#" + tab_id + "_panel" );
129
                tab.find("input[name='itemnumber'][type='checkbox']").each( (i, input) => {
129
                tab.find("input[name='itemnumber'][type='checkbox']").each( (i, input) => {
130
                    let itemnumber = parseInt($(input).val());
130
                    let itemnumber = parseInt($(input).val());
131
                    items_selection[tab_id].push(itemnumber);
131
                    items_selection[tab_id].push(itemnumber);
Lines 137-143 Link Here
137
            $(".ClearAll").on("click",function(e){
137
            $(".ClearAll").on("click",function(e){
138
                e.preventDefault();
138
                e.preventDefault();
139
                let tab_id = $(this).data("tab");
139
                let tab_id = $(this).data("tab");
140
                let tab = $("#"+tab_id);
140
                let tab = $("#" + tab_id + "_panel" );
141
                items_selection[tab_id] = [];
141
                items_selection[tab_id] = [];
142
                $("input[name='itemnumber'][type='checkbox']", tab).prop('checked', false);
142
                $("input[name='itemnumber'][type='checkbox']", tab).prop('checked', false);
143
                itemSelectionBuildActionLinks(tab_id);
143
                itemSelectionBuildActionLinks(tab_id);
Lines 151-157 Link Here
151
        $(".show_filters").on("click",function(e){
151
        $(".show_filters").on("click",function(e){
152
            e.preventDefault();
152
            e.preventDefault();
153
            let tab_id = $(this).data("tab");
153
            let tab_id = $(this).data("tab");
154
            let tab = $("#"+tab_id);
154
            let tab = $("#" + tab_id + "_panel" );
155
            tab.find(".show_filters").hide();
155
            tab.find(".show_filters").hide();
156
            tab.find(".hide_filters").show();
156
            tab.find(".hide_filters").show();
157
            $("#"+tab_id+"_table thead tr:eq(1)").remove();
157
            $("#"+tab_id+"_table thead tr:eq(1)").remove();
Lines 164-170 Link Here
164
        $(".hide_filters").on("click",function(e){
164
        $(".hide_filters").on("click",function(e){
165
            e.preventDefault();
165
            e.preventDefault();
166
            let tab_id = $(this).data("tab");
166
            let tab_id = $(this).data("tab");
167
            let tab = $("#"+tab_id);
167
            let tab = $("#" + tab_id + "_panel" );
168
            tab.find(".hide_filters").hide();
168
            tab.find(".hide_filters").hide();
169
            tab.find(".show_filters").show();
169
            tab.find(".show_filters").show();
170
            $("#"+tab_id+"_table thead tr:eq(1)").remove();
170
            $("#"+tab_id+"_table thead tr:eq(1)").remove();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-91 / +87 lines)
Lines 305-407 Link Here
305
                        [% END # /IF ( AmazonCoverImages, etc ) %]
305
                        [% END # /IF ( AmazonCoverImages, etc ) %]
306
                    </div>
306
                    </div>
307
307
308
                    <div id="bibliodetails" class="toptabs">
308
                    [% WRAPPER tabs id= "bibliodetails" %]
309
309
                        [% WRAPPER tabs_nav %]
310
                        <ul class="nav nav-tabs" role="tablist">
311
                            [% IF Koha.Preference('SeparateHoldings') %]
310
                            [% IF Koha.Preference('SeparateHoldings') %]
312
                                [% IF items_to_display_count - ( other_holdings_count || 0 ) %]
311
                                [% IF items_to_display_count - ( other_holdings_count || 0 ) %]
313
                                    <li role="presentation">
312
                                    [% WRAPPER tab_item tabname= "holdings" %]
314
                                        [%# FIXME We could build the numbers from DataTable's info %]
313
                                        <span>[% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %])</span>
315
                                        <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %])</a>
314
                                    [% END %]
316
                                    </li>
317
                                [% END %]
315
                                [% END %]
318
                                [% IF other_holdings_count %]
316
                                [% IF other_holdings_count %]
319
                                    <li role="presentation">
317
                                    [% WRAPPER tab_item tabname= "otherholdings" %]
320
                                        <a href="#otherholdings"  aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% other_holdings_count || 0 | html %])</a>
318
                                        <span>Other holdings ([% other_holdings_count || 0 | html %])</span>
321
                                    </li>
319
                                    [% END %]
322
                                [% END %]
320
                                [% END %]
323
                            [% ELSE %]
321
                            [% ELSE %]
324
                                <li role="presentation">
322
                                [% WRAPPER tab_item tabname= "holdings" %]
325
                                    <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% items_to_display_count || 0 | html %])</a>
323
                                    <span>Holdings ([% items_to_display_count || 0 | html %])</span>
326
                                </li>
324
                                [% END %]
327
                            [% END %]
325
                            [% END %]
328
                            [% IF Koha.Preference('EnableItemGroups') %]
326
                            [% IF Koha.Preference('EnableItemGroups') %]
329
                                <li role="presentation">
327
                                [% WRAPPER tab_item tabname= "item_groups" %]
330
                                    <a href="#item_groups" aria-controls="item_groups" role="tab" data-toggle="tab">Item groups</a>
328
                                    <span>Item groups</span>
331
                                </li>
329
                                [% END %]
332
                            [% END %]
330
                            [% END %]
333
331
334
                            [% IF ( MARCNOTES || notes ) %]
332
                            [% IF ( MARCNOTES || notes ) %]
335
                                <li role="presentation">
333
                                [% WRAPPER tab_item tabname= "description" %]
336
                                    <a href="#description" aria-controls="description" role="tab" data-toggle="tab">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a>
334
                                    <span>Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</span>
337
                                </li>
335
                                [% END %]
338
                            [% END %]
336
                            [% END %]
339
                            [% IF ComponentParts && ComponentParts.size %]
337
                            [% IF ComponentParts && ComponentParts.size %]
340
                                <li id="components_tab" role="presentation">
338
                                [% WRAPPER tab_item tabname= "components" %]
341
                                    <a href="#components"  aria-controls="components" role="tab" data-toggle="tab">Components ([% ComponentParts.size | html %])</a>
339
                                    <span>Components ([% ComponentParts.size | html %])</span>
342
                                </li>
340
                                [% END %]
343
                            [% END %]
341
                            [% END %]
344
342
345
                            [% IF ( subscriptionsnumber ) %]
343
                            [% IF ( subscriptionsnumber ) %]
346
                                <li role="presentation">
344
                                [% WRAPPER tab_item tabname= "subscriptions" %]
347
                                    <a href="#subscriptions"  aria-controls="subscriptions" role="tab" data-toggle="tab">Subscriptions</a>
345
                                    <span>Subscriptions</span>
348
                                </li>
346
                                [% END %]
349
                            [% END %]
347
                            [% END %]
350
348
351
                            [% IF Koha.Preference('AcquisitionDetails') %]
349
                            [% IF Koha.Preference('AcquisitionDetails') %]
352
                                <li role="presentation">
350
                                [% WRAPPER tab_item tabname= "acq_details" %]
353
                                    <a href="#acq_details"  aria-controls="acq_details" role="tab" data-toggle="tab">Acquisition details</a>
351
                                    <span>Acquisition details</span>
354
                                </li>
352
                                [% END %]
355
                            [% END %]
353
                            [% END %]
356
354
357
                            [% IF suggestions.count %]
355
                            [% IF suggestions.count %]
358
                                <li role="presentation">
356
                                [% WRAPPER tab_item tabname= "suggestion_details" %]
359
                                    <a href="#suggestion_details"  aria-controls="suggestion_details" role="tab" data-toggle="tab">Suggestion details</a>
357
                                    <span>Suggestion details</span>
360
                                </li>
358
                                [% END %]
361
                            [% END %]
359
                            [% END %]
362
360
363
                            [% IF ( FRBRizeEditions ) %]
361
                            [% IF ( FRBRizeEditions ) %]
364
                                [% IF ( XISBNS ) %]
362
                                [% IF ( XISBNS ) %]
365
                                    <li role="presentation">
363
                                    [% WRAPPER tab_item tabname= "editions" %]
366
                                        <a href="#editions"  aria-controls="editions" role="tab" data-toggle="tab">Editions</a>
364
                                        <span>Editions</span>
367
                                    </li>
365
                                    [% END %]
368
                                [% END %]
366
                                [% END %]
369
                            [% END %]
367
                            [% END %]
370
368
371
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
369
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
372
                                <li role="presentation">
370
                                [% WRAPPER tab_item tabname= "concerns" %]
373
                                    <a href="#concerns" aria-controls="concerns" role="tab" data-toggle="tab">Concerns ([% biblio.tickets.count | html %])</a>
371
                                    <span>Concerns ([% biblio.tickets.count | html %])</span>
374
                                </li>
372
                                [% END %]
375
                            [% END %]
373
                            [% END %]
376
374
377
                            [% IF ( LocalCoverImages ) %]
375
                            [% IF ( LocalCoverImages ) %]
378
                                <li role="presentation">
376
                                [% WRAPPER tab_item tabname= "images" %]
379
                                    <a href="#images"  aria-controls="images" role="tab" data-toggle="tab">Images ([% localimages.count || 0 | html %])</a>
377
                                    <span>Images ([% localimages.count || 0 | html %])</span>
380
                                </li>
378
                                [% END %]
381
                            [% END %]
379
                            [% END %]
382
380
383
                            [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
381
                            [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
384
                                <li id="media_tab" role="presentation">
382
                                [% WRAPPER tab_item tabname= "html5media" %]
385
                                    <a href="#html5media"  aria-controls="html5media" role="tab" data-toggle="tab">Play media</a>
383
                                    <span>Play media</span>
386
                                </li>
384
                                [% END %]
387
                            [% END %]
385
                            [% END %]
388
386
389
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
387
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
390
                                <li class="NovelistSelect" style="display:none;" role="presentation">
388
                                [% WRAPPER tab_item tabname= "NovelistSelect" %]
391
                                    <a href="#NovelistSelect"  aria-controls="NovelistSelect" role="tab" data-toggle="tab">NoveList Select</a>
389
                                    <span>NoveList Select</span>
392
                                </li>
390
                                [% END %]
393
                            [% END %]
391
                            [% END %]
394
392
395
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
393
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
396
                                <li role="presentation">
394
                                [% WRAPPER tab_item tabname= "${ plugins_intranet_catalog_biblio_tab.id }" %]
397
                                    <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>
395
                                   <span>[% plugins_intranet_catalog_biblio_tab.title | html %]</span>
398
                                </li>
396
                               [% END %]
399
                            [% END %]
397
                            [% END %]
400
                        </ul> <!-- /.nav-tabs -->
398
                        [% END # /WRAPPER tabs_nav %]
401
399
402
                        <div class="tab-content">
400
                        [% WRAPPER tab_panels %]
403
                            [% IF Koha.Preference('EnableItemGroups') %]
401
                            [% WRAPPER tab_panel tabname="item_groups" %]
404
                                <div role="tabpanel" class="tab-pane" id="item_groups">
402
                                [% IF Koha.Preference('EnableItemGroups') %]
405
                                    [% IF CAN_user_editcatalogue_manage_item_groups %]
403
                                    [% IF CAN_user_editcatalogue_manage_item_groups %]
406
                                        <div class="item_groups_table_table_controls">
404
                                        <div class="item_groups_table_table_controls">
407
                                            <a href="#" class="item-group-create btn btn-default btn-xs"><i class="fa fa-plus"></i> New item group</a>
405
                                            <a href="#" class="item-group-create btn btn-default btn-xs"><i class="fa fa-plus"></i> New item group</a>
Lines 416-425 Link Here
416
                                            </tr>
414
                                            </tr>
417
                                        </thead>
415
                                        </thead>
418
                                    </table>
416
                                    </table>
419
                                </div>
417
                                [% END # /IF EnableItemGroups %]
420
                            [% END # /IF EnableItemGroups %]
418
                            [% END # /tab_panel %]
421
419
422
                            <div role="tabpanel" class="tab-pane" id="holdings">
420
                            [% WRAPPER tab_panel tabname="holdings" %]
423
                                [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
421
                                [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
424
                                    <span class="results_summary NovelistSelect" style="display:none;">
422
                                    <span class="results_summary NovelistSelect" style="display:none;">
425
                                        <span class="label">Novelist Select: </span>
423
                                        <span class="label">Novelist Select: </span>
Lines 451-466 Link Here
451
                                        <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
449
                                        <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
452
                                    </span>
450
                                    </span>
453
                                [% END %]
451
                                [% END %]
454
                            </div> <!-- #holdings.tabpanel -->
452
                            [% END # /tab_panel %]
455
453
456
                            [% IF Koha.Preference('SeparateHoldings') %]
454
                            [% IF Koha.Preference('SeparateHoldings') %]
457
                                <div role="tabpanel" class="tab-pane" id="otherholdings">
455
                                [% WRAPPER tab_panel tabname="otherholdings" %]
458
                                    [% PROCESS items_table tab="otherholdings" %]
456
                                    [% PROCESS items_table tab="otherholdings" %]
459
                                </div>
457
                                [% END # /tab_panel %]
460
                            [% END %]
458
                            [% END %]
461
459
462
                            [% IF ( MARCNOTES ) %]
460
                            [% IF ( MARCNOTES ) %]
463
                                <div role="tabpanel" class="tab-pane" id="description">
461
                                [% WRAPPER tab_panel tabname="description" %]
464
                                    <div class="content_set">
462
                                    <div class="content_set">
465
                                        [% FOREACH MARCNOTE IN MARCNOTES %]
463
                                        [% FOREACH MARCNOTE IN MARCNOTES %]
466
                                            <p class="marcnote marcnote-[% MARCNOTE.tag | html %]" id="marcnote-[% MARCNOTE.tag | html %]-[% loop.count | html %]">
464
                                            <p class="marcnote marcnote-[% MARCNOTE.tag | html %]" id="marcnote-[% MARCNOTE.tag | html %]-[% loop.count | html %]">
Lines 472-482 Link Here
472
                                            </p>
470
                                            </p>
473
                                        [% END %]
471
                                        [% END %]
474
                                    </div>
472
                                    </div>
475
                                </div>
473
                                [% END # /tab_panel %]
476
                            [% END %]
474
                            [% END %]
477
475
478
                            [% IF ComponentParts && ComponentParts.size %]
476
                            [% IF ComponentParts && ComponentParts.size %]
479
                                <div role="tabpanel" class="tab-pane" id="components">
477
                                [% WRAPPER tab_panel tabname="components" %]
480
                                    <div class="content_set">
478
                                    <div class="content_set">
481
                                        <table>
479
                                        <table>
482
                                            [% FOR PART IN ComponentParts %]
480
                                            [% FOR PART IN ComponentParts %]
Lines 491-501 Link Here
491
                                            <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | url %]"/>show all component parts</a></p>
489
                                            <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | url %]"/>show all component parts</a></p>
492
                                        [% END %]
490
                                        [% END %]
493
                                    </div> <!-- /.content_set -->
491
                                    </div> <!-- /.content_set -->
494
                                </div> <!-- /#components -->
492
                                [% END # /tab_panel %]
495
                            [% END %]
493
                            [% END %]
496
494
497
                            [% IF ( subscriptionsnumber ) %]
495
                            [% IF ( subscriptionsnumber ) %]
498
                                <div role="tabpanel" class="tab-pane" id="subscriptions">
496
                                [% WRAPPER tab_panel tabname="subscriptions" %]
499
                                    <div id="catalogue_detail_subscriptions">
497
                                    <div id="catalogue_detail_subscriptions">
500
                                        <h2>This is a serial subscription</h2>
498
                                        <h2>This is a serial subscription</h2>
501
                                        <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
499
                                        <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
Lines 553-563 Link Here
553
                                            [% END %]
551
                                            [% END %]
554
                                        [% END # /FOREACH subscription %]
552
                                        [% END # /FOREACH subscription %]
555
                                    </div> <!-- /#catalogue_detail_subscriptions -->
553
                                    </div> <!-- /#catalogue_detail_subscriptions -->
556
                                </div> <!-- #subscriptions.tab-pane -->
554
                                [% END # /tab_panel %]
557
                            [% END # IF subscriptionsnumber %]
555
                            [% END # IF subscriptionsnumber %]
558
556
559
                            [% IF Koha.Preference('AcquisitionDetails') %]
557
                            [% IF Koha.Preference('AcquisitionDetails') %]
560
                                <div role="tabpanel" class="tab-pane" id="acq_details">
558
                                [% WRAPPER tab_panel tabname="acq_details" %]
561
                                    <p class="acqstatus_[% acq_status | html %]">This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %]
559
                                    <p class="acqstatus_[% acq_status | html %]">This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %]
562
                                    </p>
560
                                    </p>
563
                                    [% IF orders.count %]
561
                                    [% IF orders.count %]
Lines 656-666 Link Here
656
                                    [% ELSE %]
654
                                    [% ELSE %]
657
                                        <span class="noorder">There is no order for this bibliographic record.</span>
655
                                        <span class="noorder">There is no order for this bibliographic record.</span>
658
                                    [% END # /IF orders.count %]
656
                                    [% END # /IF orders.count %]
659
                                </div> <!-- /#acq_details.tab-pane -->
657
                                [% END # /tab_panel %]
660
                            [% END # /IF AcquisitionDetails %]
658
                            [% END # /IF AcquisitionDetails %]
661
659
662
                            [% IF suggestions.count %]
660
                            [% IF suggestions.count %]
663
                                <div role="tabpanel" class="tab-pane" id="suggestion_details">
661
                                [% WRAPPER tab_panel tabname="suggestion_details" %]
664
                                    [% IF nb_archived_suggestions > 0 %]
662
                                    [% IF nb_archived_suggestions > 0 %]
665
                                        <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
663
                                        <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw  %]
666
                                    [% END %]
664
                                    [% END %]
Lines 732-743 Link Here
732
                                            [% END # /FOREACH suggestion %]
730
                                            [% END # /FOREACH suggestion %]
733
                                        </tbody>
731
                                        </tbody>
734
                                    </table> <!-- /#suggestions -->
732
                                    </table> <!-- /#suggestions -->
735
                                </div> <!-- /#suggestion_details.tab-pane -->
733
                                [% END # /tab_panel %]
736
                            [% END # /IF suggestions.count %]
734
                            [% END # /IF suggestions.count %]
737
735
738
                            [% IF ( FRBRizeEditions ) %]
736
                            [% IF ( FRBRizeEditions ) %]
739
                                [% IF ( XISBNS ) %]
737
                                [% IF ( XISBNS ) %]
740
                                    <div role="tabpanel" class="tab-pane" id="editions">
738
                                    [% WRAPPER tab_panel tabname="editions" %]
741
                                        <h4>Editions</h4>
739
                                        <h4>Editions</h4>
742
                                        <table>
740
                                        <table>
743
                                            [% FOREACH XISBN IN XISBNS %]
741
                                            [% FOREACH XISBN IN XISBNS %]
Lines 772-783 Link Here
772
770
773
                                            [% END # /FOREACH XISBN %]
771
                                            [% END # /FOREACH XISBN %]
774
                                        </table>
772
                                        </table>
775
                                    </div> <!-- /#editions.tab-pane -->
773
                                    [% END # /tab_panel %]
776
                                [% END # /IF XISBNS %]
774
                                [% END # /IF XISBNS %]
777
                            [% END # /IF FRBRizeEditions %]
775
                            [% END # /IF FRBRizeEditions %]
778
776
779
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
777
                            [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
780
                                <div role="tabpanel" class="tab-pane" id="concerns">
778
                                [% WRAPPER tab_panel tabname="concerns" %]
781
                                    <fieldset class="action" style="cursor:pointer;">
779
                                    <fieldset class="action" style="cursor:pointer;">
782
                                        <a id="hideResolved"><i class="fa fa-minus-square"></i> Hide resolved</a>
780
                                        <a id="hideResolved"><i class="fa fa-minus-square"></i> Hide resolved</a>
783
                                        | <a id="showAll"><i class="fa fa-bars"></i> Show all</a>
781
                                        | <a id="showAll"><i class="fa fa-bars"></i> Show all</a>
Lines 794-804 Link Here
794
                                            </tr>
792
                                            </tr>
795
                                        </thead>
793
                                        </thead>
796
                                    </table>
794
                                    </table>
797
                                </div> <!-- /#concerns.tab-pane -->
795
                                [% END # /tab_panel %]
798
                            [% END # /IF CatalogConcerns %]
796
                            [% END # /IF CatalogConcerns %]
799
797
800
                            [% IF ( LocalCoverImages ) %]
798
                            [% IF ( LocalCoverImages ) %]
801
                                <div role="tabpanel" class="tab-pane" id="images">
799
                                [% WRAPPER tab_panel tabname="images" %]
802
                                    [% IF localimages.count %]
800
                                    [% IF localimages.count %]
803
                                        <p>Click on an image to view it in the image viewer</p>
801
                                        <p>Click on an image to view it in the image viewer</p>
804
                                        <ul class="thumbnails">
802
                                        <ul class="thumbnails">
Lines 822-832 Link Here
822
                                        <p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&amp;filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
820
                                        <p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&amp;filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
823
                                        </p>
821
                                        </p>
824
                                    [% END %]
822
                                    [% END %]
825
                                </div> <!-- /#images.tab-pane -->
823
                                [% END # /tab_panel %]
826
                            [% END # /IF LocalCoverImages %]
824
                            [% END # /IF LocalCoverImages %]
827
825
828
                            [% IF ( HTML5MediaEnabled ) %]
826
                            [% IF ( HTML5MediaEnabled ) %]
829
                                <div role="tabpanel" class="tab-pane" id="html5media">
827
                                [% WRAPPER tab_panel tabname="html5media" %]
830
                                    [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
828
                                    [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
831
                                        <p>
829
                                        <p>
832
                                            [% IF HTML5MediaSet.is_youtube %]
830
                                            [% IF HTML5MediaSet.is_youtube %]
Lines 839-860 Link Here
839
                                            [% END %]
837
                                            [% END %]
840
                                        </p>
838
                                        </p>
841
                                    [% END %]
839
                                    [% END %]
842
                                </div> <!-- /#html5media.tab-pane -->
840
                                [% END # /tab_panel %]
843
                            [% END # /IF HTML5MediaEnabled %]
841
                            [% END # /IF HTML5MediaEnabled %]
844
842
845
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
843
                            [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
846
                                <div role="tabpanel" class="tab-pane novelistSelect" id="NovelistSelect">
844
                                [% WRAPPER tab_panel tabname="NovelistSelect" %]
847
                                    <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
845
                                    <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
848
                                </div>
846
                                [% END # /tab_panel %]
849
                            [% END %]
847
                            [% END %]
850
848
851
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
849
                            [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
852
                                <div role="tabpanel" class="tab-pane" id="[% plugins_intranet_catalog_biblio_tab.id | html %]">
850
                                [% WRAPPER tab_panel tabname="${ plugins_intranet_catalog_biblio_tab.id }" %]
853
                                    [% plugins_intranet_catalog_biblio_tab.content | $raw %]
851
                                    [% plugins_intranet_catalog_biblio_tab.content | $raw %]
854
                                </div>
852
                                [% END # /tab_panel %]
855
                            [% END %]
853
                            [% END %]
856
                        </div><!-- /tab-content -->
854
                        [% END # /WRAPPER tab_panels %]
857
                    </div><!-- /bibliodetails -->
855
                    [% END # /WRAPPER tabs %]
858
856
859
                    <div id="export" style="margin-top: 1em;">
857
                    <div id="export" style="margin-top: 1em;">
860
                        <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
858
                        <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
Lines 1145-1150 Link Here
1145
     [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1143
     [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1146
         <script>
1144
         <script>
1147
            $(document).ready(function() {
1145
            $(document).ready(function() {
1146
                $("#bibliodetails a:first").tab("show");
1148
                var table_settings = [% TablesSettings.GetTableSettings( 'catalogue', 'concerns', 'table_concerns', 'json' ) | $raw %];
1147
                var table_settings = [% TablesSettings.GetTableSettings( 'catalogue', 'concerns', 'table_concerns', 'json' ) | $raw %];
1149
1148
1150
                var filtered = false;
1149
                var filtered = false;
Lines 1438-1459 Link Here
1438
            $('#images').html(no_images_msg);
1437
            $('#images').html(no_images_msg);
1439
        }
1438
        }
1440
1439
1441
1442
        $(document).ready(function() {
1440
        $(document).ready(function() {
1443
            // Pick details tab to display by default
1441
            // Pick details tab to display by default
1444
            [% IF count == 0 %]
1442
            [% IF count == 0 %]
1445
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1443
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1446
                    $(".nav-tabs a[href='#html5media']").tab("show");
1444
                    $("#bibliodetails a[href='#html5media_panel']").tab("show");
1447
                [% ELSIF ComponentParts && ComponentParts.size %]
1445
                [% ELSIF ComponentParts && ComponentParts.size %]
1448
                    $(".nav-tabs a[href='#components']").tab("show");
1446
                    $("#bibliodetails a[href='#components_panel']").tab("show");
1449
                [% ELSE %]
1447
                [% ELSE %]
1450
                    $(".nav-tabs a[href='#holdings']").tab("show");
1448
                    $("#bibliodetails a[href='#holdings_panel']").tab("show");
1451
                [% END %]
1449
                [% END %]
1452
            [% ELSE %]
1450
            [% ELSE %]
1453
                [% IF items_to_display_count - ( other_holdings_count || 0 ) %]
1451
                [% IF items_to_display_count - ( other_holdings_count || 0 ) %]
1454
                    $(".nav-tabs a[href='#holdings']").tab("show");
1452
                    $("#bibliodetails a[href='#holdings_panel']").tab("show");
1455
                [% ELSE %]
1453
                [% ELSE %]
1456
                    $(".nav-tabs a[href='#otherholdings']").tab("show");
1454
                    $("#bibliodetails a[href='#otherholdings_panel']").tab("show");
1457
                [% END %]
1455
                [% END %]
1458
            [% END %]
1456
            [% END %]
1459
            $('#search-form').focus();
1457
            $('#search-form').focus();
Lines 1572-1578 Link Here
1572
        [% END %]
1570
        [% END %]
1573
1571
1574
        $(document).ready(function() {
1572
        $(document).ready(function() {
1575
1576
            [% IF bundlesEnabled %] // Bundle handling
1573
            [% IF bundlesEnabled %] // Bundle handling
1577
                function createChild ( row, itemnumber, duedate ) {
1574
                function createChild ( row, itemnumber, duedate ) {
1578
                    // Toolbar
1575
                    // Toolbar
1579
- 

Return to bug 33526