Z39.50 local catalog fetch-more repairs
authorBill Erickson <berick@esilibrary.com>
Wed, 5 Oct 2011 13:39:47 +0000 (09:39 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 27 Oct 2011 16:04:57 +0000 (12:04 -0400)
commit0c2112774a42c8371ae3c170f9926ff8a1c1fb1c
treeae6be81d693b6b85719486a5867e0f42ee24bd6c
parent5bd210333705f8e339ddf4337b55fba8587b349a
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@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm