From: Bill Erickson Date: Tue, 8 Dec 2020 20:33:13 +0000 (-0800) Subject: LP1907286 Staff catalog sets last retrieved record X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=449df5977e71c212f0b2d533971f434a59ca4b2f;p=contrib%2FConifer.git LP1907286 Staff catalog sets last retrieved record Navigating to the detail page for a bib record in the Angular Staff Catalog now correctly sets the value for the 'eg.cat.last_record_retrieved' local storage item, allowing Retrieve Last Bib Record to work as expected. Signed-off-by: Bill Erickson Signed-off-by: Garry Collum Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts index fc7ba54ea1..80e6e19e46 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts @@ -66,6 +66,8 @@ export class RecordComponent implements OnInit { this.recordId = +params.get('id'); this.searchContext = this.staffCat.searchContext; + this.store.setLocalItem('eg.cat.last_record_retrieved', this.recordId); + if (!this.recordTab) { this.recordTab = this.defaultTab || 'item_table'; }