--- loncom/interface/lonsearchcat.pm 2001/03/21 01:01:43 1.46
+++ loncom/interface/lonsearchcat.pm 2001/03/21 12:51:15 1.62
@@ -52,10 +52,20 @@ my %metadatafields;
my %cprtag;
my %mimetag;
my $closebutton;
-my $viewselect=<
-
-
+my $basicviewselect=<
+
+
+
+
+
+END
+my $advancedviewselect=<
+
+
+
+
END
@@ -83,7 +93,7 @@ sub handler {
END
- $closebutton=<
END
@@ -97,7 +107,7 @@ END
{
my $fh=Apache::File->new($r->dir_config('lonTabDir').'/language.tab');
map {
- $_=~/(\w+)\s+([\w\s\-]+)/;
+ $_=~/(\w+)\s+([\w\s\-]+)/; chomp;
$language{$1}=$2;
} <$fh>;
}
@@ -107,7 +117,7 @@ END
{
my $fh=Apache::File->new($r->dir_config('lonIncludes').'/copyright.tab');
map {
- $_=~/(\w+)\s+([\w\s\-]+)/;
+ $_=~/(\w+)\s+([\w\s\-]+)/; chomp;
$cprtag{$1}=$2;
} <$fh>;
}
@@ -117,7 +127,7 @@ END
{
my $fh=Apache::File->new($r->dir_config('lonTabDir').'/filetypes.tab');
map {
- $_=~/(\w+)\s+(\w+)\s+([\w\s\-]+)/;
+ $_=~/(\w+)\s+(\w+)\s+([\w\s\-]+)/; chomp;
$mimetag{$1}=".$1 $3";
} <$fh>;
}
@@ -260,7 +270,7 @@ ENDDOCUMENT
$closebutton
-$viewselect
+$basicviewselect
Advanced Search
@@ -269,7 +279,7 @@ $scrout
$closebutton
-$viewselect
+$advancedviewselect