[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 0c2112774a42c8371ae3c170f9926ff8a1c1fb1c
Evergreen Git
git at git.evergreen-ils.org
Thu Oct 27 12:10:27 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_1 has been updated
via 0c2112774a42c8371ae3c170f9926ff8a1c1fb1c (commit)
from 5bd210333705f8e339ddf4337b55fba8587b349a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0c2112774a42c8371ae3c170f9926ff8a1c1fb1c
Author: Bill Erickson <berick at esilibrary.com>
Date: Wed Oct 5 09:39:47 2011 -0400
Z39.50 local catalog fetch-more repairs
Fixes the following problem:
When paging through local catalog results in the Z39.50 interface,
paging off then end of the local results would result in an unknown
server error caused by trying to retrieve an empty list of records.
$list->{count} in this context is the overall hit count, not the counts
in the current page of results. Note also if {count} is zero, the list
of IDs will be undef, so we use both.
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Jason Etheridge <jason at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
index ed6b981..ff82f86 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
@@ -956,7 +956,7 @@ sub cat_search_z_style_wrapper {
my $list = the_quest_for_knowledge( $self, $client, $searchhash );
- if ($list->{count} > 0) {
+ if ($list->{count} > 0 and @{$list->{ids}}) {
$result->{count} = $list->{count};
my $records = $cstore->request(
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/Application/Search/Biblio.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list