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