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

Return to bug 20602