\n") if ($hash{'display_attrs_1'} == 1);
$r->print("
".&mt("Last accessed")."
\n")
if ($hash{'display_attrs_2'} == 1);
@@ -651,7 +657,7 @@ sub scanDir {
next if($strip =~ /.*\.meta$/ | $obs eq '1');
my (@fileparts) = split(/\./,$strip);
if ($hash{'display_attrs_9'} != 1) {
-# if not all versions to be shown
+ # if not all versions to be shown
if (scalar(@fileparts) >= 3) {
my $fext = pop @fileparts;
my $ov = pop @fileparts;
@@ -847,6 +853,7 @@ sub display_line {
'document.forms.fileattr.acts.value)" '.
'enctype="application/x-www-form-urlencoded"'.
'>'."\n");
+ $r->print(&Apache::loncommon::inhibit_menu_check('input'));
$r->print (''."\n");
$r->print (''."\n");
@@ -923,21 +930,22 @@ sub display_line {
my $title;
my $filelink = $pathprefix.$filecom[0];
if ($hash{'display_attrs_0'} == 1) {
- $title = &Apache::lonnet::gettitle($filelink,'title');
+ $title = &Apache::lonnet::gettitle($filelink);
}
my @file_ext = split (/\./,$listname);
my $curfext = $file_ext[-1];
if (@Omit) {
- foreach (@Omit) { return OK if ($curfext eq $_); }
+ foreach (@Omit) { return OK if (lc($curfext) eq $_); }
}
if (@Only) {
my $skip = 1;
- foreach (@Only) { $skip = 0 if ($curfext eq $_); }
+ foreach (@Only) { $skip = 0 if (lc($curfext) eq $_); }
return OK if ($skip > 0);
}
# Set the icon for the file
my $iconname = &Apache::loncommon::icon($listname);
- $r->print("
");
+ $r->print('
'.
+ '
');
if ($env{'form.catalogmode'} eq 'interactive') {
my $quotable_filelink = &Apache::loncommon::escape_single($filelink);
@@ -945,7 +953,7 @@ sub display_line {
$quotable_filelink,"')\">");
$r->print("".
"\n");
- $r->print("