From 0067a9da89827e1e84be3de009fcdbcefcfd8eab Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Tue, 29 Apr 2014 14:12:23 -0400 Subject: [PATCH] PINES Customization: NoveList Added Content Attempt 2 Forced Awards & Suggested Reads tab to always be open in order to highlight NoveList Select content. Taking a different approach to displaying the NoveList content upon loading. Signed-off-by: Terran McCanna --- .../src/templates/opac/parts/record/extras.tt2 | 36 ++++++++++++++-------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index b35cf5471d..45fb5b02d9 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -1,4 +1,4 @@ -[% + [% arrow_right = '►'; arrow_down = '▼'; %] @@ -71,29 +71,39 @@
- [% IF tab_is_active(name); - IF name == 'marchtml'; - ctx.marchtml; - ELSE; - # Load the template for the selected extra - INCLUDE "opac/parts/record/${name}.tt2"; + [% IF !ctx.is_staff AND name == 'awards' AND !CGI.request_uri.match('expand'); + INCLUDE "opac/parts/record/awards.tt2"; + ELSE; + IF tab_is_active(name); + IF name == 'marchtml'; + ctx.marchtml; + ELSE; + # Load the template for the selected extra + INCLUDE "opac/parts/record/${name}.tt2"; + END; END; END; %] -- 2.11.0