Bugzilla – Attachment 125434 Details for
Bug 28484
Elasticsearch fails to parse query if exclamation point is in 245$a
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28484: (QA follow-up) Add fix on OPAC
Bug-28484-QA-follow-up-Add-fix-on-OPAC.patch (text/plain), 1.28 KB, created by
Nick Clemens (kidclamp)
on 2021-09-28 20:36:35 UTC
(
hide
)
Description:
Bug 28484: (QA follow-up) Add fix on OPAC
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-09-28 20:36:35 UTC
Size:
1.28 KB
patch
obsolete
>From 54a75c4b892d25370767d45332950e387a730bab Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 28 Sep 2021 20:24:39 +0000 >Subject: [PATCH] Bug 28484: (QA follow-up) Add fix on OPAC > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > opac/opac-detail.pl | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index a9eb913f00..0860aa487a 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -83,6 +83,7 @@ use Koha::Plugins; > use Koha::Ratings; > use Koha::Reviews; > use Koha::SearchEngine::Search; >+use Koha::SearchEngine::QueryBuilder; > > > my $query = CGI->new(); >@@ -197,8 +198,14 @@ my $ean = GetNormalizedEAN( $record, $marcflavour ); > my $searcher = Koha::SearchEngine::Search->new( > { index => $Koha::SearchEngine::BIBLIOS_INDEX } > ); >+ my $builder = Koha::SearchEngine::QueryBuilder->new( >+ { index => $Koha::SearchEngine::BIBLIOS_INDEX } >+ ); >+ > my $cleaned_title = $biblio->title; > $cleaned_title =~ tr|/||; >+ $cleaned_title = $builder->clean_search_term($cleaned_title); >+ > my $query = > ( C4::Context->preference('UseControlNumber') and $record->field('001') ) > ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)' >-- >2.20.1
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 28484
:
123045
|
123607
|
124379
|
125433
| 125434 |
125435