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

(-)a/opac/opac-shelves.pl (-2 / +7 lines)
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");
(-)a/virtualshelves/shelves.pl (-3 / +7 lines)
Lines 215-228 if ( $op eq 'view' ) { Link Here
215
215
216
            my $borrower = GetMember( borrowernumber => $loggedinuser );
216
            my $borrower = GetMember( borrowernumber => $loggedinuser );
217
217
218
            my $xslfile = C4::Context->preference('XSLTResultsDisplay');
219
            my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
220
            my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
221
218
            my @items;
222
            my @items;
219
            while ( my $content = $contents->next ) {
223
            while ( my $content = $contents->next ) {
220
                my $this_item;
224
                my $this_item;
221
                my $biblionumber = $content->biblionumber->biblionumber;
225
                my $biblionumber = $content->biblionumber->biblionumber;
222
                my $record       = GetMarcBiblio($biblionumber);
226
                my $record       = GetMarcBiblio($biblionumber);
223
227
224
                if ( C4::Context->preference("XSLTResultsDisplay") ) {
228
                if ( $xslfile ) {
225
                    $this_item->{XSLTBloc} = XSLTParse4Display( $biblionumber, $record, "XSLTResultsDisplay" );
229
                    $this_item->{XSLTBloc} = XSLTParse4Display( $biblionumber, $record, "XSLTResultsDisplay",
230
                                                                1, undef, $sysxml, $xslfile, $lang);
226
                }
231
                }
227
232
228
                my $marcflavour = C4::Context->preference("marcflavour");
233
                my $marcflavour = C4::Context->preference("marcflavour");
229
- 

Return to bug 15263