From: Bill Erickson Date: Tue, 28 Jul 2020 15:48:33 +0000 (-0400) Subject: LP1889128 Staffcat hold form reset option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=76abaf9c4bd6e88c0999cfbad38331010f455ab8;p=working%2FEvergreen.git LP1889128 Staffcat hold form reset option Adds a Reset button to the staff catalog holds form so subsequent holds may be placed for the same items but for different patrons. Signed-off-by: Bill Erickson --- 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 714e3f10cd..2ee4e8825f 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 @@ -166,16 +166,16 @@ +
  • + + + +
  • -
    -
    - -
    -

    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 2e0af89ec6..0daf064591 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 @@ -97,8 +97,10 @@ export class HoldComponent implements OnInit { this.smsCarriers = []; } - ngOnInit() { + reset() { + this.user = null; + this.userBarcode = null; this.holdType = this.route.snapshot.params['type']; this.holdTargets = this.route.snapshot.queryParams['target']; this.holdFor = this.route.snapshot.queryParams['holdFor'] || 'patron'; @@ -122,11 +124,19 @@ export class HoldComponent implements OnInit { return ctx; }); + this.resetForm(); + if (this.holdFor === 'staff' || this.userBarcode) { this.holdForChanged(); } this.getTargetMeta(); + this.placeHoldsClicked = false; + } + + ngOnInit() { + + this.reset(); this.org.settings(['sms.enable', 'circ.holds.max_duplicate_holds']) .then(sets => {