From: Sean C P. <sea...@ug...> - 2010-09-10 14:42:05
|
This may be unrelated, as I have not been following this thread closely, but in order to get the Google thumbnails working, I had to change this line: // convert \x26 to & $json = str_replace("\\x26", "&", $json); To this: // convert \u0026 to & $json = str_replace("\u0026", "&", $json); In the google method inside bookcover.php. Sean, University System of GA From: cb2317 [mailto:cb...@cs...] Sent: Thursday, September 09, 2010 12:11 PM To: vuf...@li... Subject: Re: [VuFind-Tech] Bookcover errors Another issue: ISBN:0803701071 (Dog Food Caper, The) on Google does not return a json 'thumbnail_url'. The bookcover.php code for it: ... if ($json = json_decode($json, true)) { return processImageURL($json['thumbnail_url'], false); } ... assumes that every result returns a 'thumbnail_url', even though that is not the case for some records, such as the one I just pointed out. As a result, I'm also getting errors "Undefined index: thumbnail_url" appearing in my error log. -Casey Boone, KLN, Shippensburg University |