LP#1314370: Enable dojo all the time in the catalog
authorBen Shum <bshum@biblio.org>
Wed, 30 Apr 2014 06:02:49 +0000 (02:02 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 27 Aug 2014 04:35:48 +0000 (00:35 -0400)
Because we rely on the dojo framework for the shelving location filter in the
advanced search, we should choose to use dojo everywhere and not just when
autosuggest, google books, or novelist are enabled.

This is a quick change to toggle the flag for want_dojo to be set all the time.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/src/templates/opac/parts/header.tt2

index 7c9b95f..57c293c 100644 (file)
         END;
     END;
 
-    # Whether we want Dojo or not may one day be a wholly distinct
-    # concern from whether we want autosuggest, so let's get used to
-    # defining that separately.
-    want_dojo = 0;
+    # Dojo is required to use the copy locations advanced search filter,
+    # therefore, it should always be enabled.
+    want_dojo = 1;
 
     use_autosuggest = ctx.get_cgf("opac.use_autosuggest");