From: Bill Erickson Date: Fri, 9 Apr 2021 16:50:38 +0000 (-0400) Subject: LP1904036 checkin; route dialogs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6e2930c594de0f5bb6df867bf893129f9f26ae7c;p=Evergreen.git LP1904036 checkin; route dialogs Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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 e347c1aefe..619e31f812 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 @@ -260,18 +260,13 @@ export class CircService { // the transit we want, since a transit close + open in the API // returns the closed transit. - return this.pcrud.search('atc', - { dest_recv_time : null, cancel_time : null}, - { flesh : 1, + return this.pcrud.search('atc', { + dest_recv_time : null, + cancel_time : null, + target_copy: result.copy.id() + }, { + flesh : 1, flesh_fields : {atc : ['target_copy']}, - join : { - acp : { - filter : { - barcode : result.params.copy_barcode, - deleted : 'f' - } - } - }, limit : 1, order_by : {atc : 'source_send_time desc'}, }, {authoritative : true} @@ -627,6 +622,12 @@ export class CircService { return this.components.routeToCatalogingDialog.open() .toPromise().then(_ => result); } + + case 'ROUTE_ITEM': + this.components.routeDialog.checkin = result; + return this.components.routeDialog.open().toPromise() + .then(_ => result); + } return Promise.resolve(result); diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/components.component.html b/Open-ILS/src/eg2/src/app/staff/share/circ/components.component.html index 5c69ceb636..3032516bad 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/components.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/components.component.html @@ -21,5 +21,7 @@ + + diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.html index 18505983d8..a8d85ebb16 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.html @@ -7,6 +7,8 @@