From: Terran McCanna Date: Wed, 24 May 2017 18:03:46 +0000 (-0400) Subject: PINES Customization: NoveList Added Content Attempt 2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=29fcb6618718a3748b2efd27479a87dfe7721e39;p=evergreen%2Fpines.git PINES Customization: NoveList Added Content Attempt 2 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 a1ba5e215f..c2ca17efa1 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -72,32 +72,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; %]