[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 6b3f2dee7a3454193914bf80e3c7a102d68b15e5
Evergreen Git
git at git.evergreen-ils.org
Thu Oct 27 12:10:26 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_0 has been updated
via 6b3f2dee7a3454193914bf80e3c7a102d68b15e5 (commit)
from 87d60457ef07ad45eeb3724c7865cfb0f811bcac (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 6b3f2dee7a3454193914bf80e3c7a102d68b15e5
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/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
index d83f0f6..005eb01 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
@@ -852,7 +852,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:
.../perlmods/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