Bug 26032: (follow-up) show 'is new' filter only if items.new_status is used
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 26 Oct 2020 09:49:49 +0000 (10:49 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 11:59:32 +0000 (12:59 +0100)
commit0833724afe7cb0d2f2db32c7e87f3df064e6a016
tree0d8ff29a0b5e34af076eee444e0782b299eb6d95
parent07cab93d5d9bd292368e097305f309419e746e2f
Bug 26032: (follow-up) show 'is new' filter only if items.new_status is used

Also adds a class 'item-new-status' to this filter to be able to hidde
even if items.new_status used.

Addition to test plan:
1) Apply on a database without Koha to MARC mapping on items.new_status
2) Check you dont see the 'is new' filter in items search form
3) Apply on a database with Koha to MARC mapping on items.new_status
4) Check you see class 'form-field item-new-status'

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
catalogue/itemsearch.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt