Lines 248-261
if ( $op eq 'view' ) {
Link Here
|
248 |
|
248 |
|
249 |
my $borrower = GetMember( borrowernumber => $loggedinuser ); |
249 |
my $borrower = GetMember( borrowernumber => $loggedinuser ); |
250 |
|
250 |
|
|
|
251 |
my $xslfile = C4::Context->preference('OPACXSLTResultsDisplay'); |
252 |
my $lang = $xslfile ? C4::Languages::getlanguage() : undef; |
253 |
my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef; |
254 |
|
251 |
my @items; |
255 |
my @items; |
252 |
while ( my $content = $contents->next ) { |
256 |
while ( my $content = $contents->next ) { |
253 |
my $this_item; |
257 |
my $this_item; |
254 |
my $biblionumber = $content->biblionumber->biblionumber; |
258 |
my $biblionumber = $content->biblionumber->biblionumber; |
255 |
my $record = GetMarcBiblio($biblionumber); |
259 |
my $record = GetMarcBiblio($biblionumber); |
256 |
|
260 |
|
257 |
if ( C4::Context->preference("OPACXSLTResultsDisplay") ) { |
261 |
if ( $xslfile ) { |
258 |
$this_item->{XSLTBloc} = XSLTParse4Display( $biblionumber, $record, "OPACXSLTResultsDisplay" ); |
262 |
$this_item->{XSLTBloc} = XSLTParse4Display( $biblionumber, $record, "OPACXSLTResultsDisplay", |
|
|
263 |
1, undef, $sysxml, $xslfile, $lang); |
259 |
} |
264 |
} |
260 |
|
265 |
|
261 |
my $marcflavour = C4::Context->preference("marcflavour"); |
266 |
my $marcflavour = C4::Context->preference("marcflavour"); |