[open-ils-commits] [GIT] Evergreen ILS branch rel_3_4 updated. aecaf2335799cde20d5378e564ab092cb6e4ccc1

Evergreen Git git at git.evergreen-ils.org
Mon Oct 21 15:45:49 EDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_3_4 has been updated
       via  aecaf2335799cde20d5378e564ab092cb6e4ccc1 (commit)
       via  a082f011293ac47db0d31924cc1b2c09b28ba8cf (commit)
       via  e30df0a860778c0e67a4bc3db6c4d69a262985e9 (commit)
       via  a0542e30977973b0fa899700ce8164e9ea0b2bee (commit)
       via  ae9bfc955119530ed69e55d987c009be06771e67 (commit)
       via  8a06a52969559e7de5fb0daeec0746250b4c3a4b (commit)
       via  ead545739f98db890ed208360b3a43e99f978825 (commit)
       via  d1a9bf440bf612fdba1c535fbe81b8686f34f813 (commit)
       via  895b001a19c7ce2859d1eb80aceee92f7070bb13 (commit)
       via  07e066f3b00692e92978bacad564055d4b58253a (commit)
       via  17d07eaa0e435fd48b5a6513df9921aa5b5a585f (commit)
       via  ee70b8e569c6d016416c289ba24cad32eb841156 (commit)
       via  6c8ab1f39a0af91537d21296fd4d9bcd7de82a0a (commit)
      from  3fc7397ee789df6cb9dc28e5c46b0aeeb58aa879 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aecaf2335799cde20d5378e564ab092cb6e4ccc1
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date:   Fri Oct 18 11:56:54 2019 -0400

    LP#1816475: offset the start time after end time alert
    
    Move the alert over to align with the date inputs for a slightly
    tidier appearance.
    
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html
index f5beb368f1..f2fa02107d 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html
@@ -34,7 +34,7 @@
         formControlName="endTime"
         [timezone]="timezone">
       </eg-datetime-select>
-      <div role="alert" class="alert alert-danger" *ngIf="create.errors && create.errors.startTimeNotBeforeEndTime">
+      <div role="alert" class="alert alert-danger offset-lg-4" *ngIf="create.errors && create.errors.startTimeNotBeforeEndTime">
         <span class="material-icons" aria-hidden="true">error</span>
         <span i18n>Start time must be before end time</span>
       </div>

commit a082f011293ac47db0d31924cc1b2c09b28ba8cf
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Oct 14 14:47:49 2019 -0700

    LP1816475: form validation prevents users from making reservations in the past
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
index 9e55db0f02..de821a1739 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
@@ -11,6 +11,7 @@ import {NetService} from '@eg/core/net.service';
 import {OrgService} from '@eg/core/org.service';
 import {PcrudService} from '@eg/core/pcrud.service';
 import {DialogComponent} from '@eg/share/dialog/dialog.component';
+import {notBeforeMomentValidator} from '@eg/share/validators/not_before_moment_validator.directive';
 import {PatronBarcodeValidator} from '@eg/share/validators/patron_barcode_validator.directive';
 import {ToastService} from '@eg/share/toast/toast.service';
 import {AlertDialogComponent} from '@eg/share/dialog/alert.component';
@@ -79,7 +80,7 @@ export class CreateReservationDialogComponent
                 [this.pbv.validate]
             ),
             'emailNotify': new FormControl(true),
-            'startTime': new FormControl(),
+            'startTime': new FormControl(null, notBeforeMomentValidator(Moment().add('15', 'minutes'))),
             'endTime': new FormControl(),
             'resourceList': new FormControl(),
         }, [startTimeIsBeforeEndTimeValidator]

commit e30df0a860778c0e67a4bc3db6c4d69a262985e9
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Oct 14 12:27:46 2019 -0700

    LP1816475: give booking pull list columns the correct datatype
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.html b/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.html
index d6715dd59e..296d2a1b5e 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.html
@@ -36,8 +36,8 @@
   <eg-grid-column label="Call number sortkey" path="call_number_sortkey" i18n-label></eg-grid-column>
   <eg-grid-column name="barcode" label="Barcode" i18n-label path="current_resource.barcode"></eg-grid-column>
   <eg-grid-column name="title" label="Title or name" i18n-label path="target_resource_type.name"></eg-grid-column>
