Bugzilla – Attachment 110432 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 weights if not advanced search
Bug-24155-Apply-weights-if-not-advanced-search.patch (text/plain), 1.72 KB, created by
Katrin Fischer
on 2020-09-20 17:59:12 UTC
(
hide
)
Description:
Bug 24155: Apply weights if not advanced search
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-09-20 17:59:12 UTC
Size:
1.72 KB
patch
obsolete
>From d2fb73e82774bee8f784de7fb4a3ca105e3d6dc1 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 weights if not advanced search > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 af822bf652..b6b38728d7 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -427,7 +427,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 99f26685a8..0e679dab34 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -532,7 +532,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