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