LP1904036 Checkin grid get Edit Items action
authorBill Erickson <berickxx@gmail.com>
Mon, 29 Nov 2021 20:59:57 +0000 (15:59 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:42 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.html
Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts

index 0bd4165..0a9725c 100644 (file)
       </eg-grid-toolbar-action>
 
       <eg-grid-toolbar-action
+        i18n-group group="Edit" i18n-label label="Edit Items"
+        (onClick)="editItems($event)">
+      </eg-grid-toolbar-action>
+
+      <eg-grid-toolbar-action
         i18n-group group="Print" i18n-label label="Print Labels"
         (onClick)="openItemPrintLabels($event)">
       </eg-grid-toolbar-action>
index d072adc..f95481f 100644 (file)
@@ -421,6 +421,14 @@ export class CheckinComponent implements OnInit, AfterViewInit {
         this.holdings.spawnAddHoldingsUi(null, null, null, ids);
     }
 
+    editItems(rows: CheckinGridEntry[]) {
+        const ids = this.getCopyIds(rows);
+        if (ids.length === 0) { return; }
+
+        this.holdings.spawnAddHoldingsUi(null, null, null, ids, false, true);
+    }
+
+
     openItemPrintLabels(rows: CheckinGridEntry[]) {
         const ids = this.getCopyIds(rows);
         if (ids.length === 0) { return; }