Fix broken ISBN cleaning, handle missing keys user/jeff/ac_by_record_id
authorJeff Godin <jgodin@tadl.org>
Wed, 2 May 2012 14:29:36 +0000 (10:29 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 2 May 2012 14:29:36 +0000 (10:29 -0400)
commita12aceb678007b7d17a4a404938a65a72754c149
tree22fbac8f285caa74597af4d271cd2efe079b7ccf
parent934cdd85e5487894d5e05d20fad6aee1d90ab40a
Fix broken ISBN cleaning, handle missing keys

Previous attempt at ISBN cleaning was broken. This approach
is not broken.

If we find no valid ISBN and no UPC values in the record,
do not attempt to call an AC handler. This will need
to change when we have AC handlers that rely on other
possible keys.

Caching improvement: serve from cache before fetching keys
from the bib record in the database.

Also:
* Fixed a stray "next" left over from an earlier re-factor.
* Removed some debugging.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm