Bugzilla – Attachment 28791 Details for
Bug 8462
OpacHiddenItems and hidelostitems hide items, but query result count is off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8462 - OpacHiddenItems and hidelostitems hide items, but query result count is off
Bug-8462---OpacHiddenItems-and-hidelostitems-hide-.patch (text/plain), 1.57 KB, created by
Mark Tompsett
on 2014-06-11 22:23:46 UTC
(
hide
)
Description:
Bug 8462 - OpacHiddenItems and hidelostitems hide items, but query result count is off
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2014-06-11 22:23:46 UTC
Size:
1.57 KB
patch
obsolete
>From 80146a8412b4e8bce870997aa825aebddbfae7dd Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 11 Apr 2014 13:44:05 -0400 >Subject: [PATCH] Bug 8462 - OpacHiddenItems and hidelostitems hide items, but > query result count is off > >Both OpacHiddenItems and hidelostitems work, and Dobrica's recent patch >to remove the numbering if OpacHiddenItems is used is a swell idea >(hidelostitems needs that, too!), but in either event, the hit count at >the top of the result list is off. > >Test Plan: >1) Create 5 records with the titles "test 1" through "test 5" > with one item each >2) enable hidelostitems >3) Mark one of the items as lost >4) Rebuild your zebra index >5) Search for "test" >6) Note the results count is off >7) Apply this patch >8) Re-run the search >9) Note the results count is now correct >--- > opac/opac-search.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 990cbd0..2fb5790 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -561,6 +561,7 @@ for (my $i=0;$i<@servers;$i++) { > } else { > @newresults = searchResults('opac', $query_desc, $hits, $results_per_page, $offset, $scan, > $results_hashref->{$server}->{"RECORDS"}); >+ $hits = @newresults; > } > $hits = 0 unless @newresults; > >@@ -616,7 +617,7 @@ for (my $i=0;$i<@servers;$i++) { > } > } > >- if ($results_hashref->{$server}->{"hits"}){ >+ if ($hits) { > $total = $total + $hits; > } > >-- >1.7.9.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 8462
:
12004
|
12042
|
12586
|
12590
|
27038
|
27039
|
28791
|
28823