LP908568 Double-click copy opens editor user/berick/lp1908568-ang-holdings-dbl-click
authorBill Erickson <berickxx@gmail.com>
Tue, 2 Feb 2021 19:48:46 +0000 (14:48 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 2 Feb 2021 19:48:49 +0000 (14:48 -0500)
Double-clicking a copy row in the Angular staff catalog Holdings View
now opens the copy in the copy editor.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts

index 2a58ef6..9409767 100644 (file)
@@ -319,7 +319,16 @@ export class HoldingsMaintenanceComponent implements OnInit {
 
     onRowActivate(row: any) {
         if (row.copy) {
-            // Launch copy editor?
+            // LP1888723 when the time comes
+            // this.router.navigate(['/staff/cat/volcopy/attrs/item/', row.copy.id());
+
+            this.holdings.spawnAddHoldingsUi(
+                this.recordId,
+                [row.copy.call_number()],
+                null,
+                [row.copy.id()]
+            );
+
         } else {
             this.gridTemplateContext.toggleExpandRow(row);
         }