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 274-280 Link Here
274
        </li>
274
        </li>
275
    [% END %]
275
    [% END %]
276
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
276
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
277
[% IF ( ComponentParts ) %]<li id="components_tab"><a href="#components">Components ([% ( ComponentParts.size ) %])</a></li>[% END %]
277
[% IF ComponentParts && ComponentParts.size %]<li id="components_tab"><a href="#components">Components ([% ComponentParts.size | html %])</a></li>[% END %]
278
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
278
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
279
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
279
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
280
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
280
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
Lines 680-686 Note that permanent location is a code, and location may be an authval. Link Here
680
680
681
[% END %]
681
[% END %]
682
682
683
[% IF ComponentParts.size %]
683
[% IF ComponentParts && ComponentParts.size %]
684
<div id="components">
684
<div id="components">
685
    <div class="content_set">
685
    <div class="content_set">
686
        <table>
686
        <table>
Lines 693-699 Note that permanent location is a code, and location may be an authval. Link Here
693
            [% END %]
693
            [% END %]
694
        </table>
694
        </table>
695
        [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
695
        [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
696
        <p>Only [% ComponentParts.size %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
696
        <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>
697
        [% END %]
697
        [% END %]
698
</div>
698
</div>
699
699
Lines 1271-1277 Note that permanent location is a code, and location may be an authval. Link Here
1271
            [% IF count == 0 %]
1271
            [% IF count == 0 %]
1272
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1272
                [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1273
                    $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1273
                    $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1274
                [% ELSIF ComponentParts %]
1274
                [% ELSIF ComponentParts && ComponentParts.size %]
1275
                    $('#bibliodetails').tabs("option", "active", $('#components_tab').index() );
1275
                    $('#bibliodetails').tabs("option", "active", $('#components_tab').index() );
1276
                [% END %]
1276
                [% END %]
1277
            [% END %]
1277
            [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-5 / +4 lines)
Lines 378-390 Link Here
378
                            [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
378
                            [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
379
                            <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
379
                            <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
380
                        [% END %]
380
                        [% END %]
381
                        [% IF ( ComponentParts ) %]
381
                        [% IF ComponentParts && ComponentParts.size %]
382
                            [% IF defaulttab == 'components' %]
382
                            [% IF defaulttab == 'components' %]
383
                            <li id="tab_components" class="ui-tabs-active">
383
                            <li id="tab_components" class="ui-tabs-active">
384
                            [% ELSE %]
384
                            [% ELSE %]
385
                            <li id="tab_components">
385
                            <li id="tab_components">
386
                            [% END %]
386
                            [% END %]
387
                                <a href="#components">Components ([% ( ComponentParts.size ) %])</a>
387
                                <a href="#components">Components ([% ComponentParts.size | html %])</a>
388
                            </li>
388
                            </li>
389
                        [% END %]
389
                        [% END %]
390
                        [% IF ( SYNDETICS_TOC ) %]
390
                        [% IF ( SYNDETICS_TOC ) %]
Lines 569-575 Link Here
569
                        </div> <!-- / #descriptions -->
569
                        </div> <!-- / #descriptions -->
570
                    [% END # / IF MARCNOTES || notes %]
570
                    [% END # / IF MARCNOTES || notes %]
571
571
572
                    [% IF ComponentParts.size %]
572
                    [% IF ComponentParts && ComponentParts.size %]
573
                    <div id="components">
573
                    <div id="components">
574
                        <div class="content_set">
574
                        <div class="content_set">
575
                            <table>
575
                            <table>
Lines 582-588 Link Here
582
                                [% END %]
582
                                [% END %]
583
                            </table>
583
                            </table>
584
                            [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
584
                            [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
585
                            <p>Only [% ComponentParts.size %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
585
                            <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>
586
                            [% END %]
586
                            [% END %]
587
                        </div>
587
                        </div>
588
                    </div>
588
                    </div>
589
- 

Return to bug 11175