From e75fa180c0abbeedbe907691cd0362e54282e428 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Tue, 12 Mar 2013 15:59:30 -0400 Subject: [PATCH] Disable autosuggest for physical_dept ys Disable autosuggest for physical_dept ys, since we'll soon be filtering that by shelving location and autosuggest will be suggesting content from other shelving locations. Signed-off-by: Jeff Godin --- templates_tadlskin/opac/parts/header.tt2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates_tadlskin/opac/parts/header.tt2 b/templates_tadlskin/opac/parts/header.tt2 index ba754129cc..2c2ff7423f 100644 --- a/templates_tadlskin/opac/parts/header.tt2 +++ b/templates_tadlskin/opac/parts/header.tt2 @@ -91,7 +91,10 @@ # defining that separately. want_dojo = 0; - use_autosuggest = ctx.get_cgf("opac.use_autosuggest"); + IF ctx.physical_dept == 'ys'; + ELSE; + use_autosuggest = ctx.get_cgf("opac.use_autosuggest"); + END; IF use_autosuggest.enabled == "t"; want_dojo = 1; -- 2.11.0