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