-  <eg-grid-column label="Reservation start time" [datePlusTime]="true" path="reservations.0.start_time" i18n-label></eg-grid-column>
-  <eg-grid-column label="Reservation end time" [datePlusTime]="true" path="reservations.0.end_time" i18n-label></eg-grid-column>
+  <eg-grid-column label="Reservation start time" datatype="timestamp" [datePlusTime]="true" path="reservations.0.start_time" i18n-label></eg-grid-column>
+  <eg-grid-column label="Reservation end time" datatype="timestamp" [datePlusTime]="true" path="reservations.0.end_time" i18n-label></eg-grid-column>
   <eg-grid-column label="Patron first name" path="reservations.0.usr.first_given_name" i18n-label></eg-grid-column>
   <eg-grid-column label="Patron last name" path="reservations.0.usr.family_name" i18n-label></eg-grid-column>
 </eg-grid>

commit a0542e30977973b0fa899700ce8164e9ea0b2bee
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Wed Oct 9 20:27:43 2019 -0700

    LP1816475: Strip whitespace from patron barcodes
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/share/validators/patron_barcode_validator.directive.ts b/Open-ILS/src/eg2/src/app/share/validators/patron_barcode_validator.directive.ts
index 81d1b159b0..0910bf3ba1 100644
--- a/Open-ILS/src/eg2/src/app/share/validators/patron_barcode_validator.directive.ts
+++ b/Open-ILS/src/eg2/src/app/share/validators/patron_barcode_validator.directive.ts
@@ -19,7 +19,7 @@ export class PatronBarcodeValidator implements AsyncValidator {
             'open-ils.actor.get_barcodes',
             this.auth.token(),
             this.auth.user().ws_ou(),
-            'actor', control.value));
+            'actor', control.value.trim()));
     }
 
     private parseActorCall = (actorCall: Observable<any>) => {
diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
index 96b2b6c3ae..9e55db0f02 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
@@ -104,7 +104,7 @@ export class CreateReservationDialogComponent
                 'open-ils.booking',
                 'open-ils.booking.reservations.create',
                 this.auth.token(),
-                this.patronBarcode.value,
+                this.patronBarcode.value.trim(),
                 this.selectedTimes,
                 this.pickupLibId,
                 this.targetResourceType.id,
@@ -147,7 +147,7 @@ export class CreateReservationDialogComponent
                         'open-ils.actor.get_barcodes',
                         this.auth.token(),
                         this.auth.user().ws_ou(),
-                        'actor', this.patronBarcode.value).pipe(
+                        'actor', this.patronBarcode.value.trim()).pipe(
                             single(),
                             switchMap((result) => {
                                 return this.pcrud.retrieve('au', result[0]['id']).pipe(
diff --git a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts
index 239e1bf01b..30b67e0acc 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts
@@ -73,7 +73,7 @@ export class ManageReservationsComponent implements OnInit, OnDestroy {
                             'open-ils.actor',
                             'open-ils.actor.get_barcodes',
                             this.auth.token(), this.auth.user().ws_ou(),
-                           'actor', this.patronBarcode.value).pipe(
+                           'actor', this.patronBarcode.value.trim()).pipe(
                                single(),
                                tap((response) =>
                                    this.router.navigate(['/staff', 'booking', 'manage_reservations', 'by_patron', response[0].id])
diff --git a/Open-ILS/src/eg2/src/app/staff/share/patron.service.ts b/Open-ILS/src/eg2/src/app/staff/share/patron.service.ts
index b11626c71d..12fd1e137b 100644
--- a/Open-ILS/src/eg2/src/app/staff/share/patron.service.ts
+++ b/Open-ILS/src/eg2/src/app/staff/share/patron.service.ts
@@ -16,7 +16,7 @@ export class PatronService {
             'open-ils.actor',
             'open-ils.actor.get_barcodes',
             this.auth.token(), this.auth.user().ws_ou(),
-           'actor', barcode);
+           'actor', barcode.trim());
     }
 
 }

commit ae9bfc955119530ed69e55d987c009be06771e67
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Wed Oct 9 12:25:17 2019 -0700

    LP1816475: Change calendar_today icon to event icon
    
    The locally served calendar_today icon doesn't look good in buttons
    (like the date-select and datetime-select component buttons).  But the
    event icon looks very similar, and doesn't have the same negative
    effects when placed in buttons.
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.html b/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.html
index 80f0188482..f137beb496 100644
--- a/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.html
+++ b/Open-ILS/src/eg2/src/app/share/date-select/date-select.component.html
@@ -23,7 +23,7 @@
       <button class="btn btn-outline-secondary" [disabled]="disabled"
         (click)="datePicker.toggle()" type="button">
         <span title="Select Date" i18n-title
-          class="material-icons mat-icon-in-button">calendar_today</span>
+          class="material-icons mat-icon-in-button">event</span>
       </button>
     </div>
   </div>
diff --git a/Open-ILS/src/eg2/src/app/share/datetime-select/datetime-select.component.html b/Open-ILS/src/eg2/src/app/share/datetime-select/datetime-select.component.html
index 3b931e904c..f25e29acee 100644
--- a/Open-ILS/src/eg2/src/app/share/datetime-select/datetime-select.component.html
+++ b/Open-ILS/src/eg2/src/app/share/datetime-select/datetime-select.component.html
@@ -17,7 +17,7 @@
   <div class="input-group-btn">
     <button class="btn btn-primary" ngbDropdownToggle
       aria-label="Select date and time" i18n-aria-label>
-      <span class="material-icons mat-icon-in-button">calendar_today</span>
+      <span class="material-icons mat-icon-in-button">event</span>
     </button>
   </div>
   <div ngbDropdownMenu>

commit 8a06a52969559e7de5fb0daeec0746250b4c3a4b
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Wed Oct 9 11:42:08 2019 -0700

    LP1816475: use [routerLink] instead of href in Angular app
    
    Using <a href=""> forces a reload of the Angular app in the user's
    browser, which substantially slows down the experience.  This commit
    changes some href attributes to routerLink directives in the booking
    navigation menu.
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html
index d682541afb..265368a62a 100644
--- a/Open-ILS/src/eg2/src/app/staff/nav.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html
@@ -310,11 +310,11 @@
           Booking
         </a>
         <div class="dropdown-menu" ngbDropdownMenu>
-          <a class="dropdown-item" href="staff/booking/create_reservation">
+          <a class="dropdown-item" routerLink="/staff/booking/create_reservation">
             <span class="material-icons">add</span>
             <span i18n>Create Reservations</span>
           </a>
-          <a class="dropdown-item" href="staff/booking/pull_list">
+          <a class="dropdown-item" routerLink="/staff/booking/pull_list">
             <span class="material-icons">list</span>
             <span i18n>Pull List</span>
           </a>
@@ -322,15 +322,15 @@
             <span class="material-icons">pin_drop</span>
             <span i18n>Capture Resources</span>
           </a>
-          <a class="dropdown-item" href="staff/booking/pickup">
+          <a class="dropdown-item" routerLink="/staff/booking/pickup">
             <span class="material-icons">trending_up</span>
             <span i18n>Pick Up Reservations</span>
           </a>
-          <a class="dropdown-item" href="staff/booking/return">
+          <a class="dropdown-item" routerLink="/staff/booking/return">
             <span class="material-icons">trending_down</span>
             <span i18n>Return Reservations</span>
           </a>
-          <a class="dropdown-item" href="staff/booking/manage_reservations">
+          <a class="dropdown-item" routerLink="/staff/booking/manage_reservations">
             <span class="material-icons">layers</span>
             <span i18n>Manage Reservations</span>
           </a>

commit ead545739f98db890ed208360b3a43e99f978825
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Fri Sep 13 11:04:27 2019 -0700

    LP1816475: Fix resource type filter in manage reservations grid
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html
index 82cd431e21..1a7e94b8da 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html
@@ -49,7 +49,7 @@
         </ngb-tab>
         <ngb-tab id="type">
           <ng-template ngbTabTitle>
-            <span class="material-icons" *ngIf="resourceType.value">filter_list</span> <span i18n>Filter by resource type</span>
+            <span class="material-icons" *ngIf="resourceTypeForGrid">filter_list</span> <span i18n>Filter by resource type</span>
           </ng-template>
           <ng-template ngbTabContent>
             <div class="m-2">
diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
index 1ec400e446..f098e799d5 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
@@ -1,4 +1,4 @@
-import {Component, EventEmitter, Input, Output, OnInit, ViewChild} from '@angular/core';
+import {Component, EventEmitter, Input, Output, OnChanges, OnInit, ViewChild} from '@angular/core';
 import {Router} from '@angular/router';
 import {Observable, from, of} from 'rxjs';
 import {tap, switchMap, mergeMap} from 'rxjs/operators';
@@ -25,7 +25,7 @@ import * as Moment from 'moment-timezone';
     selector: 'eg-reservations-grid',
     templateUrl: './reservations-grid.component.html',
 })
-export class ReservationsGridComponent implements OnInit {
+export class ReservationsGridComponent implements OnChanges, OnInit {
 
     @Input() patron: number;
     @Input() resourceBarcode: string;
@@ -276,6 +276,8 @@ export class ReservationsGridComponent implements OnInit {
         };
     }
 
+    ngOnChanges() { this.reloadGrid(); }
+
     enrichRow$ = (row: IdlObject): Observable<IdlObject> => {
         return from(this.org.settings('lib.timezone', row.pickup_lib().id())).pipe(
             switchMap((tz) => {

commit d1a9bf440bf612fdba1c535fbe81b8686f34f813
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Fri Sep 13 08:16:15 2019 -0700

    LP1816475: Add ancestors checkbox to manage reservations screen
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html
index 8fb6071fb5..82cd431e21 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html
@@ -4,7 +4,7 @@
 
 <form [formGroup]="filters" class="row">
   <div class="col-sm-3">
-    <eg-org-family-select [hideAncestorSelector]="true" labelText="Reservation location" i18n-labelText formControlName="pickupLibraries">
+    <eg-org-family-select labelText="Reservation location" i18n-labelText formControlName="pickupLibraries">
     </eg-org-family-select>
   </div>
   <div class="col-sm-6 offset-sm-3">

commit 895b001a19c7ce2859d1eb80aceee92f7070bb13
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Sep 9 18:18:06 2019 -0700

    LP1816475: Don't let users edit reservation.email_notify, pickup_lib, request_lib
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
index db04ba4da5..1ec400e446 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
@@ -249,7 +249,7 @@ export class ReservationsGridComponent implements OnInit {
 
         this.listReadOnlyFields = () => {
             let list = 'usr,xact_start,request_time,capture_time,pickup_time,return_time,capture_staff,target_resource_type,' +
-                'current_resource,target_resource,unrecovered,request_library,pickup_library,fine_interval,fine_amount,max_fine';
+                'email_notify,current_resource,target_resource,unrecovered,request_lib,pickup_lib,fine_interval,fine_amount,max_fine';
             if (this.status && ('pickupReady' !== this.status)) { list = list + ',start_time'; }
             if (this.status && ('returnedToday' === this.status)) { list = list + ',end_time'; }
             return list;

commit 07e066f3b00692e92978bacad564055d4b58253a
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Sep 9 14:52:16 2019 -0700

    LP1816475: Add action buttons to Pickup and Return reservation screens
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html
index a0579b5fc3..b8b5b51e8d 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html
@@ -12,6 +12,13 @@
   <eg-grid-toolbar-action label="View Item Status" i18n-label (onClick)="viewItemStatus($event)" [disableOnRows]="notOneCatalogedItemSelected"></eg-grid-toolbar-action>
   <eg-grid-toolbar-action label="View Reservations for This Resource" i18n-label (onClick)="viewByResource($event)" [disableOnRows]="notOneResourceSelected"></eg-grid-toolbar-action>
   <eg-grid-toolbar-button *ngIf="!status" label="Create New Reservation" i18n-label (onClick)="redirectToCreate($event)"></eg-grid-toolbar-button>
+  <eg-grid-toolbar-button *ngIf="'pickupReady' === status" label="Pick Up Selected" i18n-label
+    (onClick)="pickupSelected($event)" [disabled]="!grid.context.getSelectedRows().length">
+    </eg-grid-toolbar-button>
+  <eg-grid-toolbar-button *ngIf="'returnReady' === status" label="Return Selected" i18n-label
+    (onClick)="returnSelected($event)" [disabled]="!grid.context.getSelectedRows().length">
+    </eg-grid-toolbar-button>
+
 
   <eg-grid-column name="id" [hidden]="true" [index]="true" i18n-label label="ID" path="id"></eg-grid-column>
   <eg-grid-column label="Patron username" [hidden]="true" i18n-label path="usr.usrname"></eg-grid-column>

commit 17d07eaa0e435fd48b5a6513df9921aa5b5a585f
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Sep 9 08:02:53 2019 -0700

    LP1816475: Return reservations screen refreshes properly
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
index 12dcc47294..db04ba4da5 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
@@ -19,6 +19,8 @@ import {CancelReservationDialogComponent} from './cancel-reservation-dialog.comp
 
 import * as Moment from 'moment-timezone';
 
+// A filterable grid of reservations used in various booking interfaces
+
 @Component({
     selector: 'eg-reservations-grid',
     templateUrl: './reservations-grid.component.html',
@@ -34,6 +36,7 @@ export class ReservationsGridComponent implements OnInit {
     @Input() onlyCaptured = false;
 
     @Output() onPickup = new EventEmitter<IdlObject>();
+    @Output() onReturn = new EventEmitter<IdlObject>();
 
     gridSource: GridDataSource;
     patronBarcode: string;
@@ -237,7 +240,10 @@ export class ReservationsGridComponent implements OnInit {
                this.auth.token(),
                {'patron_barcode': this.patronBarcode, 'reservation': reservation})
                .pipe(tap(
-                   () => { this.grid.reload(); },
+                   () => {
+                       this.onReturn.emit(reservation);
+                       this.grid.reload();
+                   },
                ));
         };
 

commit ee70b8e569c6d016416c289ba24cad32eb841156
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Sep 9 05:27:51 2019 -0700

    LP1816475: Fix an icon spacing issue
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html
index 104e82d287..1d6e6843f6 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html
@@ -30,7 +30,7 @@
     <ngb-tabset #details="ngbTabset">
       <ngb-tab id="select-resource-type">
         <ng-template ngbTabTitle>
-          <span class="material-icons">category</span>
+          <span class="material-icons">dns</span>
           <ng-container i18n>Choose resource by type</ng-container>
         </ng-template>
         <ng-template ngbTabContent>

commit 6c8ab1f39a0af91537d21296fd4d9bcd7de82a0a
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Mon Sep 9 05:11:15 2019 -0700

    LP1816475: Add a Create Reservation button to the Create Reservation screen
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts
index ae55c56f32..b9c1d30728 100644
--- a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts
+++ b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts
@@ -78,7 +78,7 @@ export class GridToolbarComponent implements OnInit {
 
     performButtonAction(button: GridToolbarButton) {
         const rows = this.gridContext.getSelectedRows();
-        button.onClick.emit();
+        button.onClick.emit(rows);
         if (button.action) { button.action(); }
     }
 
diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html
index 64bbdf84df..104e82d287 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.html
@@ -170,6 +170,7 @@
     [rowFlairCallback]="resourceAvailabilityIcon"
     [disablePaging]="true"
     persistKey="disabled">
+    <eg-grid-toolbar-button label="Create Reservation" i18n-label (onClick)="openTheDialog($event)"></eg-grid-toolbar-button>
     <eg-grid-toolbar-action label="Create Reservation" i18n-label (onClick)="openTheDialog($event)"></eg-grid-toolbar-action>
     <eg-grid-column path="time" [index]="true" name="Time" i18n-name [cellTemplate]="timeTemplate" ></eg-grid-column>
     <eg-grid-column *ngFor="let resource of resources" path="{{resource.barcode()}}" [cellTemplate]="reservationsTemplate" [disableTooltip]="true"></eg-grid-column>

-----------------------------------------------------------------------

Summary of changes:
 .../src/app/share/date-select/date-select.component.html |  2 +-
 .../share/datetime-select/datetime-select.component.html |  2 +-
 .../src/eg2/src/app/share/grid/grid-toolbar.component.ts |  2 +-
 .../validators/patron_barcode_validator.directive.ts     |  2 +-
 .../booking/create-reservation-dialog.component.html     |  2 +-
 .../staff/booking/create-reservation-dialog.component.ts |  7 ++++---
 .../app/staff/booking/create-reservation.component.html  |  3 ++-
 .../app/staff/booking/manage-reservations.component.html |  4 ++--
 .../app/staff/booking/manage-reservations.component.ts   |  2 +-
 .../eg2/src/app/staff/booking/pull-list.component.html   |  4 ++--
 .../app/staff/booking/reservations-grid.component.html   |  7 +++++++
 .../src/app/staff/booking/reservations-grid.component.ts | 16 ++++++++++++----
 Open-ILS/src/eg2/src/app/staff/nav.component.html        | 10 +++++-----
 Open-ILS/src/eg2/src/app/staff/share/patron.service.ts   |  2 +-
 14 files changed, 41 insertions(+), 24 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list