752557c503b7b926f841ecd3c67c56d9af567650
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / catalog / basket-actions.component.html
1 <eg-bucket-dialog #addBasketToBucketDialog>
2 </eg-bucket-dialog>
3
4 <div class="d-flex justify-content-end">
5   <div class="pr-1">
6     <div class="float-right">
7       <!-- note basket view link does not propagate search params -->
8       <a routerLink="/staff/catalog/search" [queryParams]="{showBasket: true}" 
9         class="label-with-material-icon">
10         <span class="material-icons">shopping_basket</span>
11         <span i18n>({{basketCount()}})</span>
12       </a>
13     </div>
14   </div>
15   <div class="pr-1">
16     <div ngbDropdown placement="bottom-right">
17       <button class="btn btn-light" id="basketActions"
18         [disabled]="!basketCount()"
19         ngbDropdownToggle i18n>Basket Actions</button>
20       <div ngbDropdownMenu aria-labelledby="basketActions">
21         <button class="dropdown-item"
22           (click)="applyAction('view')" i18n>View Basket</button>
23         <button class="dropdown-item"
24           (click)="applyAction('hold')" i18n>Place Hold</button>
25         <button class="dropdown-item"
26           (click)="applyAction('print')" i18n>Print Title Details</button>
27         <button class="dropdown-item"
28           (click)="applyAction('email')" i18n>Email Title Details</button>
29         <button class="dropdown-item"
30           (click)="applyAction('bucket')" i18n>Add Basket to Bucket</button>
31         <button class="dropdown-item"
32           (click)="applyAction('export_marc')" i18n>Export Records</button>
33         <button class="dropdown-item"
34           (click)="applyAction('clear')" i18n>Clear Basket</button>
35       </div>
36     </div>
37   </div>
38   <div>
39     <!-- Note this Prefernces links is not specific to Basket handling,
40         but it's here since it allowed for consistent formatting -->
41     <a routerLink="/staff/catalog/prefs" queryParamsHandling="merge">
42       <button class="btn btn-light" i18n>Catalog Preferences</button>
43     </a>
44   </div>
45 </div>