Bugzilla – Attachment 129607 Details for
Bug 26537
Search does not work when no term in value_builder/unimarc_field_4XX.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26537 : (follow-up) fix paging of results
Bug-26537--follow-up-fix-paging-of-results.patch (text/plain), 1.89 KB, created by
Thibaud Guillot (thibaud_g)
on 2022-01-19 13:40:50 UTC
(
hide
)
Description:
Bug 26537 : (follow-up) fix paging of results
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2022-01-19 13:40:50 UTC
Size:
1.89 KB
patch
obsolete
>From 956ada60dae66cb6de3ee52821142d1f6bb1f324 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Fri, 31 Dec 2021 09:12:22 +0100 >Subject: [PATCH] Bug 26537 : (follow-up) fix paging of results > >Also I renamed "es_query" variable for better understanding (this script >works with Elastic search but also Zebra) >--- > cataloguing/value_builder/unimarc_field_4XX.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/cataloguing/value_builder/unimarc_field_4XX.pl b/cataloguing/value_builder/unimarc_field_4XX.pl >index 8e80c64fe4..fceefc97e8 100755 >--- a/cataloguing/value_builder/unimarc_field_4XX.pl >+++ b/cataloguing/value_builder/unimarc_field_4XX.pl >@@ -343,8 +343,8 @@ sub plugin { > my $builder = Koha::SearchEngine::QueryBuilder->new({index => $Koha::SearchEngine::BIBLIOS_INDEX}); > my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::BIBLIOS_INDEX}); > >- my ($builderror, $es_query)= $builder->build_query_compat( undef, [$search], ['kw'], $limits, ['relevance']); >- my ( $errors, $results, $total_hits ) = $searcher->simple_search_compat($es_query, $startfrom * $resultsperpage, $resultsperpage ); >+ my ($builderror, $search_query)= $builder->build_query_compat( undef, [$search], ['kw'], $limits, ['relevance']); >+ my ( $errors, $results, $total_hits ) = $searcher->simple_search_compat($search_query, $startfrom * $resultsperpage, $resultsperpage ); > if (defined $errors ) { > $results = []; > } >@@ -441,7 +441,7 @@ sub plugin { > if ( $total_hits < $from + $resultsperpage ) { > $to = $total_hits; > }else{ >- $to = $startfrom * $resultsperpage + $resultsperpage ; >+ $to = $from * $resultsperpage ; > } > my $defaultview = > 'BiblioDefaultView' . C4::Context->preference('BiblioDefaultView'); >-- >2.25.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 26537
:
110756
|
111049
|
128930
|
128931
|
128932
|
128933
|
128934
|
128937
|
128938
|
129607
|
129646
|
129647
|
144858
|
144859