TPAC: Protect against requests for non-existent records user/dbs/tpac_non-existent_records
authorDan Scott <dan@coffeecode.net>
Sun, 8 Apr 2012 22:13:26 +0000 (18:13 -0400)
committerDan Scott <dan@coffeecode.net>
Sun, 8 Apr 2012 22:17:18 +0000 (18:17 -0400)
commit5ec8534f4c1d719ad58ed1c83f374e5e653d3b23
tree5b6c78adc5039dcc220a0fbd386027c973d4b4d5
parent4643f3613ad57ad4cdcf99a9bf17faf4c63870af
TPAC: Protect against requests for non-existent records

If a record request is received for a record that does not exist (say,
if 100 records have been loaded and someone submits a request for
/eg/opac/record/399), rather than dying with a server error, return
immediately.

Eventually we'll want to provide an explicit "record was not
found error" in the TPAC record details; for now the TPAC just displays
zero bib detail.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm