From: Bill Erickson Date: Mon, 21 May 2012 18:32:39 +0000 (-0400) Subject: kpac: added content integration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=677b74880c07b465a9fecc4065e12663032363e7;p=evergreen%2Fequinox.git kpac: added content integration Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 b/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 index 6103703984..27f4dedcb3 100644 --- a/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 +++ b/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 @@ -1,12 +1,12 @@ -
- -[% + +
+[%- ac_types = { reviews => l('Reviews'), anotes => l('Author Notes'), toc => l('Table of Contents'), excerpt => l('Excerpt'), - summary => l('Summary') + summary => l('Smmary') }; selected_type = CGI.param('ac'); @@ -15,33 +15,30 @@ # content, do not render the link if it's known to not have content. If # the content status is unknown, render the link, but hide the link via CSS # if dojo is enabled. If dojo is not enabled, render and display the link. -%] +-%] -
- [% + [%- all_hidden = 1; FOR type IN ac_types.keys; - tab_class = 'ac_tab'; - SET tab_class = tab_class _ ' ac_tab_selected' IF type == selected_type; + tab_class = ''; + SET tab_class = 'ac_tab_selected' IF type == selected_type; IF ctx.added_content.$type.status != '2'; # no content all_hidden = 0; IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown tab_class = tab_class _ ' hidden'; END %] - + [% ac_types.$type %] [% END; END; %] -
+
 
+
-
+
[% IF selected_type; content = ctx.added_content.$selected_type.content; - '
'; IF content; content; ELSE; diff --git a/Open-ILS/web/css/skin/default/kpac/style.css b/Open-ILS/web/css/skin/default/kpac/style.css index ba050cea92..bc88132fa8 100755 --- a/Open-ILS/web/css/skin/default/kpac/style.css +++ b/Open-ILS/web/css/skin/default/kpac/style.css @@ -620,8 +620,7 @@ input[type=text], input[type=password], textarea { background:#e3e3e3; } -.item_detail_extras_tabs a, -.item_detail_extras_tabs div.selected { +.item_detail_extras_tabs a { display:block; float:left; padding:14px 35px; @@ -631,8 +630,8 @@ input[type=text], input[type=password], textarea { margin-right:10px; } -.item_detail_extras_tabs a.selected, -.item_detail_extras_tabs div.selected { +.item_detail_extras_tabs a.ac_tab_selected, +.item_detail_extras_tabs div.ac_tab_selected { background:white; color:#424242; }