Make Google Books Preview Honor Setting
authorDan Wells <dbw2@calvin.edu>
Wed, 27 Feb 2013 14:24:33 +0000 (09:24 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 11 Mar 2013 21:55:07 +0000 (17:55 -0400)
The new Google Book Preview was loading even if the setting was
off, provided some other 'want_dojo' feature was loaded. This
change will honor the setting regardless.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/js.tt2

index 07dfa9a..2302e59 100644 (file)
@@ -81,6 +81,6 @@
 [% END; # use_autosuggest %]
 
 [% INCLUDE "opac/parts/acjs.tt2" IF ctx.page == 'record' %]
-[% INCLUDE "opac/parts/ac_google_books.tt2" IF ctx.page == 'record' %]
+[% INCLUDE "opac/parts/ac_google_books.tt2" IF ctx.page == 'record' AND ctx.google_books_preview %]
 
 [%- END; # want_dojo -%]