]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1865564 Holds grid avoid dupes (AngularJS)
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Jul 2020 16:22:52 +0000 (12:22 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 21 Aug 2020 16:23:56 +0000 (12:23 -0400)
commit8bc57fe58b364f0dc5dc43b3efa82adebdf8f9a0
treed9d4df9a36ee25d0c1358df764e57fa031ba9bfd
parent23a942869a7295db64a89513ab882e78342be6a6
LP1865564 Holds grid avoid dupes (AngularJS)

Address a couple if cases where the record holds grid in the AngularJS
staff catalog 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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/cat/services/holdings.js