From: Bill Erickson Date: Fri, 9 Sep 2011 19:13:05 +0000 (-0400) Subject: TPac: toggle expandy arrow image to down-arrow on expanded record extras tabs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5f7f491eacb7cfc216d6f81fcad6b99dc072f505;p=evergreen%2Fequinox.git TPac: toggle expandy arrow image to down-arrow on expanded record extras tabs Signed-off-by: Bill Erickson --- 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 0000000000..3dd6bfdf21 Binary files /dev/null and b/Open-ILS/web/images/rdetail_arrow_down.png differ diff --git a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 index a800317f70..3c38dc39b6 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 @@ -30,6 +30,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; @@ -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;