Staff catalog => Numeric Search => Item Barcode
Display the standard 'No Maching Items Were Found' message when a
barcode search returns no results.
Prior to this patch, the search progress indicator would freeze as the
page failed to completely render on JS error.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
'open-ils.search.multi_home.bib_ids.by_barcode',
ctx.identSearch.value
).toPromise().then(ids => {
+ // API returns an event for not-found barcodes
+ if (!Array.isArray(ids)) { ids = []; }
const result = {
count: ids.length,
ids: ids.map(id => [id])