1 import {Injectable} from '@angular/core';
2 import {NetService} from '@eg/core/net.service';
3 import {AuthService} from '@eg/core/auth.service';
4 import {Observable} from 'rxjs';
8 export class PatronService {
10 private net: NetService,
11 private auth: AuthService
14 bcSearch(barcode: string): Observable<any> {
15 return this.net.request(
17 'open-ils.actor.get_barcodes',
18 this.auth.token(), this.auth.user().ws_ou(),
19 'actor', barcode.trim());