e989fcf096a512630e4d8d03808496fd935ba08b
[Evergreen.git] / Open-ILS / src / templates / staff / navbar.tt2
1 <!-- 
2   main navigation bar
3     
4   note the use of target="_self" for navigation links.
5   this tells angular to treat the href as a new page 
6   and not an intra-app route.  This is necessary when
7   moving between applications.
8
9   For icons, see http://getbootstrap.com/components/#glyphicons
10 -->
11
12 <div id="top-navbar" role="navigation"
13   class="navbar navbar-default navbar-fixed-top" role="navigation">
14
15   <!-- navbar-header here needed for supporting angular-ui-bootstrap -->
16   <div class="navbar-header">
17     <button type="button" class="navbar-toggle" 
18         ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed">
19       <span class="sr-only">[% l('Toggle navigation') %]</span>
20       <span class="icon-bar"></span>
21       <span class="icon-bar"></span>
22       <span class="icon-bar"></span>
23     </button>
24   </div>
25
26   <div class="navbar-collapse collapse" ng-class="!navCollapsed && 'in'">
27     <ul class="nav navbar-nav">
28       <li><a href='./' title="[% l('Home') %]" target="_self"
29         class="glyphicon glyphicon-home"></a><li>
30
31       <!-- search -->
32       <li class="dropdown" uib-dropdown>
33         <a href uib-dropdown-toggle>[% l('Search') %]
34           <b class="caret"></b>
35         </a>
36         <ul uib-dropdown-menu>
37           <li>
38             <a href="./circ/patron/search" target="_self"
39               eg-accesskey="[% l('alt+s') %]" 
40               eg-accesskey-desc="[% l('Patron search by name, address, etc.') %]">
41               <span class="glyphicon glyphicon-user"></span>
42               <span eg-accesskey-label>[% l('Search for Patrons') %]</span>
43             </a>
44           </li>
45           <li>
46             <a href="./cat/item/search" target="_self"
47               eg-accesskey="[% l('f5') %]" 
48               eg-accesskey-desc="[% l('Item Status') %]">
49               <span class="glyphicon glyphicon-barcode"></span>
50               <span>[% l('Search for Copies by Barcode') %]</span>
51             </a>
52           </li>
53           <li>
54             <a href="./cat/catalog/index" target="_self"
55               eg-accesskey="[% l('f3') %]" 
56               eg-accesskey-desc="[% l('OPAC') %]">
57               <span class="glyphicon glyphicon-search"></span>
58               <span>[% l('Search the Catalog') %]</span>
59             </a>
60           </li>
61         </ul>
62       </li>
63
64
65       <!-- circulation -->
66       <li class="dropdown" uib-dropdown>
67         <a href uib-dropdown-toggle>[% l('Circulation') %]<b class="caret"></b>
68         </a>
69
70         <ul uib-dropdown-menu>
71           <li>
72             <a href="./circ/patron/bcsearch" target="_self"
73               eg-accesskey="[% l('f1') %]" 
74               eg-accesskey-desc="[% l('Check Out') %]">
75               <span class="glyphicon glyphicon-export"></span>
76               [% l('Check Out') %]
77             </a>
78           </li>
79           <li>
80             <a href="./circ/checkin/checkin" target="_self"
81               eg-accesskey="[% l('f2') %]" 
82               eg-accesskey-desc="[% l('Check In') %]">
83               <span class="glyphicon glyphicon-import"></span>
84               [% l('Check In') %]
85             </a>
86           </li>
87           <li>
88             <a href="./circ/checkin/capture" target="_self"
89               eg-accesskey="[% l('shift+f2') %]" 
90               eg-accesskey-desc="[% l('Capture Holds') %]">
91               <span class="glyphicon glyphicon-pushpin"></span>
92               [% l('Capture Holds') %]
93             </a>
94           </li>
95           <li>
96             <a href="./circ/holds/pull" target="_self">
97               <span class="glyphicon glyphicon-th-list"></span>
98               [% l('Pull List for Hold Requests') %]
99             </a>
100           </li>
101           <li>
102             <a href="./circ/renew/renew" target="_self">
103               <span class="glyphicon glyphicon-refresh"></span>
104               [% l('Renew Items') %]
105             </a>
106           </li>
107           <li>
108             <a href="./circ/patron/register" target="_self"
109               eg-accesskey="[% l('shift+f1') %]" 
110               eg-accesskey-desc="[% l('Register Patron') %]">
111               <span class="glyphicon glyphicon-user"></span>
112               [% l('Register Patron') %]
113             </a>
114           </li>
115           <li>
116             <a href="./circ/patron/last" target="_self"
117               eg-accesskey="[% l('f8') %]" 
118               eg-accesskey-desc="[% l('Retrieve Last Patron') %]">
119               <span class="glyphicon glyphicon-share-alt"></span>
120               [% l('Retrieve Last Patron') %]
121             </a>
122           </li>
123           <li>
124             <a href="./circ/patron/pending/list" target="_self">
125               <span class="glyphicon glyphicon-thumbs-up"></span>
126               [% l('Pending Patrons') %]
127             </a>
128           </li>
129           <li class="divider"></li>
130           <li>
131             <a href="./circ/patron/credentials" target="_self">
132               <span class="glyphicon glyphicon-ok"></span>
133               <span>[% l('Verify Credentials') %]</span>
134             </a>
135           </li>
136           <li>
137             <a href="./circ/in_house_use/index" target="_self"
138               eg-accesskey="[% l('f6') %]" 
139               eg-accesskey-desc="[% l('Record In-House Use') %]">
140               <span class="glyphicon glyphicon-pencil"></span>
141               <span>[% l('Record In-House Use') %]</span>
142             </a>
143           </li>
144           <li>
145             <a href="./circ/holds/shelf" target="_self">
146               <span class="glyphicon glyphicon-tasks"></span>
147               <span>[% l('Holds Shelf') %]</span>
148             </a>
149           </li>
150           <li class="divider"></li>
151           <li>
152             <a href="./cat/item/replace_barcode/index" target="_self">
153               <span class="glyphicon glyphicon-barcode"></span>
154               <span>[% l('Replace Barcode') %]</span>
155             </a>
156           </li>
157           <li>
158             <a href="./cat/item/search" target="_self">
159               <span class="glyphicon glyphicon-saved"></span>
160               <span>[% l('Item Status') %]</span>
161             </a>
162           </li>
163           <li>
164             <a href="./cat/item/missing_pieces" target="_self">
165               <span class="glyphicon glyphicon-th"></span>
166               <span>[% l('Scan Item as Missing Pieces') %]</span>
167             </a>
168           </li>
169         </ul>
170       </li><!-- circ -->
171
172       <!-- cataloging -->
173       <li class="dropdown" uib-dropdown>
174         <a href uib-dropdown-toggle>[% l('Cataloging') %]<b class="caret"></b>
175         </a>
176         <ul uib-dropdown-menu>
177           <li>
178             <a href="./cat/catalog/index" target="_self">
179               <span class="glyphicon glyphicon-search"></span>
180               [% l('Search the Catalog') %]
181             </a>
182           </li>
183           <li>
184             <a href="./cat/bucket/record/view" target="_self">
185               <span class="glyphicon glyphicon-list-alt"></span>
186               [% l('Record Buckets') %]
187             </a>
188           </li>
189           <li>
190             <a href="./cat/bucket/copy/view" target="_self">
191               <span class="glyphicon glyphicon-list-alt"></span>
192               [% l('Copy Buckets') %]
193             </a>
194           </li>
195           <li class="divider"></li>
196           <li>
197             <a href="./cat/catalog/retrieve_by_id" target="_self">
198               <span class="glyphicon glyphicon-file"></span>
199               [% l('Retrieve Bib Record by ID') %]
200             </a>
201           </li>
202           <li>
203             <a href="./cat/catalog/retrieve_by_tcn" target="_self"
204               eg-accesskey="[% l('shift+f3') %]" 
205               eg-accesskey-desc="[% l('Retrieve Last Bib Record') %]">
206               <span class="glyphicon glyphicon-tag"></span>
207               [% l('Retrieve Bib Record by TCN') %]
208             </a>
209           </li>
210           <li>
211             <a href="" ng-click="retrieveLastRecord()" target="_self"
212               eg-accesskey="[% l('shift+f8') %]" 
213               eg-accesskey-desc="[% l('Retrieve Last Bib Record') %]">
214               <span class="glyphicon glyphicon-share-alt"></span>
215               [% l('Retrieve Last Bib Record') %]
216             </a>
217           </li>
218           <li class="divider"></li>
219           <li>
220             <a href="./cat/catalog/new_bib" target="_self">
221               <span class="glyphicon glyphicon-plus"></span>
222               [% l('Create New MARC Record') %]
223             </a>
224           </li>
225           <li>
226             <a href="./cat/z3950/index" target="_self">
227               <span class="glyphicon glyphicon-cloud-download"></span>
228               [% l('Import Record from Z39.50') %]
229             </a>
230           </li>
231           <li>
232             <a href="./cat/catalog/vandelay" target="_self">
233               <span class="glyphicon glyphicon-transfer"></span>
234               [% l('MARC Batch Import/Export') %]
235             </a>
236           </li>
237           <li>
238             <a href="./cat/catalog/batchEdit" target="_self">
239               <span class="glyphicon glyphicon-edit"></span>
240               [% l('MARC Batch Edit') %]
241             </a>
242           </li>
243           <li class="divider"></li>
244           <li>
245             <a href="./cat/catalog/verifyURLs" target="_self">
246               <span class="glyphicon glyphicon-link"></span>
247               [% l('Link Checker') %]
248             </a>
249           </li>
250           <li class="divider"></li>
251           <li>
252             <a href="./cat/catalog/manageAuthorities" target="_self">
253               <span class="glyphicon glyphicon-lock"></span>
254               [% l('Manage Authorities') %]
255             </a>
256           </li>
257        </ul>
258       </li>
259
260       <!-- acquisitions -->
261       <li class="dropdown" uib-dropdown>
262         <a href uib-dropdown-toggle>[% l('Acquisitions') %]<b class="caret"></b>
263         </a>
264         <ul uib-dropdown-menu>
265           <li>
266             <a href="./acq/legacy/search/unified" target="_self">
267               <span class="glyphicon glyphicon-search"></span>
268               [% l('General Search') %]
269             </a>
270           </li>
271           <li class="divider"></li>
272           <li>
273             <a href="./acq/legacy/search/unified?ca=pl" target="_self">
274               <span class="glyphicon glyphicon-list"></span>
275               [% l('My Selection Lists') %]
276             </a>
277           </li>
278           <li>
279             <a href="./acq/legacy/picklist/brief_record" target="_self">
280               <span class="glyphicon glyphicon-pencil"></span>
281               [% l('New Brief Record') %]
282             </a>
283           </li>
284           <li>
285             <a href="./acq/legacy/picklist/user_request" target="_self">
286               <span class="glyphicon glyphicon-thumbs-up"></span>
287               [% l('Patron Requests') %]
288             </a>
289           </li>
290           <li>
291             <a href="./acq/legacy/picklist/bib_search" target="_self">
292               <span class="glyphicon glyphicon-cloud-download"></span>
293               [% l('MARC Federated Search') %]
294             </a>
295           </li>
296           <li>
297             <a href="./acq/legacy/picklist/from_bib" target="_self">
298               <span class="glyphicon glyphicon-import"></span>
299               [% l('Load Catalog Record IDs') %]
300             </a>
301           </li>
302           <li class="divider"></li>
303           <li>
304             <a href="./acq/legacy/picklist/upload" target="_self">
305               <span class="glyphicon glyphicon-cloud-upload"></span>
306               [% l('Load MARC Order Records') %]
307             </a>
308           </li>
309           <li>
310             <a href="./acq/legacy/search/unified?ca=po" target="_self">
311               <span class="glyphicon glyphicon-shopping-cart"></span>
312               [% l('Purchase Orders') %]
313             </a>
314           </li>
315           <li>
316             <a href="./acq/legacy/po/create" target="_self">
317               <span class="glyphicon glyphicon-plus"></span>
318               [% l('Create Purchase Order') %]
319             </a>
320           </li>
321           <li class="divider"></li>
322           <li>
323             <a href="./acq/legacy/financial/claim_eligible" target="_self">
324               <span class="glyphicon glyphicon-question-sign"></span>
325               [% l('Claim-Ready Items') %]
326             </a>
327           </li>
328           <li>
329             <a href="./acq/legacy/search/unified?ca=inv" target="_self">
330               <span class="glyphicon glyphicon-usd"></span>
331               [% l('Open Invoices') %]
332             </a>
333           </li>
334           <li>
335             <a href="./acq/legacy/invoice/view?create=1" target="_self">
336               <span class="glyphicon glyphicon-credit-card"></span>
337               [% l('Create Invoice') %]
338             </a>
339           </li>
340        </ul>
341       </li>
342
343       <!-- booking -->
344       <li class="dropdown" uib-dropdown>
345         <a href uib-dropdown-toggle>[% l('Booking') %]<b class="caret"></b>
346         </a>
347         <ul uib-dropdown-menu>
348           <li>
349             <a href="./booking/legacy/booking/reservation" target="_self">
350               <span class="glyphicon glyphicon-plus"></span>
351               [% l('Create Reservations') %]
352             </a>
353           </li>
354           <li>
355             <a href="./booking/legacy/booking/pull_list" target="_self">
356               <span class="glyphicon glyphicon-th-list"></span>
357               [% l('Pull List') %]
358             </a>
359           </li>
360           <li>
361             <a href="./booking/legacy/booking/capture" target="_self">
362               <span class="glyphicon glyphicon-pushpin"></span>
363               [% l('Capture Resources') %]
364             </a>
365           </li>
366           <li>
367             <a href="./booking/legacy/booking/pickup" target="_self">
368               <span class="glyphicon glyphicon-export"></span>
369               [% l('Pick Up Reservations') %]
370             </a>
371           </li>
372           <li>
373             <a href="./booking/legacy/booking/return" target="_self">
374               <span class="glyphicon glyphicon-import"></span>
375               [% l('Return Reservations') %]
376             </a>
377           </li>
378         </ul>
379       </li>
380
381       <!-- admin -->
382       <li class="dropdown" uib-dropdown>
383         <a href uib-dropdown-toggle>[% l('Administration') %]<b class="caret"></b></a>
384         <ul uib-dropdown-menu>
385           <li>
386             <a href="./admin/workstation/index" target="_self">
387               <span class="glyphicon glyphicon-hdd"></span>
388               [% l('Workstation') %]
389             </a>
390           </li>
391           <li>
392             <a href="./admin/user_perms" target="_self">
393               <span class="glyphicon glyphicon-user"></span>
394               [% l('User Permission Editor') %]
395             </a>
396           </li>
397           <li>
398             <a href="./admin/server/index" target="_self">
399               <span class="glyphicon glyphicon-briefcase"></span>
400               [% l('Server Administration') %]
401             </a>
402           </li>
403           <li>
404             <a href="./admin/local/index" target="_self">
405               <span class="glyphicon glyphicon-picture"></span>
406               [% l('Local Administration') %]
407             </a>
408           </li>
409           <li>
410             <a href="./admin/acq/index" target="_self">
411               <span class="glyphicon glyphicon-usd"></span>
412               [% l('Acquisitions Administration') %]
413             </a>
414           </li>
415           <li>
416             <a href="./admin/booking/index" target="_self">
417               <span class="glyphicon glyphicon-calendar"></span>
418               [% l('Booking Administration') %]
419             </a>
420           </li>
421           <li>
422             <a href="./reporter/legacy/main" target="_self">
423               <span class="glyphicon glyphicon-object-align-bottom"></span>
424               [% l('Reports') %]
425             </a>
426           </li>
427         </ul> <!-- admin dropdown -->
428       </li>
429     </ul> <!-- end left side entries -->
430
431     <!-- entries along the right side of the navbar -->
432     <ul class="nav navbar-nav navbar-right" style='margin-right: 6px;'>
433       <li>
434         <a ng-cloak ng-show="username" title="{{currentToken()}}"
435           ng-init="workstation = '[% l('<no workstation>') %]'">
436             [% l('{{username}} @ {{workstation}}') %]
437         </a>
438       </li>
439
440       <!-- locale selector.  
441         only shown if multiple locales are registered -->
442       [% IF ctx.locales.keys.size > 1 %]
443       <li class="dropdown" uib-dropdown>
444         <a href uib-dropdown-toggle>
445           [% lcl = ctx.locale;  ctx.locales.$lcl %]
446           <span class="glyphicon glyphicon-flag"></span>
447         </a>
448         <ul uib-dropdown-menu>
449         [% FOR locale IN ctx.locales.keys.sort %]
450           <!-- disable the selected locale -->
451           <li ng-class="{disabled : '[% ctx.locale %]'=='[% locale %]'}">
452             <a href="" ng-click="applyLocale('[% locale %]')">
453                 [% ctx.locales.$locale %]
454             </a>
455           </li>
456         [% END %]
457         </ul>
458       </li>
459       [% END %]
460
461       <li class="dropdown" ng-show="username" uib-dropdown>
462         <a href class="glyphicon glyphicon-list" 
463           uib-dropdown-toggle></a>
464         <ul uib-dropdown-menu>
465           <li ng-if="!op_changed">
466             <a href="" ng-click="changeOperator()">
467               <span class="glyphicon glyphicon-random"></span>
468               [% l('Change Operator') %]
469             </a>
470           </li>
471           <li ng-if="op_changed">
472             <a href="" ng-click="changeOperatorUndo()">
473               <span class="glyphicon glyphicon-random"></span>
474               [% l('Restore Operator') %]
475             </a>
476           </li>
477           <li>
478             <a href="./login" ng-click="logout()" target="_self">
479               <span class="glyphicon glyphicon-log-out"></span>
480               [% l('Log Out') %]
481             </a>
482           </li>
483         </ul>
484       </li>
485     </ul>
486   </div>
487 </div>
488
489