Fix broken ISBN cleaning, handle missing keys
authorJeff Godin <jgodin@tadl.org>
Wed, 2 May 2012 14:29:36 +0000 (10:29 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 12 Dec 2012 15:50:37 +0000 (10:50 -0500)
commit08f89e2cb43e4b45a2f78d6e20f2e822b4c234e3
treecaefdc8e9d44534f73addd756c656ac5ae5cdb30
parentf333b383f33596b715564c3f391342365eef288d
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