[% END # / IF loggedinusername %]
[% END # / IF opacuserlogin %]
[% END # / IF virtualshelves %]
[% IF Koha.Preference( 'virtualshelves' ) == 1 %][% END %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 || EnableOpacSearchHistory %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% UNLESS ( loggedinusername ) %]
[% IF Koha.Preference('casAuthentication') %]
[%# CAS authentication is too complicated for modal window %]