From 46d797f76c8ba3c433ec070d98886a4facfd726c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 9 Sep 2011 15:13:05 -0400 Subject: [PATCH] TPac: toggle expandy arrow image to down-arrow on expanded record extras tabs Signed-off-by: Bill Erickson --- Open-ILS/src/templates/opac/parts/record/extras.tt2 | 15 ++++++++++----- Open-ILS/web/images/rdetail_arrow_down.png | Bin 0 -> 439 bytes 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 Open-ILS/web/images/rdetail_arrow_down.png diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index 22751d2680..1d46a7ab7f 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -29,6 +29,11 @@ {name => 'marchtml', label => l('MARC Record')} ]; + MACRO tab_is_active(tab) BLOCK; + exp_name = 'expand_' _ tab; + IF ctx.$exp_name OR ctx.expand_all; 1; END; + END; + FOREACH extra IN extras; IF extra.hide; NEXT; END; name = extra.name; @@ -36,15 +41,15 @@
- [% exp_name = 'expand_' _ name; - IF ctx.$exp_name OR ctx.expand_all; + [% IF tab_is_active(name); IF name == 'marchtml'; ctx.marchtml; ELSE; diff --git a/Open-ILS/web/images/rdetail_arrow_down.png b/Open-ILS/web/images/rdetail_arrow_down.png new file mode 100644 index 0000000000000000000000000000000000000000..3dd6bfdf2148c87dad1ac4034caa607e5aa52928 GIT binary patch literal 439 zcmV;o0Z9IdP)QGh z+0YHr1LE0GMZ^L*Al`>=&}txNW*{9{1Ff(3{*(Pe)9 z`O8qh@-V}zk6%&5Gu@3COq350MZ)MZY%I(SS+060Vm?Mn3>K=AxLl~9c>IZ&9K%fLUL4p$1Z!)5OD-dr+Hs~%8 z`+;Jf1Vc_BXI$h=y90