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

(-)a/C4/Search.pm (-19 / +1 lines)
Lines 1783-1789 sub searchResults { Link Here
1783
	my $interface = $search_context eq 'opac' ? 'OPAC' : '';
1783
	my $interface = $search_context eq 'opac' ? 'OPAC' : '';
1784
	if (!$scan && C4::Context->preference($interface . "XSLTResultsDisplay")) {
1784
	if (!$scan && C4::Context->preference($interface . "XSLTResultsDisplay")) {
1785
            $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, 'Results',
1785
            $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, 'Results',
1786
                                                                $search_context, 1);
1786
                                                                $search_context, 1, \@hiddenitems);
1787
	    # the last parameter tells Koha to clean up the problematic ampersand entities that Zebra outputs
1787
	    # the last parameter tells Koha to clean up the problematic ampersand entities that Zebra outputs
1788
        }
1788
        }
1789
1789
Lines 1842-1864 sub searchResults { Link Here
1842
            $oldbiblio->{'alternateholdings_count'} = $alternateholdingscount;
1842
            $oldbiblio->{'alternateholdings_count'} = $alternateholdingscount;
1843
        }
1843
        }
1844
1844
1845
       # XSLT processing of some stuff
1846
        if (!$scan && $search_context eq 'opac' && C4::Context->preference("OPACXSLTResultsDisplay")) {
1847
            SetUTF8Flag($marcrecord);
1848
            $debug && warn $marcrecord->as_formatted;
1849
            # FIXME note that XSLTResultsDisplay (use of XSLT to format staff interface bib search results)
1850
            # is not implemented yet
1851
            $oldbiblio->{XSLTResultsRecord}
1852
              = XSLTParse4Display($oldbiblio->{biblionumber},
1853
                                  $marcrecord,
1854
                                  'Results',
1855
                                  $search_context,
1856
                                  1, # clean up the problematic ampersand entities that Zebra outputs
1857
                                  \@hiddenitems
1858
                                );
1859
1860
        }
1861
1862
        push( @newresults, $oldbiblio );
1845
        push( @newresults, $oldbiblio );
1863
    }
1846
    }
1864
1847
1865
- 

Return to bug 6919