From fba64a6f06c266877d99bc5cfc91eefc9bcb1562 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Wed, 17 Apr 2013 16:31:29 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/record/extras.tt2 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 @@