Bug 27016: Make the pickup locations dropdowns use Select2
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 17 Nov 2020 15:08:39 +0000 (12:08 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Jan 2021 15:33:15 +0000 (16:33 +0100)
commit4d3d7fd7a257bd34a3a1846c88223bf2923f4d90
tree443881875ea2219a51bc016a7e9c3d931693b63e
parenta60c1b77f8d5175707afcafe543cda9d404b1883
Bug 27016: Make the pickup locations dropdowns use Select2

On the shoulders of bug 27015, this patch makes the pickup locations
dropdowns use Select2 to handle both fetching the pickup location
on-deman through the API, and also searching for them.

This provides a better user experience for really big lists.

To test:
1. Have some holds on a biblio
=> SUCCESS: Bug 26988 works, made it load the data when you click on the
dropdowns.
2. Apply this patch
3. Reload the page
=> SUCCESS: Similar-ish behaviour
=> SUCCESS: Notice you can search for branch names and make the list
shrink
4. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/js/holds.js