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

(-)a/catalogue/detail.pl (-13 / +14 lines)
Lines 215-234 foreach my $subscription (@subscriptions) { Link Here
215
my $showcomp = C4::Context->preference('ShowComponentRecords');
215
my $showcomp = C4::Context->preference('ShowComponentRecords');
216
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
216
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
217
    if ( my $components = $biblio->get_marc_components(300) ) {
217
    if ( my $components = $biblio->get_marc_components(300) ) {
218
        my $xslparts = C4::Context->preference('XSLTResultsDisplay') || "default";
218
        my $parts;
219
        if ( $xslparts ) {
219
        for my $part ( @{$components} ) {
220
            my $parts;
220
            $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
221
            for my $part ( @{$components} ) {
221
222
                $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
222
            push @{$parts},
223
223
              XSLTParse4Display(
224
                push @{$parts},
224
                {
225
                  XSLTParse4Display( 1, $part, "XSLTResultsDisplay", 1,
225
                    biblionumber => $biblionumber,
226
                    undef, $sysxml, $xslparts, $lang, );
226
                    record       => $part,
227
            }
227
                    xsl_syspref  => "XSLTResultsDisplay",
228
            $template->param(
228
                    fix_amps     => 1,
229
               ComponentParts => $parts
229
                }
230
            );
230
              );
231
        }
231
        }
232
        $template->param( ComponentParts => $parts );
232
    }
233
    }
233
}
234
}
234
235
(-)a/opac/opac-detail.pl (-14 / +14 lines)
Lines 661-680 my $max_items_to_display = C4::Context->preference('OpacMaxItemsToDisplay') // 5 Link Here
661
my $showcomp = C4::Context->preference('ShowComponentRecords');
661
my $showcomp = C4::Context->preference('ShowComponentRecords');
662
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
662
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
663
    if ( my $components = $biblio->get_marc_components(300) ) {
663
    if ( my $components = $biblio->get_marc_components(300) ) {
664
        my $xslparts = C4::Context->preference('OPACXSLTResultsDisplay') || "default";
664
        my $parts;
665
        if ( $xslparts ) {
665
        for my $part ( @{$components} ) {
666
            my $parts;
666
            $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
667
            for my $part ( @{$components} ) {
667
668
                $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
668
            push @{$parts},
669
669
              XSLTParse4Display(
670
                push @{$parts},
670
                {
671
                  XSLTParse4Display( 1, $part, "OPACXSLTResultsDisplay", 1,
671
                    biblionumber => $biblionumber,
672
                    undef, $sysxml, $xslparts, $lang, );
672
                    record       => $part,
673
            }
673
                    xsl_syspref  => 'OPACXSLTResultsDisplay',
674
            $template->param(
674
                    fix_amps     => 1,
675
               ComponentParts => $parts
675
                }
676
            );
676
              );
677
        }
677
        }
678
        $template->param( ComponentParts => $parts );
678
    }
679
    }
679
}
680
}
680
681
681
- 

Return to bug 11175