]> git.evergreen-ils.org Git - Evergreen.git/commit
Coerce numbers for bib IDs in Angular staff catalog
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Mar 2019 16:43:32 +0000 (12:43 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 28 Mar 2019 13:51:54 +0000 (09:51 -0400)
commit1522d95ec18dec4fb562df8b29c2437a8faac5a0
tree3d8b0293fc360cb59cbcc380db0c957f1acafa85
parentc09ef9a36cabb111b052ca57ad5a92aca91bafc0
Coerce numbers for bib IDs in Angular staff catalog

Under some circumstances, the search results screen in the new
experimental Angular staff catalog did not display any results (though
it did show the pager, facets, etc.).

This was traced back to the results array attempting to be populated
with ID values of '-1' instead of the real IDs.  Coercing the incoming
IDs to numbers appears to resolve the issue.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts
Open-ILS/src/eg2/src/app/share/catalog/search-context.ts