Bug 38438 - Make Add persistent selections and batch operations to item search optional
Summary: Make Add persistent selections and batch operations to item search optional
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Nick Clemens (kidclamp)
QA Contact: Testopia
URL:
Keywords:
Depends on: 34227
Blocks:
  Show dependency treegraph
 
Reported: 2024-11-13 19:54 UTC by Kristi Krueger
Modified: 2025-08-21 12:48 UTC (History)
3 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38438: Forget item selections on a new search (2.01 KB, patch)
2025-08-15 19:03 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 38438: Forget item selections on a new search (2.54 KB, patch)
2025-08-21 12:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kristi Krueger 2024-11-13 19:54:27 UTC
In Bug 34227 - Add persistent selections and batch operations to item search, selections from item searches are retained across item searches until they are manually cleared. 

This has proven to be confusing for our branch staff, and ideally this would be something that could be opted in or out of. 

A potential use case is that a branch staff member may run an item search of all items in a shelf location, select several, and export a list of those items for someone to pull from the shelf.

The branch staff member then does another item search with different criteria, then batch edits them to mark them missing. It is easy for them not to notice the additional selections or to forget to clear them, resulting in items edited by mistake.
Comment 1 Nick Clemens (kidclamp) 2025-08-15 19:03:26 UTC
Created attachment 185476 [details] [review]
Bug 38438: Forget item selections on a new search

This patch adds a new checkbox to the item search
"Forget item selections from previous search"

This way, selections are remembered when paginating, and can optionally
be kept between searches, but defaults to clearing the storage on a enw search.

To test:
1 - Do an item search for books, select two items
2 - Batch modify those items
3 - Do a new item search for music
4 - Select two items
5 - Batch delete them
6 - Note 4 items are going to be deleted
7 - Apply patch
8 - Start a new item search for books from centerville
9 - Note the form option to forget previous selections, leave it checked
10 - Do the search, select two items, batch modify, only 2!
11 - Start a new item search, uncheck the box, search
12 - Select two and batch modify, 4 items are sent!
13 - Popcorn!
Comment 2 Nick Clemens (kidclamp) 2025-08-21 12:48:33 UTC
Created attachment 185626 [details] [review]
Bug 38438: Forget item selections on a new search

This patch adds a new checkbox to the item search
"Forget item selections from previous search"

This way, selections are remembered when paginating, and can optionally
be kept between searches, but defaults to clearing the storage on a enw search.

To test:
1 - Do an item search for books, select two items
2 - Batch modify those items
3 - Do a new item search for music
4 - Select two items
5 - Batch delete them
6 - Note 4 items are going to be deleted
7 - Apply patch
8 - Start a new item search for books from centerville
9 - Note the form option to forget previous selections, leave it checked
10 - Do the search, select two items, batch modify, only 2!
11 - Start a new item search, uncheck the box, search
12 - Select two and batch modify, 4 items are sent!
13 - Popcorn!