Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
[patronIds]="recentPatronIds()"
[startWithSearch]="context.lastPatronSearch"
(searchFired)="patronSearchFired($event)"
+ (formCleared)="patronSearchCleared()"
(selectionChange)="patronSelectionChange($event)"
(patronsActivated)="patronsActivated($event)">
</eg-patron-search>
return 0;
}
}
+
+ patronSearchCleared() {
+ this.context.summary = null;
+ this.patronId = null;
+ }
}
// any searches run as a result of @Input() startWithSearch.
@Output() searchFired: EventEmitter<PatronSearch>;
+ // Fired when the search form is cleared via the Clear Form button.
+ @Output() formCleared: EventEmitter<void> = new EventEmitter<void>();
+
search: any = {};
searchOrg: IdlObject;
expandForm: boolean;
clear() {
this.search = {profile: null};
+ this.searchGrid.reload();
+ this.formCleared.emit();
}
getRows(pager: Pager, sort: any[]): Observable<any> {