--- loncom/interface/lonsearchcat.pm 2001/03/15 18:49:45 1.19 +++ loncom/interface/lonsearchcat.pm 2001/03/15 20:11:18 1.34 @@ -424,6 +424,35 @@ sub advancedsearch { my ($r,$envhash)=@_; my %ENV=%{$envhash}; + my $fillflag=0; + for my $field ('title','author','subject','keywords','url','version', + 'notes','abstract','mime','language','owner', + 'custommetadata') { + if (&filled($ENV{'form.basicexp'})) { + $fillflag++; + } + } + + unless ($fillflag) { + &output_blank_field_error($r); + return OK; + } + + $r->print(< +END + } + } (keys %ENV); + + $r->print(< + +The LearningOnline Network with CAPA +BEGINNING + $r->print(< + + +

Search Catalog

+
+$persistent + + +
+

Helpful Message

+

+Incorrect search query due to blank entry fields. +You need to fill in the relevant +fields on the search page in order for a query to be +processed. +

+ + +RESULTS +} + # ----------------------------- format and output results based on a reply list sub output_results { - my ($r,$envhash,@replylist)=@_; + my ($r,$envhash,$testval,@replylist)=@_; my %ENV=%{$envhash}; foreach my $reply (@replylist) { @@ -483,7 +564,7 @@ onClick="javascript:select_data('$title'
END $compiledresult.=<URL: $url +URL: $url
Title: $title
Author(s): $author
@@ -547,6 +628,7 @@ SCRIPT

Search Catalog

+$testval