1 import {Component, OnInit, ViewChild} from '@angular/core';
2 import {StaffCatalogService} from './catalog.service';
3 import {SearchFormComponent} from './search-form.component';
6 templateUrl: 'cnbrowse.component.html'
8 export class CnBrowseComponent implements OnInit {
10 @ViewChild('searchForm', { static: true }) searchForm: SearchFormComponent;
13 private staffCat: StaffCatalogService,
17 // A SearchContext provides all the data needed for browse.
18 this.staffCat.createContext();
19 this.searchForm.searchTab = 'cnbrowse';