From 71f34fd60ee037ce49bb94dcbf2c8229a684ee48 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 16 Nov 2018 16:21:18 -0500 Subject: [PATCH] place holds continued Signed-off-by: Bill Erickson --- .../src/app/staff/catalog/hold/hold.component.html | 17 +++++++++++++++-- .../eg2/src/app/staff/catalog/hold/hold.component.ts | 20 ++++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html index 7f403ffd81..275686c724 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html @@ -1,4 +1,9 @@ -

Place Hold

+ +

Place Hold + + ({{user.family_name()}}, {{user.first_given_name()}} {{user.second_given_name()}}) + +

@@ -94,9 +99,17 @@ +
+
+ +
+
-
+

+ +
Placing hold(s) on record(s)
Holds Status
diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts index f31dd35f89..b499b067f4 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts @@ -77,7 +77,8 @@ export class HoldComponent implements OnInit { this.userBarcodeChanged(); } } else { - this.currentUserBarcode = '_'; // just for preventing dupes + // To bypass the dupe check. + this.currentUserBarcode = '_' + this.requestor.id(); this.getUser(this.requestor.id()); } } @@ -94,7 +95,11 @@ export class HoldComponent implements OnInit { } this.resetForm(); - if (!this.userBarcode) { return; } + + if (!this.userBarcode) { + this.user = null; + return; + } this.user = null; this.currentUserBarcode = this.userBarcode; @@ -164,6 +169,17 @@ export class HoldComponent implements OnInit { break; } }); + + if (!this.user.email()) { + this.notifyEmail = false; + } + + if (!this.phoneValue) { + this.notifyPhone = false; + } + } + + placeHolds() { } } -- 2.11.0