Bug 31743: Change condition for messaging tab
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / usermenu.inc
1 [% USE Koha %]
2 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
3     <div id="menu">
4         <ul>
5             [% IF ( userview ) %]
6                 <li class="active">
7             [% ELSE %]
8                 <li>
9             [% END %]
10                 <a href="/cgi-bin/koha/opac-user.pl">Summary</a></li>
11             [% IF ( OPACFinesTab ) %]
12                 [% IF ( accountview ) %]
13                     <li class="active">
14                 [% ELSE %]
15                     <li>
16                 [% END %]
17                 <a href="/cgi-bin/koha/opac-account.pl">Charges</a></li>
18             [% END %]
19
20             [% IF ( userupdateview ) %]
21                 <li class="active">
22             [% ELSE %]
23                 <li>
24             [% END %]
25                 <a href="/cgi-bin/koha/opac-memberentry.pl">Personal details</a></li>
26
27             [% IF Koha.Preference('GDPR_Policy') # remove when extending %]
28                 [% IF consentview %]<li class="active">[% ELSE %]<li>[% END %]
29                     <a href="/cgi-bin/koha/opac-patron-consent.pl">Consents</a>
30                 </li>
31             [% END %]
32
33             [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
34                 [% IF ( tagsview ) %]
35                     <li class="active">
36                 [% ELSE %]
37                     <li>
38                 [% END %]
39                 <a href="/cgi-bin/koha/opac-tags.pl?mine=1">Tags</a></li>
40             [% END %]
41
42             [% IF logged_in_user.category.effective_change_password %]
43                 [% IF ( passwdview ) %]
44                     <li class="active">
45                 [% ELSE %]
46                     <li>
47                 [% END %]
48                 <a href="/cgi-bin/koha/opac-passwd.pl">Change password</a></li>
49             [% END %]
50
51             [% IF EnableOpacSearchHistory %]
52                 [% IF ( searchhistoryview ) %]
53                     <li class="active">
54                 [% ELSE %]
55                     <li>
56                 [% END %]
57                 <a href="/cgi-bin/koha/opac-search-history.pl">Search history</a></li>
58             [% END %]
59
60             [% IF ( opacreadinghistory ) %]
61                 [% IF ( readingrecview ) %]
62                     <li class="active">
63                 [% ELSE %]
64                     <li>
65                 [% END %]
66                 <a href="/cgi-bin/koha/opac-readingrecord.pl">Checkout history</a></li>
67                 [% IF ( OPACPrivacy ) %]
68                     [% IF ( privacyview ) %]
69                         <li class="active">
70                     [% ELSE %]
71                         <li>
72                     [% END %]
73                     <a href="/cgi-bin/koha/opac-privacy.pl">Privacy</a></li>
74                 [% END %]
75             [% END # / opacreadinghistory %]
76
77             [% IF Koha.Preference('OPACHoldsHistory') == 1 %]
78                 [% IF ( holdshistoryview ) %]
79                     <li class="active">
80                 [% ELSE %]
81                     <li>
82                 [% END %]
83                 <a href="/cgi-bin/koha/opac-holdshistory.pl">Holds history</a></li>
84             [% END %]
85
86             [% IF Koha.Preference('UseRecalls') %]
87                 [% IF ( recallsview ) %]
88                     <li class="active">
89                 [% ELSE %]
90                     <li>
91                 [% END %]
92                 <a href="/cgi-bin/koha/opac-recalls.pl">Recalls history</a>
93             [% END %]
94
95             [% IF ( suggestion ) %]
96                 [% IF ( suggestionsview ) %]
97                     <li class="active">
98                 [% ELSE %]
99                     <li>
100                 [% END %]
101                 <a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
102             [% END %]
103
104             [% IF ( EnhancedMessagingPreferences ) %]
105                 [% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) || Koha.Preference('TranslateNotices') %]
106                     [% IF ( messagingview ) %]
107                         <li class="active">
108                     [% ELSE %]
109                         <li>
110                     [% END %]
111                     <a href="/cgi-bin/koha/opac-messaging.pl">Messaging</a></li>
112                  [% END %]
113             [% END %]
114
115             [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
116                 [% IF ( listsview ) %]
117                     <li class="active">
118                 [% ELSE %]
119                     <li>
120                 [% END %]
121                 <a href="/cgi-bin/koha/opac-shelves.pl?op=list">Lists</a></li>
122             [% END %]
123
124             [% IF Koha.Preference( 'RoutingSerials' ) && logged_in_user && logged_in_user.get_routing_lists.count %]
125                 [% IF ( routinglistsview ) %]
126                     <li class="active">
127                 [% ELSE %]
128                     <li>
129                 [% END %]
130                 <a href="/cgi-bin/koha/opac-routing-lists.pl">Routing lists</a></li>
131             [% END %]
132
133             [% IF Koha.Preference( 'useDischarge' ) == 1 %]
134                 [% IF ( dischargeview ) %]
135                     <li class="active">
136                 [% ELSE %]
137                     <li>
138                 [% END %]
139                 <a href="/cgi-bin/koha/opac-discharge.pl">Ask for discharge</a></li>
140             [% END %]
141
142             [% IF Koha.Preference( 'ILLModule' ) == 1 %]
143                 [% IF ( illrequestsview ) %]
144                     <li class="active">
145                 [% ELSE %]
146                     <li>
147                 [% END %]
148                 <a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a></li>
149             [% END %]
150
151             [% IF Koha.Preference( 'CurbsidePickup' ) %]
152                 [% IF ( ermview ) %]
153                     <li class="active">
154                 [% ELSE %]
155                     <li>
156                 [% END %]
157                 <a href="/cgi-bin/koha/opac-curbside-pickups.pl">Curbside pickups</a></li>
158             [% END %]
159
160         </ul>
161     </div>
162 [% END %]