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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-1 / +9 lines)
Lines 378-384 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 ) %]<li><a href="#components">Components ([% ( ComponentParts.size || 1 ) %])</a></li>[% END %]
381
                        [% IF ( ComponentParts ) %]
382
                            [% IF defaulttab == 'components' %]
383
                            <li id="tab_components" class="ui-tabs-active">
384
                            [% ELSE %]
385
                            <li id="tab_components">
386
                            [% END %]
387
                                <a href="#components">Components ([% ( ComponentParts.size || 1 ) %])</a>
388
                            </li>
389
                        [% END %]
382
                        [% IF ( SYNDETICS_TOC ) %]
390
                        [% IF ( SYNDETICS_TOC ) %]
383
                            <li id="tab_toc"> <a href="#toc">TOC</a></li>
391
                            <li id="tab_toc"> <a href="#toc">TOC</a></li>
384
                        [% END %]
392
                        [% END %]
(-)a/opac/opac-detail.pl (-2 / +3 lines)
Lines 659-667 my $max_items_to_display = C4::Context->preference('OpacMaxItemsToDisplay') // 5 Link Here
659
659
660
# Get component parts details
660
# Get component parts details
661
my $showcomp = C4::Context->preference('ShowComponentRecords');
661
my $showcomp = C4::Context->preference('ShowComponentRecords');
662
my $parts;
662
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
663
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
663
    if ( my $components = $biblio->get_marc_components(300) ) {
664
    if ( my $components = $biblio->get_marc_components(300) ) {
664
        my $parts;
665
        for my $part ( @{$components} ) {
665
        for my $part ( @{$components} ) {
666
            $part = C4::Search::new_record_from_zebra( 'biblioserver', $part );
666
            $part = C4::Search::new_record_from_zebra( 'biblioserver', $part );
667
667
Lines 1207-1212 my $defaulttab = Link Here
1207
        ? 'serialcollection' :
1207
        ? 'serialcollection' :
1208
    $opac_serial_default eq 'holdings' && scalar (@itemloop) > 0
1208
    $opac_serial_default eq 'holdings' && scalar (@itemloop) > 0
1209
        ? 'holdings' :
1209
        ? 'holdings' :
1210
    ( $showcomp eq 'both' || $showcomp eq 'opac' ) && scalar (@itemloop) == 0 && $parts
1211
        ? 'components' :
1210
    scalar (@itemloop) == 0
1212
    scalar (@itemloop) == 0
1211
        ? 'media' :
1213
        ? 'media' :
1212
    $subscriptionsnumber
1214
    $subscriptionsnumber
1213
- 

Return to bug 11175