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>
This commit is contained in:
Katrin Fischer 2023-02-18 11:15:35 +00:00 committed by Tomas Cohen Arazi
parent 2d31e83f37
commit 0ded2bb2b7
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -213,6 +213,8 @@
<label for="onloan_indifferent">Ignore</label>
<input type="radio" name="onloan" id="onloan_yes" value="IS NOT NULL" />
<label for="onloan_yes">Checked out</label>
<input type="radio" name="onloan" id="onloan_no" value="IS NULL" />
<label for="onloan_no">Not checked out</label>
</div>
</fieldset>
<fieldset>