Bugzilla – Attachment 10434 Details for
Bug 8233
New search engine layer - introduce solr without breaking anything else
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8233: Replace the given statement with for
Bug-8233-Replace-the-given-statement-with-for.patch (text/plain), 1.35 KB, created by
Jonathan Druart
on 2012-06-22 14:37:58 UTC
(
hide
)
Description:
Bug 8233: Replace the given statement with for
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-06-22 14:37:58 UTC
Size:
1.35 KB
patch
obsolete
>From 263c228b7cd44d2e5922d695cec235a48e87b329 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 22 Jun 2012 16:38:20 +0200 >Subject: [PATCH] Bug 8233: Replace the given statement with for > >--- > Koha/SearchEngine/Solr/QueryBuilder.pm | 2 +- > opac/opac-search.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/SearchEngine/Solr/QueryBuilder.pm b/Koha/SearchEngine/Solr/QueryBuilder.pm >index ba653b3..414d1e1 100644 >--- a/Koha/SearchEngine/Solr/QueryBuilder.pm >+++ b/Koha/SearchEngine/Solr/QueryBuilder.pm >@@ -43,7 +43,7 @@ sub build_advanced_query { > # And others > $index_name = @$indexes[$i] if @$indexes[$i]; > my $operator = defined @$operators[$i-1] ? @$operators[$i-1] : 'AND'; >- given ( uc ( $operator ) ) { >+ for ( uc ( $operator ) ) { > when ('OR'){ > $q .= BuildTokenString($index_name, $kw, 'OR'); > } >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 6976c8c..be7b6f6 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -30,7 +30,7 @@ use Modern::Perl; > use C4::Context; > > my $searchengine = C4::Context->preference("SearchEngine"); >-given ( $searchengine ) { >+for ( $searchengine ) { > when ( /^Solr$/ ) { > warn "We use Solr"; > require 'opac/search.pl'; >-- >1.7.7.3
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 8233
:
10257
|
10334
|
10335
|
10434
|
10459
|
10464
|
10465
|
10466
|
10467
|
10480
|
11126
|
11128
|
12290
|
12408