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 / +9 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 ($w_fields, $weight);
550
unless ( $cgi->param('advsearch') ) {
551
    ($w_fields, $weight) = Koha::SearchFields->weighted_fields();
552
}
553
548
## I. BUILD THE QUERY
554
## I. BUILD THE QUERY
549
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type)
555
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type)
550
  = $builder->build_query_compat(
556
  = $builder->build_query_compat( \@operators, \@operands,
551
    \@operators,
557
    \@indexes, \@limits, \@sort_by, 0, $lang,
552
    \@operands,
558
    { expanded_facet => $expanded_facet, suppress => $suppress, w_fields => @$w_fields, weight => @$weight } );
553
    \@indexes,
554
    \@limits,
555
    \@sort_by,
556
    0,
557
    $lang,
558
    { expanded_facet => $expanded_facet, suppress => $suppress }
559
    );
560
559
561
sub _input_cgi_parse {
560
sub _input_cgi_parse {
562
    my @elements;
561
    my @elements;
563
- 

Return to bug 20602