LP1904036 Checkin route dialog sanity/data checks
authorBill Erickson <berickxx@gmail.com>
Thu, 19 Aug 2021 16:03:39 +0000 (12:03 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:36 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts
Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.html

index 422ddda..9e31e23 100644 (file)
@@ -760,7 +760,8 @@ export class CircService {
 
             if (patronId) {
                 promise = promise.then(_ => {
-                    return this.pcrud.retrieve('au', patronId)
+                    return this.pcrud.retrieve('au', patronId,
+                      {flesh: 1, flesh_fields : {'au' : ['card']}})
                     .toPromise().then(p => result.patron = p);
                 });
             }
index 108d2fa..920b326 100644 (file)
@@ -94,7 +94,7 @@
 
 <ng-template #transitTmpl>
   <div>
-    <span class="mr-2" i18n>checkin.destination</span>
+    <span class="mr-2" i18n>Destination</span>
     <strong>{{checkin.destOrg.shortname()}}</strong>
   </div>
   <div *ngIf="checkin.destCourierCode">{{checkin.destCourierCode}} </div>
   </div>
   <ng-container *ngTemplateOutlet="itemSummary"></ng-container>
   <br/>
-  <div *ngIf="checkin.patron">
+  <div *ngIf="checkin.hold">
     <ng-container *ngTemplateOutlet="patronSummary"></ng-container>
     <br/>
     <ng-container *ngTemplateOutlet="holdSummary"></ng-container>