LP1816475: Booking module refresh
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / patron.service.ts
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';
5
6
7 @Injectable()
8 export class PatronService {
9     constructor(
10         private net: NetService,
11         private auth: AuthService
12     ) {}
13
14     bcSearch(barcode: string): Observable<any> {
15         return this.net.request(
16             'open-ils.actor',
17             'open-ils.actor.get_barcodes',
18             this.auth.token(), this.auth.user().ws_ou(),
19            'actor', barcode);
20     }
21
22 }
23