From 6273f1ddae68d48322144d11d06b1034580e153e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 17 May 2017 11:22:25 -0400 Subject: [PATCH] LP#1411699: ensure that Dojo remains available for added content tab 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 Signed-off-by: Bill Erickson --- Open-ILS/src/templates/opac/parts/header.tt2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/src/templates/opac/parts/header.tt2 b/Open-ILS/src/templates/opac/parts/header.tt2 index f61db05f16..7a8e40d8d9 100644 --- a/Open-ILS/src/templates/opac/parts/header.tt2 +++ b/Open-ILS/src/templates/opac/parts/header.tt2 @@ -111,6 +111,12 @@ 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"; -- 2.11.0