webstaff: Apply XUL-era hotkeys to some actions
[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') %] [% l('f4') %]" 
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               eg-accesskey="[% l('ctrl+f2') %]" 
104               eg-accesskey-desc="[% l('Renew items') %]">
105               <span class="glyphicon glyphicon-refresh"></span>
106               [% l('Renew Items') %]
107             </a>
108           </li>
109           <li>
110             <a href="./circ/patron/register" target="_self"
111               eg-accesskey="[% l('shift+f1') %]" 
112               eg-accesskey-desc="[% l('Register Patron') %]">
113               <span class="glyphicon glyphicon-user"></span>
114               [% l('Register Patron') %]
115             </a>
116           </li>
117           <li>
118             <a href="./circ/patron/last" target="_self"
119               eg-accesskey="[% l('f8') %]" 
120               eg-accesskey-desc="[% l('Retrieve Last Patron') %]">
121               <span class="glyphicon glyphicon-share-alt"></span>
122               [% l('Retrieve Last Patron') %]
123             </a>
124           </li>
125           <li>
126             <a href="./circ/patron/pending/list" target="_self">
127               <span class="glyphicon glyphicon-thumbs-up"></span>
128               [% l('Pending Patrons') %]
129             </a>
130           </li>
131           <li class="divider"></li>
132           <li>
133             <a href="./circ/patron/credentials" target="_self">
134               <span class="glyphicon glyphicon-ok"></span>
135               <span>[% l('Verify Credentials') %]</span>
136             </a>
137           </li>
138           <li>
139             <a href="./circ/in_house_use/index" target="_self"
140               eg-accesskey="[% l('f6') %]" 
141               eg-accesskey-desc="[% l('Record In-House Use') %]">
142               <span class="glyphicon glyphicon-pencil"></span>
143               <span>[% l('Record In-House Use') %]</span>
144             </a>
145           </li>
146           <li>
147             <a href="./circ/holds/shelf" target="_self">
148               <span class="glyphicon glyphicon-tasks"></span>
149               <span>[% l('Holds Shelf') %]</span>
150             </a>
151           </li>
152           <li class="divider"></li>
153           <li>
154             <a href="./cat/item/replace_barcode/index" target="_self">
155               <span class="glyphicon glyphicon-barcode"></span>
156               <span>[% l('Replace Barcode') %]</span>
157             </a>
158           </li>
159           <li>
160             <a href="./cat/item/search" target="_self">
161               <span class="glyphicon glyphicon-saved"></span>
162               <span>[% l('Item Status') %]</span>
163             </a>
164           </li>
165           <li>
166             <a href="./cat/item/missing_pieces" target="_self">
167               <span class="glyphicon glyphicon-th"></span>
168               <span>[% l('Scan Item as Missing Pieces') %]</span>
169             </a>
170           </li>
171         </ul>
172       </li><!-- circ -->
173
174       <!-- cataloging -->
175       <li class="dropdown" uib-dropdown>
176         <a href uib-dropdown-toggle>[% l('Cataloging') %]<b class="caret"></b>
177         </a>
178         <ul uib-dropdown-menu>
179           <li>
180             <a href="./cat/catalog/index" target="_self">
181               <span class="glyphicon glyphicon-search"></span>
182               [% l('Search the Catalog') %]
183             </a>
184           </li>
185           <li>
186             <a href="./cat/bucket/record/view" target="_self">
187               <span class="glyphicon glyphicon-list-alt"></span>
188               [% l('Record Buckets') %]
189             </a>
190           </li>
191           <li>
192             <a href="./cat/bucket/copy/view" target="_self">
193               <span class="glyphicon glyphicon-list-alt"></span>
194               [% l('Copy Buckets') %]
195             </a>
196           </li>
197           <li class="divider"></li>
198           <li>
199             <a href="./cat/catalog/retrieve_by_id" target="_self">
200               <span class="glyphicon glyphicon-file"></span>
201               [% l('Retrieve Bib Record by ID') %]
202             </a>
203           </li>
204           <li>
205             <a href="./cat/catalog/retrieve_by_tcn" target="_self"
206               eg-accesskey="[% l('shift+f3') %]" 
207               eg-accesskey-desc="[% l('Retrieve Last Bib Record') %]">
208               <span class="glyphicon glyphicon-tag"></span>
209               [% l('Retrieve Bib Record by TCN') %]
210             </a>
211           </li>
212           <li>
213             <a href="" ng-click="retrieveLastRecord()" target="_self"
214               eg-accesskey="[% l('shift+f8') %]" 
215               eg-accesskey-desc="[% l('Retrieve Last Bib Record') %]">
216               <span class="glyphicon glyphicon-share-alt"></span>
217               [% l('Retrieve Last Bib Record') %]
218             </a>
219           </li>
220           <li class="divider"></li>
221           <li>
222             <a href="./cat/catalog/new_bib" target="_self">
223               <span class="glyphicon glyphicon-plus"></span>
224               [% l('Create New MARC Record') %]
225             </a>
226           </li>
227           <li>
228             <a href="./cat/z3950/index" target="_self">
229               <span class="glyphicon glyphicon-cloud-download"></span>
230               [% l('Import Record from Z39.50') %]
231             </a>
232           </li>
233           <li>
234             <a href="./cat/catalog/vandelay" target="_self">
235               <span class="glyphicon glyphicon-transfer"></span>
236               [% l('MARC Batch Import/Export') %]
237             </a>
238           </li>
239           <li>
240             <a href="./cat/catalog/batchEdit" target="_self">
241               <span class="glyphicon glyphicon-edit"></span>
242               [% l('MARC Batch Edit') %]
243             </a>
244           </li>
245           <li class="divider"></li>
246           <li>
247             <a href="./cat/catalog/verifyURLs" target="_self">
248               <span class="glyphicon glyphicon-link"></span>
249               [% l('Link Checker') %]
250             </a>
251           </li>
252           <li class="divider"></li>
253           <li>
254             <a href="./cat/catalog/manageAuthorities" target="_self">
255               <span class="glyphicon glyphicon-lock"></span>
256               [% l('Manage Authorities') %]
257             </a>
258           </li>
259        </ul>
260       </li>
261
262       <!-- acquisitions -->
263       <li class="dropdown" uib-dropdown>
264         <a href uib-dropdown-toggle>[% l('Acquisitions') %]<b class="caret"></b>
265         </a>
266         <ul uib-dropdown-menu>
267           <li>
268             <a href="./acq/legacy/search/unified" target="_self">
269               <span class="glyphicon glyphicon-search"></span>
270               [% l('General Search') %]
271             </a>
272           </li>
273           <li class="divider"></li>
274           <li>
275             <a href="./acq/legacy/search/unified?ca=pl" target="_self">
276               <span class="glyphicon glyphicon-list"></span>
277               [% l('My Selection Lists') %]
278             </a>
279           </li>
280           <li>
281             <a href="./acq/legacy/picklist/brief_record" target="_self">
282               <span class="glyphicon glyphicon-pencil"></span>
283               [% l('New Brief Record') %]
284             </a>
285           </li>
286           <li>
287             <a href="./acq/legacy/picklist/user_request" target="_self">
288               <span class="glyphicon glyphicon-thumbs-up"></span>
289               [% l('Patron Requests') %]
290             </a>
291           </li>
292           <li>
293             <a href="./acq/legacy/picklist/bib_search" target="_self">
294               <span class="glyphicon glyphicon-cloud-download"></span>
295               [% l('MARC Federated Search') %]
296             </a>
297           </li>
298           <li>
299             <a href="./acq/legacy/picklist/from_bib" target="_self">
300               <span class="glyphicon glyphicon-import"></span>
301               [% l('Load Catalog Record IDs') %]
302             </a>
303           </li>
304           <li class="divider"></li>
305           <li>
306             <a href="./acq/legacy/picklist/upload" target="_self">
307               <span class="glyphicon glyphicon-cloud-upload"></span>
308               [% l('Load MARC Order Records') %]
309             </a>
310           </li>
311           <li>
312             <a href="./acq/legacy/search/unified?ca=po" target="_self">
313               <span class="glyphicon glyphicon-shopping-cart"></span>
314               [% l('Purchase Orders') %]
315             </a>
316           </li>
317           <li>
318             <a href="./acq/legacy/po/create" target="_self">
319               <span class="glyphicon glyphicon-plus"></span>
320               [% l('Create Purchase Order') %]
321             </a>
322           </li>
323           <li class="divider"></li>
324           <li>
325             <a href="./acq/legacy/financial/claim_eligible" target="_self">
326               <span class="glyphicon glyphicon-question-sign"></span>
327               [% l('Claim-Ready Items') %]
328             </a>
329           </li>
330           <li>
331             <a href="./acq/legacy/search/unified?ca=inv" target="_self">
332               <span class="glyphicon glyphicon-usd"></span>
333               [% l('Open Invoices') %]
334             </a>
335           </li>
336           <li>
337             <a href="./acq/legacy/invoice/view?create=1" target="_self">
338               <span class="glyphicon glyphicon-credit-card"></span>
339               [% l('Create Invoice') %]
340             </a>
341           </li>
342        </ul>
343       </li>
344
345       <!-- booking -->
346       <li class="dropdown" uib-dropdown>
347         <a href uib-dropdown-toggle>[% l('Booking') %]<b class="caret"></b>
348         </a>
349         <ul uib-dropdown-menu>
350           <li>
351             <a href="./booking/legacy/booking/reservation" target="_self">
352               <span class="glyphicon glyphicon-plus"></span>
353               [% l('Create Reservations') %]
354             </a>
355           </li>
356           <li>
357             <a href="./booking/legacy/booking/pull_list" target="_self">
358               <span class="glyphicon glyphicon-th-list"></span>
359               [% l('Pull List') %]
360             </a>
361           </li>
362           <li>
363             <a href="./booking/legacy/booking/capture" target="_self">
364               <span class="glyphicon glyphicon-pushpin"></span>
365               [% l('Capture Resources') %]
366             </a>
367           </li>
368           <li>
369             <a href="./booking/legacy/booking/pickup" target="_self">
370               <span class="glyphicon glyphicon-export"></span>
371               [% l('Pick Up Reservations') %]
372             </a>
373           </li>
374           <li>
375             <a href="./booking/legacy/booking/return" target="_self">
376               <span class="glyphicon glyphicon-import"></span>
377               [% l('Return Reservations') %]
378             </a>
379           </li>
380         </ul>
381       </li>
382
383       <!-- admin -->
384       <li class="dropdown" uib-dropdown>
385         <a href uib-dropdown-toggle>[% l('Administration') %]<b class="caret"></b></a>
386         <ul uib-dropdown-menu>
387           <li>
388             <a href="./admin/workstation/index" target="_self">
389               <span class="glyphicon glyphicon-hdd"></span>
390               [% l('Workstation') %]
391             </a>
392           </li>
393           <li>
394             <a href="./admin/user_perms" target="_self">
395               <span class="glyphicon glyphicon-user"></span>
396               [% l('User Permission Editor') %]
397             </a>
398           </li>
399           <li>
400             <a href="./admin/server/index" target="_self">
401               <span class="glyphicon glyphicon-briefcase"></span>
402               [% l('Server Administration') %]
403             </a>
404           </li>
405           <li>
406             <a href="./admin/local/index" target="_self">
407               <span class="glyphicon glyphicon-picture"></span>
408               [% l('Local Administration') %]
409             </a>
410           </li>
411           <li>
412             <a href="./admin/acq/index" target="_self">
413               <span class="glyphicon glyphicon-usd"></span>
414               [% l('Acquisitions Administration') %]
415             </a>
416           </li>
417           <li>
418             <a href="./admin/booking/index" target="_self">
419               <span class="glyphicon glyphicon-calendar"></span>
420               [% l('Booking Administration') %]
421             </a>
422           </li>
423           <li>
424             <a href="./reporter/legacy/main" target="_self">
425               <span class="glyphicon glyphicon-object-align-bottom"></span>
426               [% l('Reports') %]
427             </a>
428           </li>
429         </ul> <!-- admin dropdown -->
430       </li>
431     </ul> <!-- end left side entries -->
432
433     <!-- entries along the right side of the navbar -->
434     <ul class="nav navbar-nav navbar-right" style='margin-right: 6px;'>
435       <li>
436         <a ng-cloak ng-show="username" title="{{currentToken()}}"
437           ng-init="workstation = '[% l('<no workstation>') %]'">
438             [% l('{{username}} @ {{workstation}}') %]
439         </a>
440       </li>
441
442       <!-- locale selector.  
443         only shown if multiple locales are registered -->
444       [% IF ctx.locales.keys.size > 1 %]
445       <li class="dropdown" uib-dropdown>
446         <a href uib-dropdown-toggle>
447           [% lcl = ctx.locale;  ctx.locales.$lcl %]
448           <span class="glyphicon glyphicon-flag"></span>
449         </a>
450         <ul uib-dropdown-menu>
451         [% FOR locale IN ctx.locales.keys.sort %]
452           <!-- disable the selected locale -->
453           <li ng-class="{disabled : '[% ctx.locale %]'=='[% locale %]'}">
454             <a href="" ng-click="applyLocale('[% locale %]')">
455                 [% ctx.locales.$locale %]
456             </a>
457           </li>
458         [% END %]
459         </ul>
460       </li>
461       [% END %]
462
463       <li class="dropdown" ng-show="username" uib-dropdown>
464         <a href class="glyphicon glyphicon-list" 
465           uib-dropdown-toggle></a>
466         <ul uib-dropdown-menu>
467           <li ng-if="!op_changed">
468             <a href="" ng-click="changeOperator()">
469               <span class="glyphicon glyphicon-random"></span>
470               [% l('Change Operator') %]
471             </a>
472           </li>
473           <li ng-if="op_changed">
474             <a href="" ng-click="changeOperatorUndo()">
475               <span class="glyphicon glyphicon-random"></span>
476               [% l('Restore Operator') %]
477             </a>
478           </li>
479           <li>
480             <a href="./login" ng-click="logout()" target="_self">
481               <span class="glyphicon glyphicon-log-out"></span>
482               [% l('Log Out') %]
483             </a>
484           </li>
485         </ul>
486       </li>
487     </ul>
488   </div>
489 </div>
490
491