From 146ac5456d8f7a3bf711100fae49342c8d3781d3 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 4 Jan 2019 19:22:30 -0500 Subject: [PATCH] PINES Cust: Don't auto-open added content in staff client Novelist and Syndetics content will still automatically open in the OPAC but not in the staff client, which should improve client performance. Signed-off-by: Terran McCanna --- .../src/templates/opac/parts/record/extras.tt2 | 49 ++++++++++++++++------ 1 file changed, 36 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 5f35dddb15..8443b0ab7b 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -60,30 +60,53 @@ IF extra.hide; NEXT; END; name = extra.name; %] +
- [% IF tab_is_active(name) OR name == 'awards' OR name == 'addedcontent'; - IF name == 'marchtml'; - ctx.marchtml; - ELSE; - # Load the template for the selected extra - INCLUDE "opac/parts/record/${name}.tt2"; + [% + IF ctx.is_staff; + 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; + ELSE; + IF tab_is_active(name) OR name == 'awards' OR name == 'addedcontent'; + IF name == 'marchtml'; + ctx.marchtml; + ELSE; + # Load the template for the selected extra + INCLUDE "opac/parts/record/${name}.tt2"; + END; END; - END; + END; %]
[% END %] -- 2.11.0