import {Component, OnInit, ViewChild} from '@angular/core';
import {StaffCatalogService} from './catalog.service';
-import {BasketService} from '@eg/share/catalog/basket.service';
import {SearchFormComponent} from './search-form.component';
@Component({
@ViewChild('searchForm') searchForm: SearchFormComponent;
constructor(
- private staffCat: StaffCatalogService,
- private basket: BasketService
+ private staffCat: StaffCatalogService
) {}
ngOnInit() {
// A SearchContext provides all the data needed for browse.
this.staffCat.createContext();
-
- // Cache the basket on page load.
- this.basket.getRecordIds();
-
this.searchForm.searchTab = 'browse';
}
}