TPAC: Protect against requests for non-existent records
authorDan Scott <dan@coffeecode.net>
Sun, 8 Apr 2012 22:13:26 +0000 (18:13 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 9 Apr 2012 19:17:02 +0000 (15:17 -0400)
commita7a0007367e895a39c250b4518d23f4a124e9ec8
treee59b9ea4c18d0585139ec0ff6989765e5d1676d7
parent3c71b24ffb06049587db24c7bd4d70d135e6f790
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>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm