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=46d797f76c8ba3c433ec070d98886a4facfd726c;p=contrib%2FConifer.git TPac: toggle expandy arrow image to down-arrow on expanded record extras tabs Signed-off-by: Bill Erickson --- 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 0000000000..3dd6bfdf21 Binary files /dev/null and b/Open-ILS/web/images/rdetail_arrow_down.png differ