--- loncom/interface/lonsearchcat.pm 2001/03/21 02:09:38 1.50
+++ loncom/interface/lonsearchcat.pm 2001/03/21 12:51:15 1.62
@@ -52,8 +52,16 @@ my %metadatafields;
my %cprtag;
my %mimetag;
my $closebutton;
-my $viewselect=<
+my $basicviewselect=<
+
+
+
+
+
+END
+my $advancedviewselect=<
@@ -99,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>;
}
@@ -109,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>;
}
@@ -119,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>;
}
@@ -262,7 +270,7 @@ ENDDOCUMENT
$closebutton
-$viewselect
+$basicviewselect
Advanced Search
@@ -271,7 +279,7 @@ $scrout
$closebutton
-$viewselect
+$advancedviewselect