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