Content Cafe can no longer retrieve cover images by UPC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Evergreen version 2.5.3b
Prior to 2.5, we were able to retrieve cover images by UPC from Content Cafe - see search results and record summaries on a 2.4 production system - http://
Starting with 2.5, we can no longer retrieve those images. See http://
By reverting the changes made in http://
Changed in evergreen: | |
assignee: | nobody → Jeff Godin (jgodin) |
ContentCafe doesn't differentiate between ISBN and UPC at the API level, so falling back to passing UPC should when no ISBN exists should suffice. Untested, but I believe this would work:
diff --git a/Open- ILS/src/ perlmods/ lib/OpenILS/ WWW/AddedConten t.pm b/Open- ILS/src/ perlmods/ lib/OpenILS/ WWW/AddedConten t.pm ILS/src/ perlmods/ lib/OpenILS/ WWW/AddedConten t.pm ILS/src/ perlmods/ lib/OpenILS/ WWW/AddedConten t.pm >$method( $keyhash) ; >$method( $keyhash- >{isbn} [0]); >$method( $keyhash- >{isbn} [0] || $keyhash- >{upc}[ 0]);
index e1c0bf0..5ed3b8f 100644
--- a/Open-
+++ b/Open-
@@ -173,7 +173,7 @@ sub handler {
$data = $handler-
} else {
# Pass single ISBN as a scalar to the handler
- $data = $handler-
+ $data = $handler-
}
} catch Error with {
$err = shift;