From: Lebbeous Fogle-Weekley Date: Wed, 17 Apr 2013 20:31:29 +0000 (-0400) Subject: TPAC: This expands the 'awards' tab by default on the record detail page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fba64a6f06c266877d99bc5cfc91eefc9bcb1562;p=evergreen%2Fequinox.git TPAC: This expands the 'awards' tab by default on the record detail page And it also gives you a framework for expanding other tabs by default. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index a6100f14f2..00e084a67d 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -1,6 +1,8 @@ [% arrow_img = ctx.media_prefix _ '/images/rdetail_arrow.png'; arrow_down_img = ctx.media_prefix _ '/images/rdetail_arrow_down.png'; + + expand_by_default = {"awards" => 1}; %]
@@ -25,6 +27,7 @@ MACRO tab_is_active(tab) BLOCK; exp_name = 'expand_' _ tab; IF ctx.$exp_name OR ctx.expand_all; 1; END; + IF expand_by_default.$tab AND NOT CGI.param('close_' _ tab); 1; END; END; # Let's see if we should hide the content cafe / simple summary content @@ -74,13 +77,19 @@