LP1865564 Holds grid avoid dupes
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Jul 2020 16:22:52 +0000 (12:22 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Wed, 19 Aug 2020 20:05:49 +0000 (16:05 -0400)
commite8007e8d57a36ed07879126d5a900c44c88131c2
tree090913f62bea9c79862e02ba65a02c454b1a619a
parent8652e10688c3a63e5799fa00b2d0dba8fe4a900c
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>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/cat/services/holdings.js