Disable autosuggest for physical_dept ys
authorJeff Godin <jgodin@tadl.org>
Tue, 12 Mar 2013 19:59:30 +0000 (15:59 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 12 Mar 2013 19:59:30 +0000 (15:59 -0400)
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 <jgodin@tadl.org>
templates_tadlskin/opac/parts/header.tt2

index ba75412..2c2ff74 100644 (file)
     # 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;