Bug 20819: Add your consents tab to opac-user
[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         <h4><a href="#" class="menu-collapse-toggle">Your account menu</a></h4>
5         <ul class="menu-collapse">
6             [% IF ( userview ) %]
7                 <li class="active">
8             [% ELSE %]
9                 <li>
10             [% END %]
11                 <a href="/cgi-bin/koha/opac-user.pl">your summary</a></li>
12             [% IF ( OPACFinesTab ) %]
13                 [% IF ( accountview ) %]
14                     <li class="active">
15                 [% ELSE %]
16                     <li>
17                 [% END %]
18                 <a href="/cgi-bin/koha/opac-account.pl">your fines</a></li>
19             [% END %]
20
21             [% IF ( userupdateview ) %]
22                 <li class="active">
23             [% ELSE %]
24                 <li>
25             [% END %]
26                 <a href="/cgi-bin/koha/opac-memberentry.pl">your personal details</a></li>
27
28             [% IF Koha.Preference('GDPR_Policy') # remove when extending %]
29                 [% IF consentview %]<li class="active">[% ELSE %]<li>[% END %]
30                     <a href="/cgi-bin/koha/opac-patron-consent.pl">your consents</a>
31                 </li>
32             [% END %]
33
34             [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
35                 [% IF ( tagsview ) %]
36                     <li class="active">
37                 [% ELSE %]
38                     <li>
39                 [% END %]
40                 <a href="/cgi-bin/koha/opac-tags.pl?mine=1">your tags</a></li>
41             [% END %]
42
43             [% IF ( OpacPasswordChange ) %]
44                 [% IF ( passwdview ) %]
45                     <li class="active">
46                 [% ELSE %]
47                     <li>
48                 [% END %]
49                 <a href="/cgi-bin/koha/opac-passwd.pl">change your password</a></li>
50             [% END %]
51
52             [% IF EnableOpacSearchHistory %]
53                 [% IF ( searchhistoryview ) %]
54                     <li class="active">
55                 [% ELSE %]
56                     <li>
57                 [% END %]
58                 <a href="/cgi-bin/koha/opac-search-history.pl">your search history</a></li>
59             [% END %]
60
61             [% IF ( opacreadinghistory ) %]
62                 [% IF ( readingrecview ) %]
63                     <li class="active">
64                 [% ELSE %]
65                     <li>
66                 [% END %]
67                 <a href="/cgi-bin/koha/opac-readingrecord.pl">your reading history</a></li>
68                 [% IF ( OPACPrivacy ) %]
69                     [% IF ( privacyview ) %]
70                         <li class="active">
71                     [% ELSE %]
72                         <li>
73                     [% END %]
74                     <a href="/cgi-bin/koha/opac-privacy.pl">your privacy</a></li>
75                 [% END %]
76             [% END # / opacreadinghistory %]
77
78             [% IF Koha.Preference( 'suggestion' ) == 1 %]
79                 [% IF ( suggestionsview ) %]
80                     <li class="active">
81                 [% ELSE %]
82                     <li>
83                 [% END %]
84                 <a href="/cgi-bin/koha/opac-suggestions.pl">your purchase suggestions</a></li>
85             [% END %]
86
87             [% IF ( EnhancedMessagingPreferences ) %]
88                 [% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %]
89                     [% IF ( messagingview ) %]
90                         <li class="active">
91                     [% ELSE %]
92                         <li>
93                     [% END %]
94                     <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
95                  [% END %]
96             [% END %]
97
98             [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
99                 [% IF ( listsview ) %]
100                     <li class="active">
101                 [% ELSE %]
102                     <li>
103                 [% END %]
104                 <a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=1">your lists</a></li>
105             [% END %]
106
107             [% IF Koha.Preference( 'RoutingSerials' ) && logged_in_user && logged_in_user.get_routing_lists.count %]
108                 [% IF ( routinglistsview ) %]
109                     <li class="active">
110                 [% ELSE %]
111                     <li>
112                 [% END %]
113                 <a href="/cgi-bin/koha/opac-routing-lists.pl">your routing lists</a></li>
114             [% END %]
115
116             [% IF Koha.Preference( 'useDischarge' ) == 1 %]
117                 [% IF ( dischargeview ) %]
118                     <li class="active">
119                 [% ELSE %]
120                     <li>
121                 [% END %]
122                 <a href="/cgi-bin/koha/opac-discharge.pl">ask for a discharge</a></li>
123             [% END %]
124
125             [% IF Koha.Preference( 'ILLModule' ) == 1 %]
126                 [% IF ( illrequestsview ) %]
127                     <li class="active">
128                 [% ELSE %]
129                     <li>
130                 [% END %]
131                 <a href="/cgi-bin/koha/opac-illrequests.pl">your interlibrary loan requests</a></li>
132             [% END %]
133
134         </ul>
135     </div>
136 [% END %]