--- loncom/interface/lonindexer.pm 2020/09/03 15:49:27 1.213.4.9
+++ loncom/interface/lonindexer.pm 2014/05/31 16:01:33 1.221
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Directory Indexer
#
-# $Id: lonindexer.pm,v 1.213.4.9 2020/09/03 15:49:27 raeburn Exp $
+# $Id: lonindexer.pm,v 1.221 2014/05/31 16:01:33 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -565,7 +565,7 @@ END
} else {
$r->print($reshome);
}
- $r->print("'>".&mt('Home directory').'');
+ $r->print("'>".&mt('Home').'');
}
$r->print('');
# ------------------------------------------------------ Remember where we were
@@ -623,7 +623,7 @@ END
# ----------------- read in what directories have previously been set to "open"
- foreach (keys(%hash)) {
+ foreach (keys %hash) {
if ($_ =~ /^diropen_status_/) {
my $key = $_;
$key =~ s/^diropen_status_//;
@@ -754,7 +754,7 @@ sub get_list {
(my $luri = $uri) =~ s/\//_/g;
if ($env{'form.updatedisplay'}) {
- foreach (keys(%hash)) {
+ foreach (keys %hash) {
delete $hash{$_} if ($_ =~ /^dirlist_files_/);
delete $hash{$_} if ($_ =~ /^dirlist_timestamp_files_/);
}
@@ -989,9 +989,6 @@ $r->print (''.
"\n");
my $quotable_curdir = &Apache::loncommon::escape_single($curdir);
- my $quotable_startdir = &Apache::loncommon::escape_single($startdir);
- my $quotable_listname = &Apache::loncommon::escape_single($listname);
-
$r->print ('
');
@@ -1003,7 +1000,7 @@ $r->print (''.
+ 'onclick="set_wishlistlink('."'$plainname','$startdir$listname"."/'".')">'.
'
'.$tabtag);
$r->print(&Apache::loncommon::end_data_table_row());
@@ -1086,15 +1083,8 @@ $r->print ('\n");
my $quotable_filelink = &Apache::loncommon::escape_single($filelink);
- my $quotable_startdir = Apache::loncommon::escape_single($startdir);
- my $quotable_listname = &Apache::loncommon::escape_single($listname);
- my $curfext = lc((split(/\./,$listname))[-1]);
- my $modalstyle;
- if ($curfext =~ /^js|css|txt|tab$/) {
- $modalstyle = ",'','background-color:#ffffff'";
- }
- $r->print (" $listname ");
+ $r->print (" $listname ");
$quotable_filelink = &Apache::loncommon::escape_single($filelink.'.meta');
&Apache::loncommon::inhibit_menu_check(\$quotable_filelink);
$r->print (" (".&mt('metadata').") ");
@@ -1106,7 +1096,7 @@ $r->print (''.
+ "','$startdir$listname'".')">'.
'
');
if ($hash{'display_attrs_0'} == 1) {
@@ -1248,9 +1238,7 @@ $r->print (''.
"\n");
my $quotable_curdir = &Apache::loncommon::escape_single($curdir);
- my $quotable_startdir = &Apache::loncommon::escape_single($startdir);
- my $quotable_listname = &Apache::loncommon::escape_single($listname);
-
+
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonIcons");
my $icon = "navmap.folder.".($nowOpen ? "open":"closed").'.gif';
$r->print (''.
+ 'onclick="set_wishlistlink('."'$listname','$startdir$listname"."/'".')">'.
'
');
# Attributes
@@ -1356,8 +1344,8 @@ sub coursecontext {
$r->print(
&mt('Already in this course:').'
'
.&mt('[_1] in folder/map [_2]',
- &Apache::lonnet::gettitle($resource),
- &Apache::lonnet::gettitle($map))
+ &Apache::lonnet::gettitle($resource),
+ &Apache::lonnet::gettitle($map))
.'
');
}
}
@@ -1444,7 +1432,7 @@ sub start_fresh_session {
delete $hash->{'form.element'};
delete $hash->{'form.omit'};
delete $hash->{'form.only'};
- foreach (keys(%{$hash})) {
+ foreach (keys %{$hash}) {
delete $hash->{$_} if (/^(pre_|store)/);
}
}