From e75a067fb2a4745aa6ea69260f8f07f4d67ce279 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 17 Jun 2020 17:36:30 -0400 Subject: [PATCH] LPXXX Angular Volcopy Signed-off-by: Bill Erickson --- .../eg2/src/app/staff/cat/volcopy/vol-edit.component.html | 12 ++++++++++++ .../src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.html b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.html index eadae658d6..b132b0ab0c 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.html @@ -260,3 +260,15 @@ + +
+ +
+ + + +
+ diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts index a7975ab976..c5da3cce7d 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts @@ -162,6 +162,13 @@ export class VolEditComponent implements OnInit { } } + + addVol(org: IdlObject) { + if (!org) { return; } + const orgNode = this.context.findOrCreateOrgNode(org.id()); + this.createVols(orgNode, 1); + } + existingVolCount(orgNode: HoldingsTreeNode): number { return orgNode.children.filter(volNode => !volNode.target.isnew()).length; } -- 2.11.0