]> git.koha-community.org Git - koha.git/commit
Bug 4037: Add item type filter to inventory tool
authorAleisha Amohia <aleishaamohia@hotmail.com>
Sun, 17 Jan 2021 21:12:59 +0000 (10:12 +1300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Feb 2021 08:23:51 +0000 (09:23 +0100)
commit8057a433f6fed432367a0a80e3c62446fd5697c2
tree1ddee23316934d8c93a98d5705b6c5c1abbf45c7
parent175a1eddd1efdf70a60b5fb0fb8dc52a9211c65f
Bug 4037: Add item type filter to inventory tool

This patch adds the ability to filter inventory by item type. Multiple
item types can be selected at once.

To test:
1) Apply patch and restart services.
2) Set up (at least) one item of a specific item type.
3) Go to Tools -> Inventory.
4) Scroll down to find the item types filter. Confirm the 'select all'
and 'clear all' buttons work as expected.
5) Select a few item types, but DO NOT include the item type that you
just set for your item. Confirm that your item does not show in the
results.
6) Go back to the Inventory tool. This time submit a search that DOES
include the item type you just set for your item. Confirm that your item
does show in the results.
7) Confirm tests pass:
prove t/db_dependent/Items/GetItemsForInventory.t

Sponsored-by: Bibliotheksservice-Zentrum Baden-Württemberg (BSZ)
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Items.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
t/db_dependent/Items/GetItemsForInventory.t
tools/inventory.pl