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 660-679 my $max_items_to_display = C4::Context->preference('OpacMaxItemsToDisplay') // 5 Link Here
660
my $showcomp = C4::Context->preference('ShowComponentRecords');
660
my $showcomp = C4::Context->preference('ShowComponentRecords');
661
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
661
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
662
    if ( my $components = $biblio->get_marc_components(300) ) {
662
    if ( my $components = $biblio->get_marc_components(300) ) {
663
        my $xslparts = C4::Context->preference('OPACXSLTResultsDisplay') || "default";
663
        my $parts;
664
        if ( $xslparts ) {
664
        for my $part ( @{$components} ) {
665
            my $parts;
665
            $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
666
            for my $part ( @{$components} ) {
666
667
                $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
667
            push @{$parts},
668
668
              XSLTParse4Display(
669
                push @{$parts},
669
                {
670
                  XSLTParse4Display( 1, $part, "OPACXSLTResultsDisplay", 1,
670
                    biblionumber => $biblionumber,
671
                    undef, $sysxml, $xslparts, $lang, );
671
                    record       => $part,
672
            }
672
                    xsl_syspref  => 'OPACXSLTResultsDisplay',
673
            $template->param(
673
                    fix_amps     => 1,
674
               ComponentParts => $parts
674
                }
675
            );
675
              );
676
        }
676
        }
677
        $template->param( ComponentParts => $parts );
677
    }
678
    }
678
}
679
}
679
680
680
- 

Return to bug 11175