Bugzilla – Attachment 105042 Details for
Bug 24155
Weights should be (optionally) applied to Advanced search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24155: Apply wieghts if not advanced search
Bug-24155-Apply-wieghts-if-not-advanced-search.patch (text/plain), 1.61 KB, created by
Andrew Fuerste-Henry
on 2020-05-18 18:27:42 UTC
(
hide
)
Description:
Bug 24155: Apply wieghts if not advanced search
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2020-05-18 18:27:42 UTC
Size:
1.61 KB
patch
obsolete
>From c8731876207afeb8acadf0735d7b0072307fe3da Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 18 May 2020 17:32:43 +0000 >Subject: [PATCH] Bug 24155: Apply wieghts if not advanced search > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> >--- > catalogue/search.pl | 2 +- > opac/opac-search.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index e42092a09a..3617f726e8 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -472,7 +472,7 @@ my $count = C4::Context->preference('numSearchResults') || 20; > my $results_per_page = $params->{'count'} || $count; > my $offset = $params->{'offset'} || 0; > my $whole_record = $params->{'whole_record'} || 0; >-my $weight_search = $params->{'weight_search'} || 0; >+my $weight_search = $params->{'advsearch'} ? $params->{'weight_search'} || 0 : 1; > $offset = 0 if $offset < 0; > my $page = $cgi->param('page') || 1; > #my $offset = ($page-1)*$results_per_page; >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index b2a0453d09..d8669d9bdb 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -530,7 +530,7 @@ $offset = 0 if $offset < 0; > my $page = $cgi->param('page') || 1; > $offset = ($page-1)*$results_per_page if $page>1; > my $hits; >-my $weight_search = $cgi->param('weight_search') || 0; >+my $weight_search = $cgi->param('advsearch') ? $cgi->param('weight_search') || 0 : 1; > > # Define some global variables > my ($error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$query_type); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24155
:
99650
|
99667
|
100959
|
104441
|
105033
|
105038
|
105039
|
105041
|
105042
|
109264
|
109360
|
110405
|
110406
|
110407
|
110408
|
110409
|
110431
|
110432
|
110433
|
110434
|
111039