Comment 5 for bug 1791791

Linda Jansova (skolkova-s) wrote :

It appears that Google Books previews are displayed via ac_google_books.js which is linked from templates/opac/parts/js.tt2:

[%- IF ctx.page == 'record' AND ctx.google_books_preview %]
<script src='[% ctx.media_prefix %]/js/ui/default/opac/ac_google_books.js[% ctx.cache_key %]' async defer></script>
[%- END %]

Just thinking aloud - does ctx.page == 'record' represent all records (even those to which one gets from search results)?