--- loncom/interface/lonsearchcat.pm 2001/03/20 12:21:56 1.43
+++ loncom/interface/lonsearchcat.pm 2001/03/21 12:58:30 1.63
@@ -51,6 +51,23 @@ my $scrout;
my %metadatafields;
my %cprtag;
my %mimetag;
+my $closebutton;
+my $basicviewselect=<
+
+
+
+
+
+END
+my $advancedviewselect=<
+
+
+
+
+
+END
sub handler {
my $r = shift;
@@ -76,6 +93,10 @@ sub handler {
END
+ $closebutton=<
+END
+
# ------------------------------------------------ First, check out environment
$metadatafields{'owner'}=$ENV{'user.name'}.'@'.$ENV{'user.domain'};
@@ -86,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>;
}
@@ -96,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>;
}
@@ -106,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>;
}
@@ -248,7 +269,8 @@ ENDDOCUMENT
-
+$closebutton
+$basicviewselect
Advanced Search
@@ -256,7 +278,8 @@ $scrout
-
+$closebutton
+$advancedviewselect