From 29b746cb6ebecd7b7f115b83511f523d62ffaa58 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 14 Jun 2022 10:34:44 -0400 Subject: [PATCH] LP1904036 Checkin retarget (all) holds fix Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../app/staff/circ/checkin/checkin.component.ts | 8 +++++++- .../eg2/src/app/staff/share/circ/circ.service.ts | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts index 6a5ccfd..d072adc 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts @@ -190,7 +190,13 @@ export class CheckinComponent implements OnInit, AfterViewInit { Object.keys(this.modifiers).forEach(mod => { if (this.modifiers[mod]) { - params[mod] = true; + if (mod === 'retarget_holds') { + params.retarget_mode = 'retarget'; + } else if (mod === 'retarget_holds_all') { + params.retarget_mode = 'retarget.all'; + } else { + params[mod] = true; + } } }); diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts index dfd3afb..630ba72 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts @@ -180,8 +180,7 @@ export interface CheckinParams { manual_float?: boolean; do_inventory_update?: boolean; no_precat_alert?: boolean; - retarget_holds?: boolean; - retarget_holds_all?: boolean; + retarget_mode?: string; // internal / local values that are moved from the API request. _override?: boolean; -- 1.7.2.5