IF extra.hide; NEXT; END;
name = extra.name;
%]
+<!-- PINES: Extensive Customizations to force added content to be expanded automatically in OPAC but not in client -->
<div class="rdetail_extras">
<div class="rdetail_extras_hr"></div>
<div class="rdetail_extras_link">
- [%
- IF tab_is_active(name);
- href = mkurl('', {}, ['expand', 'ac']);
- arrow = arrow_down;
+ [%
+ IF ctx.is_staff;
+ IF tab_is_active(name);
+ href = mkurl('', {}, ['expand', 'ac']);
+ arrow = arrow_down;
+ ELSE;
+ href = mkurl('', {expand => name}) _ '#' _ name;
+ arrow = arrow_right;
+ END;
ELSE;
- IF name == 'addedcontent' AND default_ac;
- href = mkurl('', {expand => name, ac => default_ac}) _ '#' _ name;
+ IF tab_is_active(name) OR name == 'awards' OR name == 'addedcontent';
+ href = mkurl('', {}, ['expand', 'ac']);
+ arrow = arrow_down;
ELSE;
- href = mkurl('', {expand => name}) _ '#' _ name;
+ href = mkurl('', {expand => name}) _ '#' _ name;
+ arrow = arrow_right;
END;
- arrow = arrow_right;
END;
%]
<a name='[% name %]' href='[% href %]' class="rdetail_extras_lbl" rel="nofollow" vocab="">[% arrow %] [% extra.label | html %]</a>
</div>
</div>
<div class='rdetail_extras_div'>
- [% 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;
%]
</div>
[% END %]