Bug 20568: API key management for OPAC users
[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             [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
28                 [% IF ( tagsview ) %]
29                     <li class="active">
30                 [% ELSE %]
31                     <li>
32                 [% END %]
33                 <a href="/cgi-bin/koha/opac-tags.pl?mine=1">your tags</a></li>
34             [% END %]
35
36             [% IF ( OpacPasswordChange ) %]
37                 [% IF ( passwdview ) %]
38                     <li class="active">
39                 [% ELSE %]
40                     <li>
41                 [% END %]
42                 <a href="/cgi-bin/koha/opac-passwd.pl">change your password</a></li>
43             [% END %]
44
45             [% IF EnableOpacSearchHistory %]
46                 [% IF ( searchhistoryview ) %]
47                     <li class="active">
48                 [% ELSE %]
49                     <li>
50                 [% END %]
51                 <a href="/cgi-bin/koha/opac-search-history.pl">your search history</a></li>
52             [% END %]
53
54             [% IF ( opacreadinghistory ) %]
55                 [% IF ( readingrecview ) %]
56                     <li class="active">
57                 [% ELSE %]
58                     <li>
59                 [% END %]
60                 <a href="/cgi-bin/koha/opac-readingrecord.pl">your reading history</a></li>
61                 [% IF ( OPACPrivacy ) %]
62                     [% IF ( privacyview ) %]
63                         <li class="active">
64                     [% ELSE %]
65                         <li>
66                     [% END %]
67                     <a href="/cgi-bin/koha/opac-privacy.pl">your privacy</a></li>
68                 [% END %]
69             [% END # / opacreadinghistory %]
70
71             [% IF Koha.Preference( 'suggestion' ) == 1 %]
72                 [% IF ( suggestionsview ) %]
73                     <li class="active">
74                 [% ELSE %]
75                     <li>
76                 [% END %]
77                 <a href="/cgi-bin/koha/opac-suggestions.pl">your purchase suggestions</a></li>
78             [% END %]
79
80             [% IF ( EnhancedMessagingPreferences ) %]
81                 [% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %]
82                     [% IF ( messagingview ) %]
83                         <li class="active">
84                     [% ELSE %]
85                         <li>
86                     [% END %]
87                     <a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
88                  [% END %]
89             [% END %]
90
91             [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
92                 [% IF ( listsview ) %]
93                     <li class="active">
94                 [% ELSE %]
95                     <li>
96                 [% END %]
97                 <a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=1">your lists</a></li>
98             [% END %]
99
100             [% IF Koha.Preference( 'RoutingSerials' ) && logged_in_user && logged_in_user.get_routing_lists.count %]
101                 [% IF ( routinglistsview ) %]
102                     <li class="active">
103                 [% ELSE %]
104                     <li>
105                 [% END %]
106                 <a href="/cgi-bin/koha/opac-routing-lists.pl">your routing lists</a></li>
107             [% END %]
108
109             [% IF Koha.Preference( 'useDischarge' ) == 1 %]
110                 [% IF ( dischargeview ) %]
111                     <li class="active">
112                 [% ELSE %]
113                     <li>
114                 [% END %]
115                 <a href="/cgi-bin/koha/opac-discharge.pl">ask for a discharge</a></li>
116             [% END %]
117
118             [% IF Koha.Preference( 'ILLModule' ) == 1 %]
119                 [% IF ( illrequestsview ) %]
120                     <li class="active">
121                 [% ELSE %]
122                     <li>
123                 [% END %]
124                 <a href="/cgi-bin/koha/opac-illrequests.pl">your interlibrary loan requests</a></li>
125             [% END %]
126
127
128             [% IF Koha.Preference('AllowPatronsManageAPIKeysInOPAC') %]
129                 [% IF apikeysview %]
130                   <li class="active">
131                 [% ELSE %]
132                   <li>
133                 [% END %]
134                   <a href="/cgi-bin/koha/opac-apikeys.pl">your API keys</a>
135             [% END %]
136             </li>
137         </ul>
138     </div>
139 [% END %]