Bugzilla – Attachment 73381 Details for
Bug 20261
No result in some page in authority search opac and pro (ES)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20261 - Fix pagination of the results in authority search
Bug-20261---Fix-pagination-of-the-results-in-autho.patch (text/plain), 1.52 KB, created by
Nicolas Legrand
on 2018-03-28 12:22:16 UTC
(
hide
)
Description:
Bug 20261 - Fix pagination of the results in authority search
Filename:
MIME Type:
Creator:
Nicolas Legrand
Created:
2018-03-28 12:22:16 UTC
Size:
1.52 KB
patch
obsolete
>From 9cc99befb58b424234e2dc560a644eda25b0d546 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@gmail.com> >Date: Wed, 28 Mar 2018 09:03:56 +0000 >Subject: [PATCH] Bug 20261 - Fix pagination of the results in authority search > >Test plan: > > - apply this patch, > - do a search that return more than 20 results, > - click on page 2, > - check that you get results, > - check other pages if possible > >Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> >--- > authorities/authorities-home.pl | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > >diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl >index 89142f2..7c46794 100755 >--- a/authorities/authorities-home.pl >+++ b/authorities/authorities-home.pl >@@ -94,18 +94,9 @@ if ( $op eq "do_search" ) { > [$marclist], [$and_or], [$excluding], [$operator], > [$value], $authtypecode, $orderby > ); >- my $offset = ( $startfrom - 1 ) * $resultsperpage + 1; >- my ( $results, $total ) = >- $searcher->search_auth_compat( $search_query, $offset, >- $resultsperpage ); >- #my ( $results, $total ) = SearchAuthorities( >- # [$marclist], [$and_or], >- # [$excluding], [$operator], >- # [$value], ( $startfrom - 1 ) * $resultsperpage, >- # $resultsperpage, $authtypecode, >- # $orderby >- #); >- >+ my ( $results, $total ) = $searcher->search_auth_compat( >+ $search_query, $startfrom, $resultsperpage >+ ); > > ( $template, $loggedinuser, $cookie ) = get_template_and_user( > { >-- >2.1.4
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 20261
:
73375
|
73381
|
73469