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

(-)a/C4/Search.pm (+3 lines)
Lines 963-968 sub _build_stemmed_operand { Link Here
963
    require Lingua::Stem::Snowball ;
963
    require Lingua::Stem::Snowball ;
964
    my $stemmed_operand=q{};
964
    my $stemmed_operand=q{};
965
965
966
    # Stemmer needs language
967
    return $operand unless $lang;
968
966
    # If operand contains a digit, it is almost certainly an identifier, and should
969
    # If operand contains a digit, it is almost certainly an identifier, and should
967
    # not be stemmed.  This is particularly relevant for ISBNs and ISSNs, which
970
    # not be stemmed.  This is particularly relevant for ISBNs and ISSNs, which
968
    # can contain the letter "X" - for example, _build_stemmend_operand would reduce
971
    # can contain the letter "X" - for example, _build_stemmend_operand would reduce
(-)a/acqui/neworderbiblio.pl (-1 / +4 lines)
Lines 64-69 use C4::Auth; Link Here
64
use C4::Output;
64
use C4::Output;
65
use C4::Koha;
65
use C4::Koha;
66
use C4::Budgets qw/ GetBudgetHierarchy /;
66
use C4::Budgets qw/ GetBudgetHierarchy /;
67
use C4::Languages qw(getlanguage);
67
68
68
use Koha::Acquisition::Booksellers;
69
use Koha::Acquisition::Booksellers;
69
use Koha::SearchEngine;
70
use Koha::SearchEngine;
Lines 83-88 my $booksellerid = $params->{'booksellerid'}; Link Here
83
my $basketno         = $params->{'basketno'};
84
my $basketno         = $params->{'basketno'};
84
my $sub              = $params->{'sub'};
85
my $sub              = $params->{'sub'};
85
my $bookseller       = Koha::Acquisition::Booksellers->find( $booksellerid );
86
my $bookseller       = Koha::Acquisition::Booksellers->find( $booksellerid );
87
my $lang             = C4::Languages::getlanguage($input);
86
88
87
# getting the template
89
# getting the template
88
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
90
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Lines 106-112 my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::BI Link Here
106
if ($QParser) {
108
if ($QParser) {
107
    $builtquery = $query;
109
    $builtquery = $query;
108
} else {
110
} else {
109
    ( undef,$builtquery,undef,undef,undef,undef,undef,undef,undef,undef) = $builder->build_query_compat(undef,\@operands);
111
        ( undef, $builtquery, undef, undef, undef, undef, undef, undef, undef, undef ) =
112
          $builder->build_query_compat( undef, \@operands, undef, undef, undef, 0, $lang );
110
}
113
}
111
my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page);
114
my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page);
112
115
(-)a/cataloguing/addbooks.pl (-2 / +4 lines)
Lines 32-37 use C4::Biblio; Link Here
32
use C4::Breeding;
32
use C4::Breeding;
33
use C4::Output;
33
use C4::Output;
34
use C4::Koha;
34
use C4::Koha;
35
use C4::Languages qw(getlanguage);
35
use C4::Search;
36
use C4::Search;
36
37
37
use Koha::BiblioFrameworks;
38
use Koha::BiblioFrameworks;
Lines 45-50 my $query = $input->param('q'); Link Here
45
my @value   = $input->multi_param('value');
46
my @value   = $input->multi_param('value');
46
my $page    = $input->param('page') || 1;
47
my $page    = $input->param('page') || 1;
47
my $results_per_page = 20;
48
my $results_per_page = 20;
49
my $lang = C4::Languages::getlanguage($input);
48
50
49
51
50
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
52
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Lines 74-80 if ($query) { Link Here
74
    if ($QParser) {
76
    if ($QParser) {
75
        $builtquery = $query;
77
        $builtquery = $query;
76
    } else {
78
    } else {
77
        ( undef,$builtquery,undef,undef,undef,undef,undef,undef,undef,undef) = $builder->build_query_compat(undef,\@operands);
79
        ( undef, $builtquery, undef, undef, undef, undef, undef, undef, undef, undef ) =
80
          $builder->build_query_compat( undef, \@operands, undef, undef, undef, 0, $lang );
78
    }
81
    }
79
    # find results
82
    # find results
80
    my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page);
83
    my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page);
81
- 

Return to bug 20151