LP#1411699: ensure that Dojo remains available for added content tab user/gmcharlt/lp1411699_signoff
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 17 May 2017 15:22:25 +0000 (11:22 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 17 May 2017 15:22:25 +0000 (11:22 -0400)
This patch is meant to avoid a (very minor) silent regression
introduced by the previous patch; ultimately, though, the
functionality of tweaking the visibility of added content types
in the added content tab should be rewritten to drop any
requirement of Dojo.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/parts/header.tt2

index f61db05..7a8e40d 100644 (file)
         want_dojo = 1;
     END;
 
+    # ... and for code that tweaks visibility of types on the added
+    # content tab
+    IF ctx.page == 'record' AND (ctx.expand_addedcontent OR ctx.expand_all);
+        want_dojo = 1;
+    END;
+
     use_autosuggest = ctx.get_cgf("opac.use_autosuggest");
 
     IF use_autosuggest.enabled == "t";