Bugzilla – Attachment 8890 Details for
Bug 7894
Broken detail page for first link on page 2 from search result page in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 7894 [SIGNED-OFF]: crude fix: convert results array into an arrayref
bug-7894-SIGNED-OFF-crude-fix-convert-results-arra.patch (text/plain), 1.62 KB, created by
Magnus Enger
on 2012-04-04 21:37:34 UTC
(
hide
)
Description:
bug 7894 [SIGNED-OFF]: crude fix: convert results array into an arrayref
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2012-04-04 21:37:34 UTC
Size:
1.62 KB
patch
obsolete
>From 37f3dd5fc0895cb04e5de794d49ff1f58036ff4d Mon Sep 17 00:00:00 2001 >From: MJ Ray <mjr@phonecoop.coop> >Date: Wed, 4 Apr 2012 10:23:06 +0100 >Subject: [PATCH] bug 7894 [SIGNED-OFF]: crude fix: convert results array into an arrayref >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Magnus Enger <magnus@enger.priv.no> >This patch fixes the problem with the first record on the second >page, but there is still a problem with the next/previous links, >as described in comments 3 and 4 in the bug report. I'm signing >off since it's unclear wether that problem is directly linked to >the "first record on the second page" problem, and a partial fix >seems better than no fix at all. > >Signed-off-by: Magnus Enger <magnus@enger.priv.no> >--- > opac/opac-detail.pl | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index a00e976..796f3b0 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -148,7 +148,8 @@ if ($session->param('busc')) { > for (my $i=0;$i<@servers;$i++) { > my $server = $servers[$i]; > $hits = $results_hashref->{$server}->{"hits"}; >- @newresults = searchResults('opac', '', $hits, $results_per_page, $offset, $arrParamsBusc->{'scan'}, @{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems')); >+ my @records = $results_hashref->{$server}->{"RECORDS"}; >+ @newresults = searchResults('opac', '', $hits, $results_per_page, $offset, $arrParamsBusc->{'scan'}, \@records,, C4::Context->preference('hidelostitems')); > } > return \@newresults; > }#searchAgain >-- >1.7.2.5
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 7894
:
8859
|
8889
| 8890