}
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;
$(".linktools").hide();
$("tr").removeClass("selected");
}
+
$(document).ready(function(){
$("#CheckAll").click(function(){
$(".checkboxed").checkCheckboxes();
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;
+ });
});
//]]>
<!-- /TMPL_LOOP --></tbody>
</table>
<!-- TMPL_ELSE -->
- <!-- TMPL_LOOP name="errconn" -->
- Connection failed to <!-- TMPL_VAR NAME="server" -->
- <!-- /TMPL_LOOP -->
+ <!-- TMPL_IF NAME="emptyserverlist" -->
+ You didn't select any Z39.50 target.
+ <!-- TMPL_ELSE -->
+ <!-- TMPL_LOOP name="errconn" -->
+ Connection failed to <!-- TMPL_VAR NAME="server" -->
+ <!-- /TMPL_LOOP -->
+ <!-- /TMPL_IF -->
<p>Nothing found. <a href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Try another search</a>.</p>
<!-- /TMPL_IF -->