LP1829567 Angular navbar access key additions
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / nav.component.html
1 <div id="staff-navbar" class="navbar fixed-top navbar-expand navbar-default">
2   <div class="collapse navbar-collapse">
3     <div class="navbar-nav">
4       <div class="nav-item">
5         <a i18n class="nav-link with-material-icon" 
6           href="/eg/staff/"
7           egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
8           keySpec="alt+h" keyDesc="Navigate Home">
9           <span class="material-icons">home</span>
10         </a>
11       </div>
12     </div>
13
14     <div class="navbar-nav">
15       <div ngbDropdown class="nav-item dropdown">
16         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
17          Search
18         </a>
19         <div class="dropdown-menu" ngbDropdownMenu>
20           <a class="dropdown-item" href="/eg/staff/circ/patron/search"
21             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
22             keySpec="alt+s f4" keyDesc="Patron Search">
23             <span class="material-icons">person</span>
24             <span i18n>Search for Patrons</span>
25           </a>
26           <a class="dropdown-item" href="/eg/staff/cat/item/search">
27             <span class="material-icons">assignment</span>
28             <span i18n>Search for Items by Barcode</span>
29           </a>
30           <a href="/eg/staff/cat/catalog/index" class="dropdown-item"
31             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
32             keySpec="f3" keyDesc="Catalog">
33             <span class="material-icons">search</span>
34             <span i18n>Search the Catalog</span>
35           </a>
36         </div>
37       </div>
38     </div>
39
40     <div class="navbar-nav">
41       <div ngbDropdown class="nav-item dropdown">
42         <a ngbDropdownToggle class="nav-link dropdown-toggle">
43          <span i18n>Circulation</span>
44         </a>
45         <div class="dropdown-menu" ngbDropdownMenu>
46           <a class="dropdown-item" href="/eg/staff/circ/patron/bcsearch"
47             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
48             keySpec="f1" keyDesc="Checkout">
49             <span class="material-icons">trending_up</span>
50             <span i18n>Check Out</span>
51           </a>
52           <a class="dropdown-item" href="/eg/staff/circ/checkin/checkin"
53             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
54             keySpec="f2" keyDesc="Checkin">
55             <span class="material-icons">trending_down</span>
56             <span i18n>Check In</span>
57           </a>
58           <a class="dropdown-item" href="/eg/staff/circ/checkin/capture"
59             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
60             keySpec="shift+f2" keyDesc="Capture Holds">
61             <span class="material-icons">pin_drop</span>
62             <span i18n>Capture Holds</span>
63           </a>
64           <a class="dropdown-item" href="/eg/staff/circ/holds/pull">
65             <span class="material-icons">view_list</span>
66             <span i18n>Pull List for Hold Requests</span>
67           </a>
68           <a class="dropdown-item" href="/eg/staff/circ/renew/renew"
69             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
70             keySpec="ctrl+f2" keyDesc="Renew Items">
71             <span class="material-icons">autorenew</span>
72             <span i18n>Renew Items</span>
73           </a>
74           <a class="dropdown-item" href="/eg/staff/circ/patron/register"
75             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
76             keySpec="shift+f1" keyDesc="Register Patron">
77             <span class="material-icons">person_add</span>
78             <span i18n>Register Patron</span>
79           </a>
80           <a class="dropdown-item" href="/eg/staff/circ/patron/last"
81             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
82             keySpec="f8" keyDesc="Retrieve Last Patron">
83             <span class="material-icons">redo</span>
84             <span i18n>Retrieve Last Patron</span>
85           </a>
86           <a class="dropdown-item" href="/eg/staff/circ/patron/search?show_recent=1">
87             <span class="material-icons">redo</span>
88             <span i18n>Retrieve Recent Patrons</span>
89           </a>
90           <a class="dropdown-item" href="/eg/staff/circ/patron/pending/list">
91             <span class="material-icons">thumb_up</span>
92             <span i18n>Pending Patrons</span>
93           </a>
94           <a class="dropdown-item" href="/eg/staff/circ/patron/bucket/view">
95             <span class="material-icons">list</span>
96             <span i18n>User Buckets</span>
97           </a>
98           <div class="dropdown-divider"></div>
99           <a class="dropdown-item" href="/eg/staff/circ/patron/credentials">
100             <span class="material-icons">check_circle</span>
101             <span i18n>Verify Credentials</span>
102           </a>
103           <a class="dropdown-item" href="/eg/staff/circ/in_house_use/index"
104             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
105             keySpec="f6" keyDesc="Record In-House Use">
106             <span class="material-icons">playlist_add</span>
107             <span i18n>Record In-House Use</span>
108           </a>
109           <a class="dropdown-item" href="/eg/staff/circ/holds/shelf">
110             <span class="material-icons">format_list_bulleted</span>
111             <span i18n>Holds Shelf</span>
112           </a>
113           <div class="dropdown-divider"></div>
114           <a class="dropdown-item" href="/eg/staff/cat/item/replace_barcode/index">
115             <span class="material-icons">library_books</span>
116             <span i18n>Replace Barcode</span>
117           </a>
118           <a class="dropdown-item" href="/eg/staff/cat/item/search"
119             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
120             keySpec="f5" keyDesc="Navigate To Item Status">
121             <span class="material-icons">question_answer</span>
122             <span i18n>Item Status</span>
123           </a>
124           <a class="dropdown-item" href="/eg/staff/cat/item/missing_pieces">
125             <span class="material-icons">grid_on</span>
126             <span i18n>Scan Item as Missing Pieces</span>
127           </a>
128           <div class="dropdown-divider"></div>
129           <a class="dropdown-item" (click)="reprintLast()"
130             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
131             keySpec="f9" keyDesc="Reprint Last Receipt">
132             <span class="material-icons">redo</span>
133             <span i18n>Reprint Last Receipt</span>
134           </a>
135           <div class="dropdown-divider"></div>
136           <a class="dropdown-item" href="/eg/staff/offline-interface">
137             <span class="material-icons">signal_wifi_off</span>
138             <span i18n>Offline Circulation</span>
139           </a>
140         </div>
141       </div>
142     </div>
143
144     <!-- CATALOGING -->
145     
146     <div class="navbar-nav">
147       <div ngbDropdown class="nav-item dropdown">
148         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
149          Cataloging
150         </a>
151         <div class="dropdown-menu" ngbDropdownMenu>
152
153           <a href="/eg/staff/cat/catalog/index" class="dropdown-item"
154             egAccessKey keyCtx="navbar"i18n-keySpec i18n-keyDesc
155             keySpec="f3" keyDesc="Catalog">
156             <span class="material-icons">search</span>
157             <span i18n>Search the Catalog</span>
158           </a>
159           <a *ngIf="showAngularCatalog"
160             class="dropdown-item"
161             routerLink="/staff/catalog/search">
162             <span class="material-icons">search</span>
163             <span i18n>Staff Catalog (Experimental)</span>
164           </a>
165           <a class="dropdown-item" href="/eg/staff/cat/item/search"
166             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
167             keySpec="f5" keyDesc="Navigate To Item Status">
168             <span class="material-icons">question_answer</span>
169             <span i18n>Item Status</span>
170           </a>
171           <div class="dropdown-divider"></div>
172           <a href="/eg/staff/cat/bucket/record/view" class="dropdown-item">
173             <span class="material-icons">list_alt</span>
174             <span i18n>Record Buckets</span>
175           </a>
176           <a href="/eg/staff/cat/bucket/copy/view" class="dropdown-item">
177             <span class="material-icons">list_alt</span>
178             <span i18n>Item Buckets</span>
179           </a>
180           <div class="dropdown-divider"></div>
181           <a href="/eg/staff/cat/catalog/retrieve_by_id" class="dropdown-item">
182             <span class="material-icons">collections</span>
183             <span i18n>Retrieve Bib Record by ID</span>
184           </a>
185           <a href="/eg/staff/cat/catalog/retrieve_by_tcn"
186             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
187             keySpec="shift+f3" keyDesc="Retrieve Bib Record by TCN">
188             <span class="material-icons">collections_bookmark</span>
189             <span i18n>Retrieve Bib Record by TCN</span>
190           </a>
191           <a (click)="retrieveLastRecord()"
192             egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
193             keySpec="shift+f8" keyDesc="Retrieve Last Bib Record">
194             <span class="material-icons">redo</span>
195             <span i18n>Retrieve Last Bib Record</span>
196           </a>
197           <div class="dropdown-divider"></div>
198           <a href="/eg/staff/cat/catalog/new_bib" class="dropdown-item">
199             <span class="material-icons">add</span>
200             <span i18n>Create New MARC Record</span>
201           </a>
202           <a href="/eg/staff/cat/z3950/index" class="dropdown-item">
203             <span class="material-icons">cloud_download</span>
204             <span i18n>Import Record from Z39.50</span>
205           </a>
206           <a routerLink="/staff/cat/vandelay/import" class="dropdown-item">
207             <span class="material-icons">import_export</span>
208             <span i18n>MARC Batch Import/Export</span>
209           </a>
210           <a href="/eg/staff/cat/catalog/batchEdit" class="dropdown-item">
211             <span class="material-icons">format_paint</span>
212             <span i18n>MARC Batch Edit</span>
213           </a>
214           <div class="dropdown-divider"></div>
215           <a href="/eg/staff/cat/catalog/verifyURLs" class="dropdown-item">
216             <span class="material-icons">link</span>
217             <span i18n>Link Checker</span>
218           </a>
219           <div class="dropdown-divider"></div>
220           <a href="/eg/staff/cat/catalog/manageAuthorities" class="dropdown-item">
221             <span class="material-icons">lock</span>
222             <span i18n>Manage Authorities</span>
223           </a>
224           <a href="/eg/staff/cat/catalog/retrieve_by_authority_id" class="dropdown-item">
225             <span class="material-icons">collections</span>
226             <span i18n>Retrieve Authority Record by ID</span>
227           </a>
228         </div>
229       </div>
230     </div>
231
232     <!-- ACQUISITIONS -->
233
234     <div class="navbar-nav">
235       <div ngbDropdown class="nav-item dropdown">
236         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
237           Acquisitions
238         </a>
239         <div class="dropdown-menu" ngbDropdownMenu>
240           <a class="dropdown-item" 
241             href="/eg/staff/acq/legacy/search/unified">
242             <span class="material-icons">search</span>
243             <span i18n>General Search</span>
244           </a>
245           <div class="dropdown-divider"></div>
246           <a class="dropdown-item" 
247             href="/eg/staff/acq/legacy/search/unified?ca=pl">
248             <span class="material-icons">view_list</span>
249             <span i18n>My Selection Lists</span>
250           </a>
251           <a class="dropdown-item" 
252             href="/eg/staff/acq/legacy/picklist/brief_record">
253             <span class="material-icons">edit</span>
254             <span i18n>New Brief Record</span>
255           </a>
256           <a class="dropdown-item" 
257             href="/eg/staff/acq/legacy/picklist/user_request">
258             <span class="material-icons">thumb_up</span>
259             <span i18n>Patron Requests</span>
260           </a>
261           <a class="dropdown-item" 
262             href="/eg/staff/acq/legacy/picklist/bib_search">
263             <span class="material-icons">cloud_download</span>
264             <span i18n>MARC Federated Search</span>
265           </a>
266           <a class="dropdown-item" 
267             href="/eg/staff/acq/legacy/picklist/from_bib">
268             <span class="material-icons">trending_down</span>
269             <span i18n>Load Catalog Record IDs</span>
270           </a>
271           <div class="dropdown-divider"></div>
272           <a class="dropdown-item" 
273             href="/eg/staff/acq/legacy/picklist/upload">
274             <span class="material-icons">cloud_upload</span>
275             <span i18n>Load MARC Order Records</span>
276           </a>
277           <a class="dropdown-item" 
278             href="/eg/staff/acq/legacy/search/unified?ca=po">
279             <span class="material-icons">shopping_cart</span>
280             <span i18n>Purchase Orders</span>
281           </a>
282           <a class="dropdown-item" href="/eg/staff/acq/legacy/po/create">
283             <span class="material-icons">add_shopping_cart</span>
284             <span i18n>Create Purchase Order</span>
285           </a>
286           <div class="dropdown-divider"></div>
287           <a class="dropdown-item" 
288             href="/eg/staff/acq/legacy/financial/claim_eligible">
289             <span class="material-icons">contact_phone</span>
290             <span i18n>Claim-Ready Items</span>
291           </a>
292           <a class="dropdown-item" 
293             href="/eg/staff/acq/legacy/search/unified?ca=inv">
294             <span class="material-icons">attach_money</span>
295             <span i18n>Open Invoices</span>
296           </a>
297           <a class="dropdown-item" 
298             href="/eg/staff/acq/legacy/invoice/view?create=1">
299             <span class="material-icons">monetization_on</span>
300             <span i18n>Create Invoice</span>
301           </a>
302         </div>
303       </div>
304     </div>
305
306     <div class="navbar-nav">
307       <div ngbDropdown class="nav-item dropdown">
308         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
309           Booking
310         </a>
311         <div class="dropdown-menu" ngbDropdownMenu>
312           <a class="dropdown-item" href="/eg/staff/booking/legacy/booking/reservation">
313             <span class="material-icons">add</span>
314             <span i18n>Create Reservations</span>
315           </a>
316           <a class="dropdown-item" href="/eg/staff/booking/legacy/booking/pull_list">
317             <span class="material-icons">list</span>
318             <span i18n>Pull List</span>
319           </a>
320           <a class="dropdown-item" href="/eg/staff/booking/legacy/booking/capture">
321             <span class="material-icons">pin_drop</span>
322             <span i18n>Capture Resources</span>
323           </a>
324           <a class="dropdown-item" href="/eg/staff/booking/legacy/booking/pickup">
325             <span class="material-icons">trending_up</span>
326             <span i18n>Pick Up Reservations</span>
327           </a>
328           <a class="dropdown-item" href="/eg/staff/booking/legacy/booking/return">
329             <span class="material-icons">trending_down</span>
330             <span i18n>Return Reservations</span>
331           </a>
332         </div>
333       </div>
334     </div>
335
336     <div class="navbar-nav">
337       <div ngbDropdown class="nav-item dropdown">
338         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
339           Administration
340         </a>
341         <div class="dropdown-menu" ngbDropdownMenu>
342           <a class="dropdown-item" href="/eg/staff/admin/workstation/index">
343             <span class="material-icons">computer</span>
344             <span i18n>Workstation</span>
345           </a>
346           <!--
347           Leaving here as a reminder this UI exists.
348           <a class="dropdown-item"
349               routerLink="/staff/admin/workstation/workstations/manage">
350             <span class="material-icons">computer</span>
351             <span i18n>Registered Workstations</span>
352           </a>
353           -->
354           <a class="dropdown-item" href="/eg/staff/admin/user_perms">
355             <span class="material-icons">person</span>
356             <span i18n>User Permission Editor</span>
357           </a>
358           <a class="dropdown-item"
359               routerLink="/staff/admin/server/splash">
360             <span class="material-icons">account_balance</span>
361             <span i18n>Server Administration</span>
362           </a>
363           <a class="dropdown-item" href="/eg/staff/admin/local/index">
364             <span class="material-icons">landscape</span>
365             <span i18n>Local Administration</span>
366           </a>
367           <a class="dropdown-item"
368               routerLink="/staff/admin/acq/splash">
369             <span class="material-icons">attach_money</span>
370             <span i18n>Acquisitions Administration</span>
371           </a>
372           <a class="dropdown-item" href="/eg/staff/admin/serials/index">
373             <span class="material-icons">layers</span>
374             <span i18n>Serials Administration</span>
375           </a>
376           <a class="dropdown-item"
377               routerLink="/staff/admin/booking/splash">
378             <span class="material-icons">business_center</span>
379             <span i18n>Booking Administration</span>
380           </a>
381           <a class="dropdown-item" href="/eg/staff/reporter/legacy/main">
382             <span class="material-icons">insert_chart_outlined</span>
383             <span i18n>Reports</span>
384           </a>
385         </div>
386       </div>
387     </div>
388
389
390     <div class="navbar-nav mr-auto"></div>
391     <div class="navbar-nav" *ngIf="user()">
392       <span i18n>{{user()}} @ {{workstation()}}</span>
393     </div>
394     <div class="navbar-nav" *ngIf="locales.length > 1 && currentLocale">
395       <div ngbDropdown class="nav-item dropdown" placement="bottom-right">
396         <a ngbDropdownToggle i18n i18n-title
397           title="Select Locale"
398           class="nav-link dropdown-toggle no-caret with-material-icon">
399           <i class="material-icons">flag</i>
400           <span>{{currentLocale.name()}}</span>
401         </a>
402         <div class="dropdown-menu" ngbDropdownMenu>
403           <a class="dropdown-item" (click)="setLocale(locale)" 
404             [ngClass]="{disabled: currentLocale.code() == locale.code()}"
405             *ngFor="let locale of locales">
406             <span class="material-icons">add_location</span>
407             <span i18n>{{locale.name()}}</span>
408           </a>
409         </div>
410       </div>
411     </div>
412     <div class="navbar-nav" *ngIf="user()">
413       <div ngbDropdown class="nav-item dropdown" placement="bottom-right">
414         <a ngbDropdownToggle i18n 
415           i18n-title
416           title="Log out and more..."
417           class="nav-link dropdown-toggle no-caret with-material-icon">
418           <i class="material-icons">list</i>
419         </a>
420         <div class="dropdown-menu" ngbDropdownMenu>
421           <eg-op-change #navOpChange
422             i18n-failMessage
423             i18n-successMessage
424             failMessage="Operator Change Failed"
425             successMessage="Operator Change Succeeded">
426           </eg-op-change>
427           <a class="dropdown-item" *ngIf="!opChangeActive()" 
428             (click)="navOpChange.open()">
429             <span class="material-icons">transform</span>
430             <span i18n>Change Operator</span>
431           </a>
432           <a *ngIf="opChangeActive()" class="dropdown-item" 
433             (click)="navOpChange.restore()">
434             <span class="material-icons">transform</span>
435             <span i18n>Restore Operator</span>
436           </a>
437           <a class="dropdown-item" (click)="logout()">
438             <span class="material-icons">lock_outline</span>
439             <span i18n>Logout</span>
440           </a>
441           <a class="dropdown-item" routerLink="/staff/about">
442             <span class="material-icons">info_outline</span>
443             <span i18n>About</span>
444           </a>
445         </div>
446       </div>
447     </div>
448   </div>
449 </div>
450