Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Google Books Search in Aleph OPAC does not return correct Book cover

    Google Books Search in Aleph OPAC does not return correct Book cover

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Google Books Search alternative script
      • Grace period not functioning correctly for hourly items
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 21
      2. contype:kba
      3. Dedicated-Direct
      4. Direct
      5. html Pages (500)
      6. Local
      7. Prod:Aleph
      8. Total Care
      9. Type:General
      10. Web OPAC
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved