--- loncom/interface/lonsearchcat.pm 2001/03/21 03:06:50 1.56
+++ loncom/interface/lonsearchcat.pm 2001/03/22 14:19:17 1.74
@@ -94,7 +94,7 @@ sub handler {
END
$closebutton=<
+
END
# ------------------------------------------------ First, check out environment
@@ -107,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>;
}
@@ -117,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>;
}
@@ -127,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>;
}
@@ -267,8 +267,8 @@ ENDDOCUMENT
$r->print(<Search historic archives
-
-
+
+
$closebutton
$basicviewselect
@@ -276,8 +276,8 @@ $basicviewselect
Advanced Search
$scrout
-
-
+
+
$closebutton
$advancedviewselect
@@ -292,14 +292,15 @@ ENDDOCUMENT
sub simpletextfield {
my ($name,$value)=@_;
- return '';
+ return '';
}
sub simplecheckbox {
my ($name,$value)=@_;
my $checked='';
$checked="CHECKED" if $value eq 'on';
- return '';
+ return '';
}
sub searchphrasefield {
@@ -311,7 +312,7 @@ END
my $uctitle=uc($title);
return "\n$uctitle:".
" $instruction
".
- '';
+ '';
}
sub dateboxes {
@@ -464,7 +465,7 @@ sub selectbox {
my $selout="\n
$uctitle:".
"
".'