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