[% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %]
[% INCLUDE 'masthead.inc' %]
<form action="/cgi-bin/koha/opac-search.pl" method="get">
+ <input type="hidden" name="advsearch" value="1"/>
<div class="main">
<ul class="breadcrumb">
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
use Koha::Virtualshelves;
use Koha::Library::Groups;
use Koha::Patrons;
+use Koha::SearchFields;
use POSIX qw(ceil floor strftime);
use URI::Escape;
}
}
+my $build_params = {
+ expanded_facet => $expanded_facet,
+ suppress => $suppress
+};
+
+unless ( $cgi->param('advsearch') ) {
+ $build_params->{weighted_fields} = 1;
+}
+
## I. BUILD THE QUERY
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type)
- = $builder->build_query_compat(
- \@operators,
- \@operands,
- \@indexes,
- \@limits,
- \@sort_by,
- 0,
- $lang,
- { expanded_facet => $expanded_facet, suppress => $suppress }
- );
+ = $builder->build_query_compat( \@operators, \@operands,
+ \@indexes, \@limits, \@sort_by, 0, $lang, $build_params);
sub _input_cgi_parse {
my @elements;