Bug 39843

Summary: Use select2 for multiple selects on patron attributes and extend due dates pages
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Pushed to main --- QA Contact: Martin Renvoize (ashimema) <martin.renvoize>
Severity: enhancement    
Priority: P5 - low CC: david, martin.renvoize, testopia
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Small patch Documentation contact:
Documentation submission: Text to go in the release notes:
This improves the selection of values on these pages: - Patron attribute types: for the Library limitation field - Batch extend due dates: for the Patron categories, Item types, and Libraries fields Instead of selecting multiple values from a dropdown list using the Ctrl key, you can either select or start typing the value, select or press enter, then repeat to select additional values.
Version(s) released in:
25.05.00
Circulation function:
Attachments: Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages

Description Owen Leonard 2025-05-06 14:03:27 UTC
Like Bug 39099.
Comment 1 Owen Leonard 2025-05-06 14:17:20 UTC
Created attachment 181980 [details] [review]
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages

This patch adds Select2 functionality to the select[multiple] fields on
the patron attributes and batch extend due dates pages.

To test, apply the patch and go to Administration -> Patron attribute
types.

- Create or edit a patron attribute type.
- Test the "Library limitation" field: Selecting a single or multiple
  library and clearing selections.
- Save your changes and confirm that your selections were saved
  correctly.
- Perform the same test on Tools -> Batch extend due dates:
  - Test the patron categories, item types, and libraries fields.

Sponsored-by: Athens County Public Libraries
Comment 2 David Nind 2025-05-08 21:50:59 UTC
Created attachment 182126 [details] [review]
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages

This patch adds Select2 functionality to the select[multiple] fields on
the patron attributes and batch extend due dates pages.

To test, apply the patch and go to Administration -> Patron attribute
types.

- Create or edit a patron attribute type.
- Test the "Library limitation" field: Selecting a single or multiple
  library and clearing selections.
- Save your changes and confirm that your selections were saved
  correctly.
- Perform the same test on Tools -> Batch extend due dates:
  - Test the patron categories, item types, and libraries fields.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Martin Renvoize (ashimema) 2025-05-16 12:14:56 UTC
Created attachment 182522 [details] [review]
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages

This patch adds Select2 functionality to the select[multiple] fields on
the patron attributes and batch extend due dates pages.

To test, apply the patch and go to Administration -> Patron attribute
types.

- Create or edit a patron attribute type.
- Test the "Library limitation" field: Selecting a single or multiple
  library and clearing selections.
- Save your changes and confirm that your selections were saved
  correctly.
- Perform the same test on Tools -> Batch extend due dates:
  - Test the patron categories, item types, and libraries fields.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Comment 4 Katrin Fischer 2025-05-16 12:27:19 UTC
Pushed for 25.05!

Well done everyone, thank you!