Google Books Search in Aleph OPAC does not return correct Book cover
- Article Type: General
- Product: Aleph
- Product Version: 21
- Relevant for Installation Type: Dedicated-Direct; Direct; Local; Total Care
Problem Symptoms:
Google Books displays wrong Book Cover for some records.
Cause:
Google sends back a set of results, not just one result.
Resolution:
Google books is using new APIs. The previous API sent only one cover picture, in accordance with ISBN or another control field. The new APIs are sending a list of books, when the relevant book is not always in the first place, therefore a wrong cover might appear.
To resolve this:
1. Change the text that appears between the <script></script> in ./www_f_lng/full-set-tail and ./www_f_lng/direct-tail with the text below:
// Function to process GBS info and update the dom.
function ProcessGBSBookInfo(booksInfo) {
var url_elem = document.getElementById("$0800");
var pic_elem = document.getElementById("google_book");
for (var items_idx = 0; items_idx < booksInfo.totalItems ; items_idx++)
{
var item = booksInfo.items[items_idx];
if(!item.volumeInfo || !item.volumeInfo.industryIdentifiers) {
continue;
}
url_elem.href = item.volumeInfo.infoLink;
url_elem.style.display = '';
if (item.volumeInfo.imageLinks.smallThumbnail)
{
//alert (item.volumeInfo.imageLinks.smallThumbnail);
pic_elem.src = item.volumeInfo.imageLinks.smallThumbnail;
pic_elem.style.display = '';
break;
}
}
}
2. Restart the Web Server (util w/3/1)
Additional Information
See the thread in http://exlibrisgroup.org/display/Ale...n+OPAC+results
Category: Web OPAC
Subject: html Pages (500)
- Article last edited: 8/17/2015