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)?
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 %] default/ opac/ac_ google_ books.js[ % ctx.cache_key %]' async defer></script>
<script src='[% ctx.media_prefix %]/js/ui/
[%- END %]
Just thinking aloud - does ctx.page == 'record' represent all records (even those to which one gets from search results)?