--- loncom/interface/lonsearchcat.pm 2001/03/21 01:03:06 1.47
+++ loncom/interface/lonsearchcat.pm 2001/03/22 14:13:53 1.72
@@ -52,10 +52,20 @@ my %metadatafields;
my %cprtag;
my %mimetag;
my $closebutton;
-my $viewselect=<
-
-
+my $basicviewselect=<
+
+
+
+
+
+END
+my $advancedviewselect=<
+
+
+
+
END
@@ -84,7 +94,7 @@ sub handler {
END
$closebutton=<
+
END
# ------------------------------------------------ First, check out environment
@@ -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>;
}
@@ -257,19 +267,19 @@ ENDDOCUMENT
$r->print(<Search historic archives
-
-
+
+
$closebutton
-$viewselect
+$basicviewselect
Advanced Search
$scrout
-
-
+
+
$closebutton
-$viewselect
+$advancedviewselect