Enable dojo in TPAC if using newer Novelist API
authorBen Shum <bshum@biblio.org>
Fri, 22 Feb 2013 05:03:58 +0000 (00:03 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 15 Mar 2013 15:45:49 +0000 (11:45 -0400)
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 <bshum@biblio.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/parts/header.tt2

index 4397e81..daa26e5 100644 (file)
     IF ctx.google_books_preview;
         want_dojo = 1;
     END;
+
+    IF ENV.OILS_NOVELIST_URL;
+        want_dojo = 1;
+    END;
 %]