LP908568 Double-click copy opens editor
authorBill Erickson <berickxx@gmail.com>
Tue, 2 Feb 2021 19:48:46 +0000 (14:48 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 15 Sep 2021 18:49:48 +0000 (14:49 -0400)
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 d0273a5..a240973 100644 (file)
@@ -333,7 +333,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);
         }