From: Bill Erickson Date: Tue, 2 Feb 2021 19:48:46 +0000 (-0500) Subject: LP908568 Double-click copy opens editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Flp1908568-ang-holdings-dbl-click;p=working%2FEvergreen.git 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 --- 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); }