[Koha-bugs] [Bug 26032] Add 'is new' filter in items search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 30 15:07:08 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26032

Séverine Queune <severine.queune at bulac.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #111962|0                           |1
        is obsolete|                            |

--- Comment #20 from Séverine Queune <severine.queune at bulac.fr> ---
Created attachment 112708
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112708&action=edit
Bug 26032: Add 'is new' filter in items search

In items search, add a filter on value of items.new_status with a
Ignore/Yes/No.
Yes meaning != 0, No meaning = 0, with considering that NULL value is like 0.

This patch adds 'isnull' option to filter, this may be reused on other
fields.

Test plan :
1) Define an item subfield on items.new_status with authorised values YES_NO (0
or 1)
2) Edit an item A to set new_status=1
3) Edit an item B to set new_status=0
4) Perform an item search with 'is new' = 'ignore' => you get all items
5) Perform an item search with 'is new' = 'yes' => you get item A
6) Perform an item search with 'is new' = 'no' => you get all items but A

Signed-off-by: Emmi Takkinen <emmi.takkinen at outlook.com>
Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list