From: Terran McCanna Date: Sat, 5 Jan 2019 00:22:30 +0000 (-0500) Subject: PINES Cust: Don't auto-open added content in staff client X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b1d10ed719a98b85ea364cae8876bba722347e6e;p=evergreen%2Fpines.git 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 --- diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index b35cf5471d..63ee22ff67 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -68,34 +68,53 @@ IF extra.hide; NEXT; END; name = extra.name; %] +
- [% 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; + 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; + 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 %]