--- loncom/interface/lonsearchcat.pm 2003/06/16 20:54:39 1.180 +++ loncom/interface/lonsearchcat.pm 2003/07/14 13:54:02 1.184 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.180 2003/06/16 20:54:39 matthew Exp $ +# $Id: lonsearchcat.pm,v 1.184 2003/07/14 13:54:02 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -207,7 +207,7 @@ sub handler { ## this once, so the pause indicator is deleted ## if (exists($ENV{'form.pause'})) { - sleep(3); + sleep(1); delete($ENV{'form.pause'}); } ## @@ -557,7 +557,7 @@ ENDDOCUMENT ' '; my $relatedcheckbox = &simplecheckbox('related',$ENV{'form.related'}); my $domain = $r->dir_config('lonDefDomain'); - my $domaincheckbox = &simplecheckbox('domains',$domain,'checked'); + my $domaincheckbox = &simplecheckbox('domains',$domain); $scrout.=<{$server}; - &update_status($r,'contacting '.$server); } else { # wait a sec. to give time for files to be written # This sleep statement is here instead of outside the else # block because we do not want to pause if we have servers # left to contact. + if (scalar (keys(%Server_status))) { + &update_status($r, + 'waiting on '.(join(' ',keys(%Server_status)))); + } sleep(1); } # - if (scalar (keys(%Server_status))) { - &update_status($r,'waiting on '.(join(' ',keys(%Server_status)))); - } # # Loop through the servers we have contacted but do not # have results from yet, looking for results. @@ -2394,7 +2405,8 @@ sub display_results { ."\n" ); if ($total_results == 0) { - $r->print("

There are currently no results.

Please try to reload this page, which will update the display.\n". + $r->print(''. + '

There are currently no results.

'. ""); return; } else {