Bug 25381: XSLTs should not define entities
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / header.inc
1 [% USE raw %]
2 [% USE Branches %]
3 [% USE Koha %]
4 <nav class="navbar">
5     <div class="navbar-header">
6         <a href="#" class="header-menu-link collapsed" data-toggle="collapse" data-target="#header" aria-expanded="false" aria-controls="header">
7             <i class="fa fa-bars"></i> Menu
8         </a>
9     </div>
10     <div id="header" class="navbar-collapse collapse">
11         <ul id="toplevelmenu" class="nav navbar-nav">
12             [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %]
13             [% IF CAN_user_borrowers_edit_borrowers %]<li><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></li>[% END %]
14             <li id="catalog-search-link">
15                 <a href="/cgi-bin/koha/catalogue/search.pl">Search</a>
16             </li>
17             <li class="dropdown" id="catalog-search-dropdown">
18                 <a href="/cgi-bin/koha/catalogue/search.pl" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
19                 <ul class="dropdown-menu dropdown-menu-right">
20                     [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a></li>
21                     <li><a href="/cgi-bin/koha/catalogue/itemsearch.pl">Item search</a></li>[% END %]
22                 </ul>
23             </li>
24             [% IF ( intranetbookbag ) %]
25                 <li>
26                     <a href="#" id="cartmenulink"><i class="fa fa-shopping-cart"></i>Cart<span id="basketcount"></span></a>
27                 </li>
28             [% END %]
29             [% IntranetNav | $raw %]
30             <li class="dropdown">
31                 <a href="/cgi-bin/koha/mainpage.pl" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
32                 <ul class="dropdown-menu dropdown-menu-right">
33                     <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
34                     [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
35                         <li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li>
36                     [% END %]
37                     [% IF ( CAN_user_acquisition ) %]
38                         <li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
39                     [% END %]
40                     <li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
41                     [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
42                         <li><a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a></li>
43                     [% END %]
44                     [% IF ( CAN_user_serials ) %]
45                         <li><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a></li>
46                     [% END %]
47                     [% IF ( UseCourseReserves ) %]
48                         <li><a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a></li>
49                     [% END %]
50                     [% IF ( CAN_user_reports ) %]
51                         <li><a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a></li>
52                     [% END %]
53                     [% IF ( CAN_user_suggestions_suggestions_manage ) %]
54                         <li><a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a></li>
55                     [% END %]
56                     [% IF ( CAN_user_tools ) %]
57                         <li><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></li>
58                     [% END %]
59                     [% IF ( Koha.Preference('EnablePointOfSale') && Koha.Preference('UseCashRegisters') && CAN_user_cash_management_takepayment ) %]
60                         <li><a href="/cgi-bin/koha/pos/pay.pl">Point of sale</a></li>
61                     [% END %]
62                     [% IF ( CAN_user_parameters ) %]
63                         <li><a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a></li>
64                     [% END %]
65                     <li><a href="/cgi-bin/koha/about.pl">About Koha</a></li>
66                 </ul>
67             </li>
68         </ul>
69     </div>
70         <ul id="user-menu" class="nav navbar-nav navbar-right">
71             [% IF ( loggedinusername ) %]
72             <li class="dropdown">
73                 <a href="#" id="logged-in-menu" role="button" class="dropdown-toggle" data-toggle="dropdown">
74                     <span id="logged-in-info-brief">
75                         <i class="fa fa-user"></i>
76                     </span>
77                     <span id="logged-in-info-full">
78                         [% SET is_superlibrarian = CAN_user_superlibrarian ? 'is_superlibrarian' : '' %]
79                         <span class="loggedinusername [% is_superlibrarian | html %]">[% logged_in_user.userid | html %]</span>
80                         <span class="separator">|</span>
81                         [% IF ( AutoLocation ) %]
82                             <brand>
83                                 [% Branches.GetLoggedInBranchname | html %]
84                             </brand>
85                         [% ELSE %]
86                             <strong>
87                                 <span class="logged-in-branch-name">[% Branches.GetLoggedInBranchname | html %]</span>
88                                 <span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
89                             </strong>
90                         [% END %]
91                     </span>
92                     <b class="caret"></b>
93                 </a>
94                 <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="logged-in-menu">
95
96                     <li class="loggedin-menu-label">
97                         Logged in as:<br />
98                         <span class="loggedinusername">[% logged_in_user.userid | html %]</span>
99                     </li>
100                     <li class="loggedin-menu-label">
101                         [% IF ( AutoLocation ) %]
102                             <brand>
103                                 [% Branches.GetLoggedInBranchname | html %]
104                             </brand>
105                         [% ELSE %]
106                             Location: <br />
107                             <span class="logged-in-branch-name">[% Branches.GetLoggedInBranchname | html %]</span>
108                             <span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
109                         [% END %]
110                     </li>
111
112                     <li role="separator" class="loggedin-menu-label divider"></li>
113                     [% IF ( IndependentBranches ) %]
114                         [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
115                     <li>
116                         <a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
117                     </li>
118                         [% END %]
119                     [% ELSE %]
120                     <li>
121                         <a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
122                     </li>
123                     [% END %]
124                     [% IF EnableSearchHistory %]
125                     <li>
126                         <a class="toplinks" href="/cgi-bin/koha/catalogue/search-history.pl">Search history</a>
127                     </li>
128                     [% END %]
129                     [% IF loggedinusernumber %]
130                         <li class ="toplinks-myaccount">
131                             <a class="toplinks" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loggedinusernumber | html %]">My account</a>
132                         </li>
133                         <li class="toplinks-mycheckouts">
134                             <a class="toplinks" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% loggedinusernumber | html %]">My checkouts</a>
135                         </li>
136                     [% END %]
137                     <li>
138                         <a id="logout" class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log out</a>
139                     </li>
140                 </ul>
141             </li>
142             [% INCLUDE 'langmenu-staff-top.inc' %]
143             <li>
144                 <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
145             </li>
146             [% ELSE %]
147             <li class="loggedout">
148                 <span>
149                     <a href="/cgi-bin/koha/mainpage.pl" id="login">Log in</a>
150                     <span class="separator">|</span>
151                     <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
152                 </span>
153             </li>
154             [% END %]
155         </ul>
156
157     [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
158     [% IF ( intranetbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
159
160 </nav>