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

(-)a/C4/Search.pm (-1 / +11 lines)
Lines 33-38 use Koha::AuthorisedValues; Link Here
33
use Koha::ItemTypes;
33
use Koha::ItemTypes;
34
use Koha::Libraries;
34
use Koha::Libraries;
35
use Koha::Patrons;
35
use Koha::Patrons;
36
use Koha::RecordProcessor;
36
use YAML;
37
use YAML;
37
use URI::Escape;
38
use URI::Escape;
38
use Business::ISBN;
39
use Business::ISBN;
Lines 1690-1695 sub searchResults { Link Here
1690
        $is_opac       = 1;
1691
        $is_opac       = 1;
1691
    }
1692
    }
1692
1693
1694
    my $record_processor = Koha::RecordProcessor->new({
1695
        filters => 'ViewPolicy'
1696
    });
1697
1693
    #Build branchnames hash
1698
    #Build branchnames hash
1694
    my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' });
1699
    my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' });
1695
1700
Lines 2087-2092 sub searchResults { Link Here
2087
        # XSLT processing of some stuff
2092
        # XSLT processing of some stuff
2088
        # we fetched the sysprefs already before the loop through all retrieved record!
2093
        # we fetched the sysprefs already before the loop through all retrieved record!
2089
        if (!$scan && $xslfile) {
2094
        if (!$scan && $xslfile) {
2095
            $record_processor->options({
2096
                frameworkcode => $fw,
2097
                interface     => $search_context->{'interface'}
2098
            });
2099
2100
            $record_processor->process($marcrecord);
2090
            $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, $xslsyspref, 1, \@hiddenitems, $sysxml, $xslfile, $lang, $xslt_variables);
2101
            $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, $xslsyspref, 1, \@hiddenitems, $sysxml, $xslfile, $lang, $xslt_variables);
2091
        }
2102
        }
2092
2103
2093
- 

Return to bug 24458