Bug 20168: Update of the OPAC bootstrap template to bootstrap v4
[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">your 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">your 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">your 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">your 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">your 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 your 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">your 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">your reading 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">your privacy</a></li>
74                 [% END %]
75             [% END # / opacreadinghistory %]
76
77             [% IF Koha.Preference( 'suggestion' ) == 1 %]
78                 [% IF ( suggestionsview ) %]
79                     <li class="active">
80                 [% ELSE %]
81                     <li>
82                 [% END %]
83                 <a href="/cgi-bin/koha/opac-suggestions.pl">your purchase suggestions</a></li>
84             [% END %]
85
86             [% IF ( EnhancedMessagingPreferences ) %]
87                 [% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %]
88                     [% IF ( messagingview ) %]
89                         <li class="active">
90                     [% ELSE %]
91                         <li>
92                     [% END %]
93                     <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
94                  [% END %]
95             [% END %]
96
97             [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
98                 [% IF ( listsview ) %]
99                     <li class="active">
100                 [% ELSE %]
101                     <li>
102                 [% END %]
103                 <a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=1">your lists</a></li>
104             [% END %]
105
106             [% IF Koha.Preference( 'RoutingSerials' ) && logged_in_user && logged_in_user.get_routing_lists.count %]
107                 [% IF ( routinglistsview ) %]
108                     <li class="active">
109                 [% ELSE %]
110                     <li>
111                 [% END %]
112                 <a href="/cgi-bin/koha/opac-routing-lists.pl">your routing lists</a></li>
113             [% END %]
114
115             [% IF Koha.Preference( 'useDischarge' ) == 1 %]
116                 [% IF ( dischargeview ) %]
117                     <li class="active">
118                 [% ELSE %]
119                     <li>
120                 [% END %]
121                 <a href="/cgi-bin/koha/opac-discharge.pl">ask for a discharge</a></li>
122             [% END %]
123
124             [% IF Koha.Preference( 'ILLModule' ) == 1 %]
125                 [% IF ( illrequestsview ) %]
126                     <li class="active">
127                 [% ELSE %]
128                     <li>
129                 [% END %]
130                 <a href="/cgi-bin/koha/opac-illrequests.pl">your interlibrary loan requests</a></li>
131             [% END %]
132
133         </ul>
134     </div>
135 [% END %]