From 1d765df4620d6d373b070babc57d63914cb20ef6 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 --- 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 b50cad1c94..b6e263b38a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -270,7 +270,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.25.1