<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;
- ELSIF !ctx.is_staff AND name == 'awards' AND !CGI.request_uri.match('expand');
+ [% IF !CGI.request_uri.match('expand') AND !ctx.is_staff AND name == 'awards';
href = mkurl('', {}, ['expand', 'ac']);
- arrow = arrow_down;
- ELSE;
- IF name == 'addedcontent' AND default_ac;
- href = mkurl('', {expand => name, ac => default_ac}) _ '#' _ name;
+ arrow = arrow_down;
+ ELSE;
+ IF tab_is_active(name);
+ href = mkurl('', {}, ['expand', 'ac']);
+ arrow = arrow_down;
ELSE;
- href = mkurl('', {expand => name}) _ '#' _ name;
+ IF name == 'addedcontent' AND default_ac;
+ href = mkurl('', {expand => name, ac => default_ac}) _ '#' _ name;
+ ELSIF name == 'awards';
+ href = mkurl('', {}, ['expand', 'ac']);
+ ELSE;
+ href = mkurl('', {expand => name}) _ '#' _ name;
+ END;
+ 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) 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;
%]