[% INCLUDE "opac/i18n_strings.tt2" %] [% IF ctx.want_jquery %] [% END; # ctx.want_jquery %] [%- IF ctx.use_stripe %] [% END -%] [%- IF ctx.is_staff %] [% IF ctx.page == 'record' %] [% IF ctx.search_result_index >= 0 %] [% END %] [% IF ctx.mfhd_summaries.size %] [% END %] [% END %] [%- END %] [%- IF ENV.OILS_NOVELIST_URL AND ctx.page == 'record'; url = ENV.OILS_NOVELIST_URL; IF CGI.https; url = url.replace('^http:', 'https:'); END; %] [%- END %] [%- IF ctx.page == 'record' AND ctx.google_books_preview %] [%- END %] [% IF ctx.page == 'place_hold' %] [% END %] [%- IF want_dojo; -%] [%- # So the following works in Mozilla and Chrome, but not in IE8. # Seems like it /should/ work anywhere, though, and obviate the # next three script tags: %] [% IF use_autosuggest.enabled == "t" AND basic_search != "f"; %] [% END; # use_autosuggest %] [% INCLUDE "opac/parts/acjs.tt2" IF ctx.page == 'record' %] [% IF ctx.page == 'advanced' %] [% END %] [% IF ebook_api.enabled == 'true' %] [% INCLUDE "opac/parts/ebook_api/base_js.tt2" %] [% INCLUDE "opac/parts/ebook_api/login_js.tt2" IF (ctx.page == 'login') %] [% END %] [%- END; # want_dojo -%] [%- IF ctx.max_cart_size; %] [%- END; %]