TPAC: repair staff client End link for showing last record collab/berick/tpac-record-detail-paging-fix
authorBill Erickson <berick@esilibrary.com>
Fri, 4 May 2012 16:07:35 +0000 (12:07 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 4 May 2012 16:11:33 +0000 (12:11 -0400)
commitf728d056038b939d86889ed0ff6199d5b7f6dd0f
treecf60881517eadb589b5a4bb1898999252d36be4e
parentd95455fe63c2babdb0632bcf7a5d740173523d7c
TPAC: repair staff client End link for showing last record

In the embedded TPAC, when staff clicks the End link in the record
detail page to jump to the last record in the search results, it now
makes an intermediate jump through search code, which locates the last
record in the set (via CGI param find_last) then redirects to the record
detail page for the last record.  With this approach, we don't have to
pre-fetch the entire set of record IDs just to render the paging links.
Tip o' the hat to Mike R. for the design suggestion.

https://bugs.launchpad.net/evergreen/+bug/984070

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
Open-ILS/src/templates/opac/parts/js.tt2