Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
addRecentPatron(): Promise<any> {
return this.serverStore.getItem('ui.staff.max_recent_patrons')
- .then(sets => {
- const num = sets['ui.staff.max_recent_patrons'];
+ .then(num => {
if (num) { this.maxRecentPatrons = num; }
const patrons: number[] =
<span class="material-icons" aria-hidden="true">redo</span>
<span i18n>Retrieve Last Patron</span>
</a>
- <a class="dropdown-item" href="/eg/staff/circ/patron/search?show_recent=1">
+ <a class="dropdown-item" routerLink="/staff/circ/patron/search/recents">
<span class="material-icons" aria-hidden="true">redo</span>
<span i18n>Retrieve Recent Patrons</span>
</a>
let observable: Observable<IdlObject>;
- if (this.patronIds) {
+ if (this.patronIds && !this.startWithFired) {
observable = this.searchById(this.patronIds);
- this.patronIds = null;
+ this.startWithFired = true;
} else if (this.search.id) {
observable = this.searchById([this.search.id]);
} else {