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

(-)a/catalogue/detail.pl (-13 / +14 lines)
Lines 214-233 foreach my $subscription (@subscriptions) { Link Here
214
my $showcomp = C4::Context->preference('ShowComponentRecords');
214
my $showcomp = C4::Context->preference('ShowComponentRecords');
215
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
215
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
216
    if ( my $components = $biblio->get_marc_components(300) ) {
216
    if ( my $components = $biblio->get_marc_components(300) ) {
217
        my $xslparts = C4::Context->preference('XSLTResultsDisplay') || "default";
217
        my $parts;
218
        if ( $xslparts ) {
218
        for my $part ( @{$components} ) {
219
            my $parts;
219
            $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
220
            for my $part ( @{$components} ) {
220
221
                $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
221
            push @{$parts},
222
222
              XSLTParse4Display(
223
                push @{$parts},
223
                {
224
                  XSLTParse4Display( 1, $part, "XSLTResultsDisplay", 1,
224
                    biblionumber => $biblionumber,
225
                    undef, $sysxml, $xslparts, $lang, );
225
                    record       => $part,
226
            }
226
                    xsl_syspref  => "XSLTResultsDisplay",
227
            $template->param(
227
                    fix_amps     => 1,
228
               ComponentParts => $parts
228
                }
229
            );
229
              );
230
        }
230
        }
231
        $template->param( ComponentParts => $parts );
231
    }
232
    }
232
}
233
}
233
234
(-)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