From f32ccbf2d73229a204dc002f4513e32ea85a11cb Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 11 Mar 2020 14:00:21 +0300 Subject: [PATCH] Bug 24847: Select AND by default in items search In items search form, when clicking on "New field" a new conjunction and search field are added. It would save time to select AND conjunction by default, like it is in advanced search. Test plan: 1) Go to items search 2) Click on "New field" 3) Check that AND is selected Signed-off-by: Sally Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index ee1b43ea74..c217d55400 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -257,7 +257,7 @@ copy.find('input,select').not('[type="hidden"]').each(function() { $(this).val(''); }); - copy.find('.form-field-conjunction').prop('disabled', false); + copy.find('.form-field-conjunction').prop('disabled', false).val('and'); form_field.after(copy); link.remove(); copy.find('select.form-field-column').change(); -- 2.39.5