--- loncom/interface/lonsearchcat.pm 2001/03/08 16:54:20 1.4 +++ loncom/interface/lonsearchcat.pm 2001/03/12 17:28:32 1.7 @@ -7,6 +7,9 @@ package Apache::lonsearchcat; use strict; use Apache::Constants qw(:common); +use Apache::lonnet(); +use Apache::File(); +use CGI qw(:standard); my %language; my $scrout; @@ -16,6 +19,17 @@ my %mimetag; sub handler { my $r = shift; + +# -------------------------------------- see if called from an interactive mode + map { + my ($name, $value) = split(/=/,$_); + $value =~ tr/+/ /; + $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; + if ($name eq 'catalogmode') { + $ENV{'form.'.$name}=$value; + } + } (split(/&/,$ENV{'QUERY_STRING'})); + $r->content_type('text/html'); $r->send_http_header; return OK if $r->header_only; @@ -56,6 +70,10 @@ sub handler { } <$fh>; } + if ($ENV{'form.basicsubmit'} eq 'SEARCH') { + return &basicsearch($r,$ENV{'form.basicexp'}); + } + $scrout=""; $scrout.=&searchphrasefield('Limit by title','title', ''); @@ -616,14 +634,34 @@ LASTREVISIONDATEEND