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 |
- |
|
|