Skip to main content
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    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.

    Google sends back a set of results, not just one result.

    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) {
    url_elem.href = item.volumeInfo.infoLink; = '';
    if (item.volumeInfo.imageLinks.smallThumbnail)
    //alert (item.volumeInfo.imageLinks.smallThumbnail);
    pic_elem.src = item.volumeInfo.imageLinks.smallThumbnail; = '';

    2. Restart the Web Server (util w/3/1)

    Additional Information

    See the thread in

    Category: Web OPAC

    Subject: html Pages (500)

    • Article last edited: 8/17/2015