projects
/
working
/
Evergreen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
324f270
)
Enable dojo in TPAC if using newer Novelist API
user/bshum/tpac-update-novelist
author
Ben Shum
<bshum@biblio.org>
Fri, 22 Feb 2013 05:03:58 +0000
(
00:03
-0500)
committer
Ben Shum
<bshum@biblio.org>
Fri, 22 Feb 2013 05:10:52 +0000
(
00:10
-0500)
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>
Open-ILS/src/templates/opac/parts/header.tt2
patch
|
blob
|
history
diff --git
a/Open-ILS/src/templates/opac/parts/header.tt2
b/Open-ILS/src/templates/opac/parts/header.tt2
index
4397e81
..
daa26e5
100644
(file)
--- 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;
%]