LP1821382 Booking menu entry placeholders
authorBill Erickson <berickxx@gmail.com>
Tue, 26 Mar 2019 18:15:12 +0000 (14:15 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 29 May 2019 19:30:51 +0000 (15:30 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>

Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.html
Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts

index 8957345..bf5ee84 100644 (file)
     <eg-grid-toolbar-action
       i18n-group group="Add" i18n-label label="Add Items To Bucket"
       (onClick)="openBucketDialog($event)">
-    Z</eg-grid-toolbar-action>
+    </eg-grid-toolbar-action>
+
+    <!-- row actions: Booking -->
+
+    <eg-grid-toolbar-action
+      i18n-group group="Booking" i18n-label label="Book Item Now"
+      (onClick)="bookItems($event)">
+    </eg-grid-toolbar-action>
 
+    <eg-grid-toolbar-action
+      i18n-group group="Booking" i18n-label label="Make Items Bookable"
+      (onClick)="makeBookable($event)">
+    </eg-grid-toolbar-action>
+    
     <!-- row actions: Edit -->
 
     <eg-grid-toolbar-action
index 6405b0d..555ac83 100644 (file)
@@ -871,4 +871,18 @@ export class HoldingsMaintenanceComponent implements OnInit {
             );
         }
     }
+
+    bookItems(rows: HoldingsEntry[]) {
+        const copyIds = this.selectedCopyIds(rows);
+        if (copyIds.length > 0) {
+            alert('TODO');
+        }
+    }
+
+    makeBookable(rows: HoldingsEntry[]) {
+        const copyIds = this.selectedCopyIds(rows);
+        if (copyIds.length > 0) {
+            alert('TODO');
+        }
+    }
 }