Bug 39843 - Use select2 for multiple selects on patron attributes and extend due dates pages
Summary: Use select2 for multiple selects on patron attributes and extend due dates pages
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Martin Renvoize (ashimema)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-06 14:03 UTC by Owen Leonard
Modified: 2025-05-16 12:27 UTC (History)
3 users (show)

See Also:
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 (4.33 KB, patch)
2025-05-06 14:17 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages (4.37 KB, patch)
2025-05-08 21:50 UTC, David Nind
Details | Diff | Splinter Review
Bug 39843: Use select2 for multiple selects on patron attributes and extend due dates pages (4.44 KB, patch)
2025-05-16 12:14 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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!