From 0d6bd380ba644ce2cf36a40edbfa5e231e1e19ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick?= Date: Wed, 20 Mar 2013 17:23:39 -0400 Subject: [PATCH] Bug 8600: can now remove search input fields in OPAC advanced search form If you follow the 'More options' link in the OPAC advanced search form, each search input field after the first now has a '-' button that lets you remove the box. This complements the '+' buttons that already existed that allow the user to add additional input fields. Signed-off-by: Cedric Vita Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- .../prog/en/modules/opac-advsearch.tt | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt index 825e8be16b..3ef70484d5 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt @@ -124,7 +124,10 @@ [% IF ( expanded_options ) %] - [% IF ( search_box.add_field ) %][+][% END %] + [% IF ( !loop.first ) %] + [+] + [-] + [% END %] [% END %]

[% END %] @@ -335,12 +338,21 @@ -- 2.39.5