Koha/koha-tmpl/intranet-tmpl/prog/js
Tomas Cohen Arazi 7af1a0f052 Bug 29404: Add infinite scrolling to pickup location dropdowns
This patch adds infinite scrolling to the pickup locations select2
dropdowns on the staff interface.

It does so by adding a new transport function (in select2.js) to read
the response headers Koha's API sends back, and converting to the right
data structure Select2 expects for the feature to work.

This is manually used in the different pickup locations dropdowns.
There's a separate bug that will introduce a select2 wrapper that will probably embed this function in it.

To test:
1. Run the [DO NOT PUSH] script inside koha-shell to generate random
   pickup locations:
   $ kshell
  k$ perl generate_pickup_locations.pl
2. Try placing holds. Notice the visible pickup locations dropdowns
   display some pickup locations based on the matches you got. They are
   all fetched once
=> SUCCESS: It works
3. Repeat for the current holds page and the patron holds listing
=> SUCCESS: Same behavior
4. Apply this patch
5. Repeat 2 and 3
=> SUCCESS: Things work, but pickup locations are retrieved as needed,
while you scroll.
6. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-11-08 11:42:07 +01:00
..
pages Bug 28180: Fix collision with existing verify_images 2021-10-21 12:24:04 +02:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
browser.js Bug 20529: Remove other occurrences of decodeURIComponent from browser.js 2021-09-01 15:53:41 +02:00
calendar.js Bug 28937: Use Flatpickr on circulation and patron pages 2021-09-29 12:47:33 +02:00
cart.js
cashup_modal.js
catalog.js
cataloging.js Bug 28445: UI change for repeatable and regex 2021-10-18 11:28:40 +02:00
cataloging_additem.js
categories.js Bug 28928: Minor follow-ups to Bug 28376 - Flatpickr introduction 2021-09-01 15:46:01 +02:00
charts.js
checkouts.js Bug 27296: Return claims should be filtered by default to show unresolved claims 2021-11-03 15:40:52 +01:00
circ-patron-search-results.js Bug 29193: Specify paging as false in circ-patron-search-results.js 2021-10-12 10:14:35 +02:00
datatables.js
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js Bug 29404: Add infinite scrolling to pickup location dropdowns 2021-11-08 11:42:07 +01:00
ill-availability-partner.js
ill-availability.js Bug 27170: Fix bug fix 2021-09-21 20:22:57 +02:00
ill-list-table.js Bug 29240: Centralise from/to handling 2021-10-19 09:50:08 +02:00
item_search_fields.js
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js
members-menu.js
members.js Bug 29278: Fix selector of hint used to show age 2021-10-25 13:56:35 +02:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js Bug 28982: Use Flatpickr on onboarding pages 2021-11-03 15:40:53 +01:00
register_selection.js
rotating-collections.js
select2.js Bug 29404: Add infinite scrolling to pickup location dropdowns 2021-11-08 11:42:07 +01:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js
subscription-add.js
table_filters.js
tools-menu.js
viewlog.js
xmlControlfield.js
z3950_search.js