From b8ae9f059cc3a772bccb2d8675f12cb035664342 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Tue, 2 Feb 2021 11:58:16 -0800 Subject: [PATCH] Lp 1913219: Use window.open for staff catalog edit link; angular version Signed-off-by: Jane Sandberg Signed-off-by: Jason Stephenson --- .../eg2/src/app/staff/catalog/record/copies.component.html | 4 ++-- .../eg2/src/app/staff/catalog/record/copies.component.ts | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html index 21b8d9fa96..b3fc10a838 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html @@ -10,8 +10,8 @@ View | - Edit + Edit diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts index b9f2ec68a6..b12d8e3494 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts @@ -34,6 +34,8 @@ export class CopiesComponent implements OnInit { cellTextGenerator: GridCellTextGenerator; + openHoldingsEditor: (item: number) => void; + constructor( private course: CourseService, private net: NetService, @@ -75,6 +77,11 @@ export class CopiesComponent implements OnInit { this.copyGrid.reload(); } }); + + this.openHoldingsEditor = (item: number) => { + window.open('/eg/staff/cat/item/' + item + '/edit', '_blank'); + } + } orgName(orgId: number): string { -- 2.43.2