Bug 32960 - Add option in item search for excluding checked out items
Summary: Add option in item search for excluding checked out items
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Katrin Fischer
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-14 16:39 UTC by Donna
Modified: 2023-12-28 20:45 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.05.00


Attachments
Bug 32960: Add option "not checked out" to item search (1.58 KB, patch)
2023-02-18 11:18 UTC, Katrin Fischer
Details | Diff | Splinter Review
Bug 32960: Add option "not checked out" to item search (1.64 KB, patch)
2023-02-18 15:03 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 32960: Add option "not checked out" to item search (1.71 KB, patch)
2023-02-23 10:26 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Donna 2023-02-14 16:39:58 UTC
In item search for availability, the current options are "ignore" and "checked out" - it would be really helpful to add a third option that is "available" so that search results only return available items and not include anything that is currently checked out.
Comment 1 Katrin Fischer 2023-02-18 11:18:30 UTC
Created attachment 146913 [details] [review]
Bug 32960: Add option "not checked out" to item search

This enhances the availability search option on item search
to have a third option: ignore, checked out and not checked out.
I chose 'not checked out' as available could be misleading,
the item might still be lost or withdrawn and not on the shelf.

To test:
* Apply patch
* Make sure some items are checked out
* Search with 'ignore' - note number of results
* Search with 'checked out' - note number of results
* Search with 'not checked out' - number of results should
  match ignore minus checked out
Comment 2 Owen Leonard 2023-02-18 15:03:46 UTC
Created attachment 146919 [details] [review]
Bug 32960: Add option "not checked out" to item search

This enhances the availability search option on item search
to have a third option: ignore, checked out and not checked out.
I chose 'not checked out' as available could be misleading,
the item might still be lost or withdrawn and not on the shelf.

To test:
* Apply patch
* Make sure some items are checked out
* Search with 'ignore' - note number of results
* Search with 'checked out' - note number of results
* Search with 'not checked out' - number of results should
  match ignore minus checked out

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Jonathan Druart 2023-02-23 10:26:20 UTC
Created attachment 147215 [details] [review]
Bug 32960: Add option "not checked out" to item search

This enhances the availability search option on item search
to have a third option: ignore, checked out and not checked out.
I chose 'not checked out' as available could be misleading,
the item might still be lost or withdrawn and not on the shelf.

To test:
* Apply patch
* Make sure some items are checked out
* Search with 'ignore' - note number of results
* Search with 'checked out' - note number of results
* Search with 'not checked out' - number of results should
  match ignore minus checked out

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Tomás Cohen Arazi 2023-03-02 14:59:38 UTC
Pushed to master for 23.05.

Nice work everyone, thanks!