<span class="material-icons">collections_bookmark</span>
<span i18n>Retrieve Bib Record by TCN</span>
</a>
- <a href="" ng-click="retrieveLastRecord()"
+ <a (click)="retrieveLastRecord()"
eg-accesskey="shift+f8"
eg-accesskey-desc="Retrieve Last Bib Record" class="dropdown-item">
<span class="material-icons">redo</span>
import {PcrudService} from '@eg/core/pcrud.service';
import {LocaleService} from '@eg/core/locale.service';
import {PrintService} from '@eg/share/print/print.service';
+import {StoreService} from '@eg/core/store.service';
@Component({
selector: 'eg-staff-nav-bar',
constructor(
private router: Router,
+ private store: StoreService,
private org: OrgService,
private auth: AuthService,
private pcrud: PcrudService,
reprintLast() {
this.printer.reprintLast();
}
+
+ // TODO: Point to Angular catalog when the time comes
+ retrieveLastRecord() {
+ const recId = this.store.getLocalItem('eg.cat.last_record_retrieved');
+ if (recId) {
+ window.location.href = '/eg/staff/cat/catalog/record/' + recId;
+ }
+ }
}