From 388199957a73bf63aebc88791f118e422e32bbc7 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Wed, 24 May 2017 14:03:46 -0400 Subject: [PATCH] PINES Customization: NoveList Added Content Attempt 2 Taking a different approach to displaying the NoveList content upon loading. Signed-off-by: Terran McCanna --- .../src/templates/opac/parts/record/extras.tt2 | 41 +++++++++++++--------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index 095c7824dd..b68d3da0ff 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -71,32 +71,39 @@
- [% IF tab_is_active(name) OR name == 'awards'; - 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