From c2eb8179fc3d10684994b0f7eae9e8db4828d6ce Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 2 Feb 2021 14:48:46 -0500 Subject: [PATCH] LP908568 Double-click copy opens editor 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 --- .../eg2/src/app/staff/catalog/record/holdings.component.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts index 2a58ef605c..9409767fd5 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts @@ -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); } -- 2.11.0