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