Koha/koha-tmpl/intranet-tmpl/prog/js
Owen Leonard a027cffcf4
Bug 29971: Remember selections across patron search pages
This patch modifies the patron search results page to enable checkbox
selections to be remembered in the browser's localStorage. This allows
checkbox selections to persist while navigating through multiple pages
of search results or even across multiple different searches.

Once selected, these values can be added to a patron list or submitted
for merging. Selections can be cleared manually and will be
automatically be removed upon logout.

To test, apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

- In the staff interface perform a patron search in the Patrons module
  which will return multiple pages of results..
- Check checkboxes next to several patrons.
  - After one checkbox is checked the "Add to patron list" button should
    be enabled.
  - After more than one checkbox is checked the "Merge selected patrons"
    button should be enabled.
- A box should appear in the toolbar above the search results, "Patrons
  selected: X"
- Navigate to another page of results. Check more checkboxes. The
  "Patrons selected" information should be updated.
- Return to the first page of results. Your original selections should
  still be checked.
- Test that the correct set of patrons is used when clicking "Merge
  selected patrons" or when using "Add to patron list."
- Click the "Clear" button in the selections information box. Checkboxes
  should be cleared on every page of results you previously checked.
  - The "Add to patron list" and "Merge selected patrons" buttons should
    become disabled.
- After making several selections, log out of the staff interface and
  log back in, returning to the same patron search. Your selections
  should have been forgotten.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-05 14:48:49 -03:00
..
pages Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js Bug 30389: Switch to Bootstrap tabs on the page for adding orders from MARC file 2022-07-29 16:09:45 -03:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
authorities-detail-modal.js
authtype.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
browser.js
calendar.js
cart.js
cashup_modal.js Bug 31121: Fix date formatting in cashup summary modal 2022-07-22 14:48:43 -03:00
catalog.js
cataloging.js
cataloging_additem.js Bug 24857: Add ability to set item group when adding a new item 2022-07-08 16:00:07 -03:00
categories.js Bug 30864: Add validation to password_expiry_days 2022-06-06 13:49:00 -03:00
charts.js
checkout_renewals_modal.js Bug 23838: (QA follow-up) Move include files 2022-07-22 12:53:50 -03:00
checkouts.js Bug 29983: Display the pretend claim column in overdue.tt 2022-08-05 14:44:16 -03:00
datatables.js Bug 31138: Don't ignore DataTables errors and raise them to the end-user 2022-07-22 14:07:13 -03:00
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js Bug 28723: Replace "No title" by an empty string 2022-06-02 09:44:39 -03:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js
item_search_fields.js
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js
members-menu.js Bug 30028: Fix patron message delete confirmation to be translatable 2022-08-01 09:08:57 -03:00
members.js Bug 31251: Use jQuery val() to clear_entry 2022-08-01 09:04:28 -03:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
patron-autocomplete.js Bug 30578: Fix multi-terms search 2022-07-18 11:01:45 -03:00
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js Bug 31085: Reload return claims table on resolve 2022-07-01 16:08:22 -03:00
rotating-collections.js
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 29971: Remember selections across patron search pages 2022-08-05 14:48:49 -03:00
subscription-add.js Bug 26377: Simplify JS code 2022-07-20 09:56:24 -03:00
table_filters.js
tools-menu.js
upload-images.js
viewlog.js Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
xmlControlfield.js
z3950_search.js