Bug 32960: Add option "not checked out" to item search
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 18 Feb 2023 11:15:35 +0000 (11:15 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 2 Mar 2023 15:00:17 +0000 (12:00 -0300)
commit0ded2bb2b7302df0c5614cab1ba6c5b8df8d6d23
tree8b985844be8701bf1b3be0d2b767253b23ae2f4f
parent2d31e83f37d325754ba468f5c05033ec76843988
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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt