@@ -, +, @@ --- cataloguing/z3950_search.pl | 8 ++++++++ .../prog/en/modules/cataloguing/z3950_search.tmpl | 18 +++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) --- a/cataloguing/z3950_search.pl +++ a/cataloguing/z3950_search.pl @@ -103,6 +103,14 @@ if ( $op ne "do_search" ) { } else { my @id = $input->param('id'); + + if ( not defined @id ) { + # empty server list -> report and exit + $template->param( emptyserverlist => 1 ); + output_html_with_http_headers $input, $cookie, $template->output; + exit; + } + my @oConnection; my @oResult; my @errconn; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl @@ -22,6 +22,7 @@ function closemenu(){ $(".linktools").hide(); $("tr").removeClass("selected"); } + $(document).ready(function(){ $("#CheckAll").click(function(){ $(".checkboxed").checkCheckboxes(); @@ -52,6 +53,13 @@ $(document).ready(function(){ var row = $(this).parent(); row.addClass("selected"); }); + $("form[name='f']").submit(function(){ + if ($('input[type=checkbox]').filter(':checked').length == 0) { + alert(_("Please choose at least one Z39.50 target")); + return false; + } else + return true; + }); }); //]]> @@ -153,9 +161,13 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : - - Connection failed to - + + You didn't select any Z39.50 target. + + + Connection failed to + +

Nothing found. ">Try another search.

--