From: Terran McCanna Date: Tue, 29 Apr 2014 18:12:23 +0000 (-0400) Subject: PINES Customization: NoveList Added Content Attempt 2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f97a1276e060afc712833e64e7969f1f9def1333;p=evergreen%2Fpines.git 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 --- 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; %]