LP1865564 Holds grid avoid dupes
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Jul 2020 16:22:52 +0000 (12:22 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 16 Jul 2020 16:25:05 +0000 (12:25 -0400)
commit95c3cbdc3b373bcff0bc059dc3c7df779fc0f59b
tree6580f8146a3316d3cd007bc779bf71a1b4dece90
parent433059d7aac834be9c893491a14353ed996db48b
LP1865564 Holds grid avoid dupes

Address a couple if cases where the record holds grid would make
multiple network calls to fetch holds data.  In some cases, these calls
would result displaying duplicate holds.

1. Avoid fetching holds when the pickup lib selector fires its on change
if the value provided matches the pickup lib we are already using.

2. Avoid reseting and reloading the grid during an active grid load.
Instead wait for the current load to complete before launching the next
load action.

Patch also includes a minor sanity check in the holdings code to avoid
console errors caused during pickup lib change.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/cat/services/holdings.js