Bug 12150 - Use more javascript string formatting in intranet for translated strings.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / header.inc
1 <div id="header" class="navbar navbar-static-top">
2     <div class="navbar-inner">
3         <ul id="toplevelmenu" class="nav">
4             [% IF ( CAN_user_circulate ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %]
5             [% IF ( CAN_user_borrowers ) %]<li><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></li>[% END %]
6             [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl">Search</a></li>[% END %]
7             [% IF ( intranetbookbag ) %]
8             <li><a href="#" id="cartmenulink">Cart<span id="basketcount"></span></a></li>
9             [% END %]
10             [% IntranetNav %]
11             <li class="dropdown">
12                 <a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
13                 <ul class="dropdown-menu">
14                     <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
15                     [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
16                     <li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li>
17                     [% END %]
18                     [% IF ( CAN_user_acquisition ) %]
19                     <li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
20                     [% END %]
21                     <li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
22                     [% IF ( CAN_user_serials ) %]
23                     <li><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a></li>
24                     [% END %]
25                     [% IF ( UseCourseReserves ) %]
26                     <li><a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a></li>
27                     [% END %]
28                     [% IF ( CAN_user_reports ) %]
29                     <li><a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a></li>
30                     [% END %]
31                     [% IF ( CAN_user_tools ) %]
32                     <li><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></li>
33                     [% END %]
34                     [% IF ( CAN_user_parameters ) %]
35                     <li><a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a></li>
36                     [% END %]
37                     <li><a href="/cgi-bin/koha/about.pl">About Koha</a></li>
38                 </ul>
39             </li>
40         </ul>
41         <ul class="nav pull-right">
42             <li class="dropdown">
43                 <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
44                     [% IF ( loggedinusername ) %]
45                     <span class="loggedinusername">
46                         [% loggedinusername %]
47                     </span>
48                     <span class="separator">|</span>
49                     [% IF ( AutoLocation ) %]
50                     <brand>
51                         [% LoginBranchname %]
52                     </brand>
53                     [% ELSE %]
54                     <strong>
55                     [% IF ( LoginBranchname == 'NO_LIBRARY_SET' ) %]
56                         NO LIBRARY SET
57                     [% ELSE %]
58                         [% LoginBranchname %]
59                     [% END %]
60                     </strong>
61                     [% END %]
62                     <b class="caret"></b>
63                 </a>
64                 <ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
65                     [% IF ( IndependentBranches ) %]
66                         [% IF ( CAN_user_management || CAN_user_editcatalogue_edit_catalogue ) %]
67                     <li>
68                         <a class="toplinks" href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
69                     </li>
70                         [% END %]
71                     [% ELSE %]
72                     <li>
73                         <a class="toplinks" href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
74                     </li>
75                     [% END %]
76                     [% IF EnableSearchHistory %]
77                     <li>
78                         <a class="toplinks" href="/cgi-bin/koha/catalogue/search-history.pl">Search history</a>
79                     </li>
80                     [% END %]
81                     <li>
82                         <a id="logout" class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log out</a>
83                     </li>
84                     [% ELSE %]
85                     You are not logged in |
86                     [% END %]
87                 </ul>
88             <li>
89                 <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper">Help</a>
90             </li>
91         </ul>
92     </div>
93     [% IF ( intranetbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
94 </div>