From 1119faf3efa245b39458daf581e23a60b70b576f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Oct 2014 11:17:48 +0200 Subject: [PATCH] Bug 12648: Hide the result search on load When no search has been done yet, it's not necessary to display the result list. Signed-off-by: Paola Rossi Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- acqui/add_user_search.pl | 1 + .../prog/en/modules/acqui/add_user_search.tt | 71 +++++++++++++++---- 2 files changed, 59 insertions(+), 13 deletions(-) diff --git a/acqui/add_user_search.pl b/acqui/add_user_search.pl index c4717c5d4b..646e2171aa 100755 --- a/acqui/add_user_search.pl +++ b/acqui/add_user_search.pl @@ -51,5 +51,6 @@ my $search_patrons_with_acq_perm_only = $template->param( patrons_with_acq_perm_only => $search_patrons_with_acq_perm_only, + view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", ); output_html_with_http_headers( $input, $cookie, $template->output ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/add_user_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/add_user_search.tt index a61a5be80b..2a7233fc02 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/add_user_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/add_user_search.tt @@ -8,15 +8,32 @@