Finish Added Content by record ID
authorJeff Godin <jgodin@tadl.org>
Wed, 25 Apr 2012 08:23:28 +0000 (04:23 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 18 Sep 2013 15:25:19 +0000 (11:25 -0400)
commit182ef9ef74c59b0ddda73ea45c200a377dc8eaa2
treeb3c7d21f321f154ad78c861599712d40b2255acb
parent422c1bc6be9b0c3d7f3168ce62e5b0b67c872407
Finish Added Content by record ID

OpenILS::WWW::AddedContent now supports fetching content by record ID.

To start, this lets us request content in a way that uses both ISBN
and UPC as keys, assuming the AC handler and provider support it.

The previous method of requesting AC data continues to be
supported, and should be unaffected.

Business::ISBN is used to clean ISBN values when fetching by record ID

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.

Attempt to serve from cache before fetching keys from the bib
record in the database.

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