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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (+1 lines)
Lines 10-15 Link Here
10
[% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %]
10
[% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %]
11
[% INCLUDE 'masthead.inc' %]
11
[% INCLUDE 'masthead.inc' %]
12
<form action="/cgi-bin/koha/opac-search.pl" method="get">
12
<form action="/cgi-bin/koha/opac-search.pl" method="get">
13
    <input type="hidden" name="advsearch" value="1"/>
13
    <div class="main">
14
    <div class="main">
14
        <ul class="breadcrumb">
15
        <ul class="breadcrumb">
15
            <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
16
            <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
(-)a/opac/opac-search.pl (-11 / +12 lines)
Lines 57-62 use Koha::Ratings; Link Here
57
use Koha::Virtualshelves;
57
use Koha::Virtualshelves;
58
use Koha::Library::Groups;
58
use Koha::Library::Groups;
59
use Koha::Patrons;
59
use Koha::Patrons;
60
use Koha::SearchFields;
60
61
61
use POSIX qw(ceil floor strftime);
62
use POSIX qw(ceil floor strftime);
62
use URI::Escape;
63
use URI::Escape;
Lines 546-563 if (C4::Context->preference('OpacSuppression')) { Link Here
546
    }
547
    }
547
}
548
}
548
549
550
my $build_params = {
551
    expanded_facet => $expanded_facet,
552
    suppress => $suppress
553
};
554
555
unless ( $cgi->param('advsearch') ) {
556
    $build_params->{weighted_fields} = 1;
557
}
558
549
## I. BUILD THE QUERY
559
## I. BUILD THE QUERY
550
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type)
560
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type)
551
  = $builder->build_query_compat(
561
  = $builder->build_query_compat( \@operators, \@operands,
552
    \@operators,
562
    \@indexes, \@limits, \@sort_by, 0, $lang, $build_params);
553
    \@operands,
554
    \@indexes,
555
    \@limits,
556
    \@sort_by,
557
    0,
558
    $lang,
559
    { expanded_facet => $expanded_facet, suppress => $suppress }
560
    );
561
563
562
sub _input_cgi_parse {
564
sub _input_cgi_parse {
563
    my @elements;
565
    my @elements;
564
- 

Return to bug 20602