From 6344454abfa560d849431a45fafebdc4f4ac157f Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Fri, 22 Feb 2013 00:03:58 -0500 Subject: [PATCH] Enable dojo in TPAC if using newer Novelist API Enable dojo if the apache variable for Novelist URL is set. This avoids issues such as needing to have dojo enabled via either AutoSuggest or Google Books preview, which may not be enabled by every TPAC. Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/header.tt2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/templates/opac/parts/header.tt2 b/Open-ILS/src/templates/opac/parts/header.tt2 index 4397e81d28..daa26e5d6d 100644 --- a/Open-ILS/src/templates/opac/parts/header.tt2 +++ b/Open-ILS/src/templates/opac/parts/header.tt2 @@ -100,4 +100,8 @@ IF ctx.google_books_preview; want_dojo = 1; END; + + IF ENV.OILS_NOVELIST_URL; + want_dojo = 1; + END; %] -- 2.11.0