1 import {Component, OnInit} from '@angular/core';
2 import {IdlObject} from '@eg/core/idl.service';
3 import {StaffCatalogService} from './catalog.service';
4 import {BasketService} from '@eg/share/catalog/basket.service';
7 templateUrl: 'catalog.component.html'
9 export class CatalogComponent implements OnInit {
12 private basket: BasketService,
13 private staffCat: StaffCatalogService
17 // Create the search context that will be used by all of my
18 // child components. After initial creation, the context is
19 // reset and updated as needed to apply new search parameters.
20 this.staffCat.createContext();
23 // Returns the 'au' object for the patron who we are
24 // trying to place a hold for.
25 holdForUser(): IdlObject {
26 return this.staffCat.holdForUser;
30 this.staffCat.holdForUser = null;
31 this.staffCat.holdForBarcode = null;