Lines 80-123
Link Here
|
80 |
</li> <!-- / .dropdown --> |
80 |
</li> <!-- / .dropdown --> |
81 |
[% END # / IF virtualshelves %] |
81 |
[% END # / IF virtualshelves %] |
82 |
</ul> <!-- / .nav --> |
82 |
</ul> <!-- / .nav --> |
83 |
[% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %] |
|
|
84 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 || opaclanguagesdisplay || EnableOpacSearchHistory %] |
85 |
<a id="user-menu-trigger" class="pull-right" href="#"><i class="fa fa-user fa-icon-white"></i> <span class="caret"></span></a> |
86 |
<div id="members"> |
87 |
<ul class="nav pull-right"> |
88 |
|
83 |
|
89 |
[% INCLUDE 'masthead-langmenu.inc' %] |
84 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 || Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %] |
90 |
|
85 |
|
91 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
86 |
<div id="members" class="pull-right"> |
92 |
[% UNLESS ( loggedinusername ) %] |
87 |
[% IF ( Koha.Preference( 'opaclanguagesdisplay' ) ) %] |
93 |
[% IF Koha.Preference('casAuthentication') %] |
88 |
[% INCLUDE 'masthead-langmenu.inc' %] |
94 |
[%# CAS authentication is too complicated for modal window %] |
89 |
[% END %] |
95 |
<li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li> |
90 |
<ul class="nav"> |
96 |
[% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %] |
91 |
<li class="dropdown"> |
97 |
<li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li> |
92 |
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %] |
|
|
93 |
[% IF ( loggedinusername ) %] |
94 |
<a href="#" class="dropdown-toggle" id="user-menu" data-toggle="dropdown" role="button"> |
95 |
<i class="fa fa-user fa-icon-white fa-fw"></i> |
96 |
<span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span> |
97 |
<b class="caret"></b> |
98 |
</a> |
98 |
[% ELSE %] |
99 |
[% ELSE %] |
99 |
<li><a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li> |
100 |
[% IF Koha.Preference('casAuthentication') %] |
|
|
101 |
[%# CAS authentication is too complicated for modal window %] |
102 |
<a class="login-link" href="/cgi-bin/koha/opac-user.pl"><i class="fa fa-user fa-icon-white fa-fw"></i> <span class="userlabel">Log in to your account</span></a> |
103 |
[% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %] |
104 |
<a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal"><i class="fa fa-user fa-icon-white fa-fw"></i> <span class="userlabel">Log in to your account</span></a> |
105 |
[% ELSE %] |
106 |
<a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal"><i class="fa fa-user fa-icon-white fa-fw"></i> <span class="userlabel">Log in to your account</span></a> |
107 |
[% END %] |
100 |
[% END %] |
108 |
[% END %] |
101 |
[% END %] |
109 |
[% END %] |
102 |
[% IF ( loggedinusername ) %] |
110 |
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 && loggedinusername ) %] |
103 |
<li><p class="members navbar-text">Welcome, <a class="login-link" href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername" data-borrowernumber="[% logged_in_user.borrowernumber | html %]" data-branchcode="[% logged_in_user.branchcode | html %]" >[% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span></a></p></li> |
111 |
<ul aria-labelledby="user-menu" role="menu" class="dropdown-menu dropdown-menu-right"> |
104 |
<li class="divider-vertical"></li> |
112 |
<li role="presentation"> |
|
|
113 |
<div id="loggedinuser-menu"> |
114 |
<p> |
115 |
<a class="login-link" href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername" data-borrowernumber="[% logged_in_user.borrowernumber | html %]" data-branchcode="[% logged_in_user.branchcode | html %]" >Your account</span></a> |
116 |
</p> |
117 |
[% IF Koha.Preference( 'EnableOpacSearchHistory' ) %] |
118 |
<p class="search_history"> |
119 |
<a tabindex="-1" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> |
120 |
<span class="divider-vertical"></span> |
121 |
<a class="logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash"></i> Clear</a> |
122 |
</p> |
123 |
[% END %] |
124 |
<p> |
125 |
<a tabindex="-1" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1"> |
126 |
Log out</a> |
127 |
</p> |
128 |
</div> |
129 |
</li> |
130 |
</ul> |
105 |
[% END %] |
131 |
[% END %] |
106 |
[% END %] |
132 |
</li> |
107 |
[% IF EnableOpacSearchHistory %] |
133 |
[% IF ( !Koha.Preference( 'opacuserlogin') || !loggedinusername ) %] |
108 |
<li><p class="navbar-text"><a class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a class="logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history">x</a>]</p></li> |
134 |
[% IF Koha.Preference( 'EnableOpacSearchHistory' ) %] |
109 |
<li class="divider-vertical"></li> |
135 |
<li class="search_history"> |
110 |
[% END %] |
136 |
<a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> |
111 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
137 |
<span class="divider-vertical"></span> |
112 |
[% IF ( loggedinusername ) %] |
138 |
<a class="logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash"></i> Clear</a> |
113 |
<li><p class="navbar-text"> |
139 |
</li> |
114 |
<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1"> |
|
|
115 |
Log out</a></p></li> |
116 |
[% END %] |
140 |
[% END %] |
117 |
[% END %] |
141 |
[% END %] |
118 |
</ul> |
142 |
</ul> |
119 |
</div> <!-- /members --> |
143 |
</div> <!-- /members --> |
120 |
[% END # IF opacuserlogin %] |
144 |
[% END # IF opacuserlogin || EnableOpacSearchHistory || opaclanguagesdisplay %] |
|
|
145 |
|
121 |
</div> <!-- /container-fluid --> |
146 |
</div> <!-- /container-fluid --> |
122 |
</div> <!-- /navbar-inner --> |
147 |
</div> <!-- /navbar-inner --> |
123 |
</div> <!-- /navbar --> |
148 |
</div> <!-- /navbar --> |