From 5f7f491eacb7cfc216d6f81fcad6b99dc072f505 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/web/images/rdetail_arrow_down.png | Bin 0 -> 439 bytes .../web/templates/default/opac/parts/record/extras.tt2 | 15 ++++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 Open-ILS/web/images/rdetail_arrow_down.png 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 '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; @@ -37,15 +42,15 @@
- [% exp_name = 'expand_' _ name; - IF ctx.$exp_name OR ctx.expand_all; + [% IF tab_is_active(name); IF name == 'marchtml'; ctx.marchtml; ELSE; -- 2.11.0