Lp 1913219: Use window.open for staff catalog edit link; angular version
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / catalog / record / copies.component.ts
index b9f2ec6..b12d8e3 100644 (file)
@@ -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 {