From 3ceb90c09196ed80785ef05d483ca9ecaaa6905a 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 | 43 ++++++++++++---------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index fa063f74af..c2ca17efa1 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -72,35 +72,40 @@
- [% 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; - ELSIF !ctx.is_staff AND name == 'awards' AND !CGI.request_uri.match('expand'); + [% 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