1 import {Component, OnInit, ViewChild} from '@angular/core';
2 import {StaffCatalogService} from './catalog.service';
3 import {BasketService} from '@eg/share/catalog/basket.service';
4 import {SearchFormComponent} from './search-form.component';
7 templateUrl: 'browse.component.html'
9 export class BrowseComponent implements OnInit {
11 @ViewChild('searchForm') searchForm: SearchFormComponent;
14 private staffCat: StaffCatalogService,
15 private basket: BasketService
19 // A SearchContext provides all the data needed for browse.
20 this.staffCat.createContext();
22 // Cache the basket on page load.
23 this.basket.getRecordIds();
25 this.searchForm.searchTab = 'browse';