Skip to content

Commit 28bbb8c

Browse files
committed
URI encode the barcode
Some Welch barcodes include percent symbols in addition to alpha-numeric chars.
1 parent 18900f7 commit 28bbb8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudapp/src/app/item.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export class ItemService {
1313
constructor(private restService: CloudAppRestService) { }
1414

1515
getItemByBarcode(barcode: string): Observable<Item> {
16+
1617
const request: Request = {
17-
url: `/almaws/v1/items?item_barcode=${barcode}`,
18+
url: `/almaws/v1/items?item_barcode=${encodeURI(barcode)}`,
1819
method: HttpMethod.GET
1920
};
2021
return this.restService.call(request);

0 commit comments

Comments
 (0)