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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +4 lines)
Lines 269-275 Link Here
269
        </li>
269
        </li>
270
    [% END %]
270
    [% END %]
271
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
271
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
272
[% IF ( ComponentParts ) %]<li id="components_tab"><a href="#components">Components ([% ( ComponentParts.size ) %])</a></li>[% END %]
272
[% IF ComponentParts && ComponentParts.size %]<li id="components_tab"><a href="#components">Components ([% ComponentParts.size | html %])</a></li>[% END %]
273
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
273
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
274
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
274
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
275
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
275
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
Lines 675-681 Note that permanent location is a code, and location may be an authval. Link Here
675
675
676
[% END %]
676
[% END %]
677
677
678
[% IF ComponentParts.size %]
678
[% IF ComponentParts && ComponentParts.size %]
679
<div id="components">
679
<div id="components">
680
    <div class="content_set">
680
    <div class="content_set">
681
        <table>
681
        <table>
Lines 688-694 Note that permanent location is a code, and location may be an authval. Link Here
688
            [% END %]
688
            [% END %]
689
        </table>
689
        </table>
690
        [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
690
        [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
691
        <p>Only [% ComponentParts.size %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
691
        <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
692
        [% END %]
692
        [% END %]
693
</div>
693
</div>
694
694
Lines 1264-1270 Note that permanent location is a code, and location may be an authval. Link Here
1264
            [% IF count == 0 %]
1264
            [% IF count == 0 %]
1265
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1265
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1266
                    $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1266
                    $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1267
                [% ELSIF ComponentParts %]
1267
                [% ELSIF ComponentParts && ComponentParts.size %]
1268
                    $('#bibliodetails').tabs("option", "active", $('#components_tab').index() );
1268
                    $('#bibliodetails').tabs("option", "active", $('#components_tab').index() );
1269
                [% END %]
1269
                [% END %]
1270
            [% END %]
1270
            [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-5 / +4 lines)
Lines 402-414 Link Here
402
                            [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
402
                            [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
403
                            <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
403
                            <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
404
                        [% END %]
404
                        [% END %]
405
                        [% IF ( ComponentParts ) %]
405
                        [% IF ComponentParts && ComponentParts.size %]
406
                            [% IF defaulttab == 'components' %]
406
                            [% IF defaulttab == 'components' %]
407
                            <li id="tab_components" class="ui-tabs-active">
407
                            <li id="tab_components" class="ui-tabs-active">
408
                            [% ELSE %]
408
                            [% ELSE %]
409
                            <li id="tab_components">
409
                            <li id="tab_components">
410
                            [% END %]
410
                            [% END %]
411
                                <a href="#components">Components ([% ( ComponentParts.size ) %])</a>
411
                                <a href="#components">Components ([% ComponentParts.size | html %])</a>
412
                            </li>
412
                            </li>
413
                        [% END %]
413
                        [% END %]
414
                        [% IF ( SYNDETICS_TOC ) %]
414
                        [% IF ( SYNDETICS_TOC ) %]
Lines 593-599 Link Here
593
                        </div> <!-- / #descriptions -->
593
                        </div> <!-- / #descriptions -->
594
                    [% END # / IF MARCNOTES || notes %]
594
                    [% END # / IF MARCNOTES || notes %]
595
595
596
                    [% IF ComponentParts.size %]
596
                    [% IF ComponentParts && ComponentParts.size %]
597
                    <div id="components">
597
                    <div id="components">
598
                        <div class="content_set">
598
                        <div class="content_set">
599
                            <table>
599
                            <table>
Lines 606-612 Link Here
606
                                [% END %]
606
                                [% END %]
607
                            </table>
607
                            </table>
608
                            [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
608
                            [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
609
                            <p>Only [% ComponentParts.size %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
609
                            <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
610
                            [% END %]
610
                            [% END %]
611
                        </div>
611
                        </div>
612
                    </div>
612
                    </div>
613
- 

Return to bug 11175