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=903d777d5bdf2a78e75fefeea2f570e3eb479dae;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 be8b0a3f3a..8f90bd91a3 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 @@ -95,8 +95,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'; @@ -115,12 +117,21 @@ export class HoldComponent implements OnInit { return ctx; }); + this.resetForm(); + if (this.holdFor === 'staff') { this.holdForChanged(); } this.getTargetMeta(); + this.placeHoldsClicked = false; + } + + ngOnInit() { + + this.reset(); + this.org.settings(['sms.enable', 'circ.holds.max_duplicate_holds']) .then(sets => {