\n");
- $r->print("\n");
- $r->print("".&mt('Name')." | \n");
- $r->print("".&mt('Title')." | \n")
+ #$r->print(&initdebug());
+ #$r->print(&writedebug("Omit:@Omit")) if (@Omit);
+ #$r->print(&writedebug("Only:@Only")) if (@Only);
+ $r->print(&Apache::loncommon::start_data_table("LC_tableBrowseRes")
+ .&Apache::loncommon::start_data_table_header_row());
+ $r->print("".&mt('Name')." | \n");
+ $r->print(''.&mt('Add to Stored Links')." | \n");
+ $r->print("".&mt('Title')." | \n")
if ($hash{'display_attrs_0'} == 1);
- $r->print("".&mt("Size")." (".&mt("bytes").") ".
- " | \n") if ($hash{'display_attrs_1'} == 1);
- $r->print("".&mt("Last accessed")." | \n")
+ $r->print(''.&mt("Size")." (".&mt("bytes").") ".
+ " | \n") if ($hash{'display_attrs_1'} == 1);
+ $r->print("".&mt("Last accessed")." | \n")
if ($hash{'display_attrs_2'} == 1);
- $r->print("".&mt("Last modified")." | \n")
+ $r->print("".&mt("Last modified")." | \n")
if ($hash{'display_attrs_3'} == 1);
- $r->print("".&mt("Author(s)")." | \n")
+ $r->print("".&mt("Author(s)")." | \n")
if ($hash{'display_attrs_4'} == 1);
- $r->print("".&mt("Keywords")." | \n")
+ $r->print("".&mt("Keywords")." | \n")
if ($hash{'display_attrs_5'} == 1);
- $r->print("".&mt("Language")." | \n")
+ $r->print("".&mt("Language")." | \n")
if ($hash{'display_attrs_6'} == 1);
- $r->print("".&mt("Resource")." | \n")
- if ($hash{'display_attrs_7'} == 1);
- $r->print("".&mt("Usage Statistics")." (".
- &mt("Courses/Network Hits").") | \n")
+ $r->print("".&mt("Usage Statistics")." (".
+ &mt("Courses/Network Hits").") ".&mt('updated periodically')." | \n")
if ($hash{'display_attrs_8'} == 1);
- $r->print(' ');
+ $r->print("".&mt("Source Available")." | \n")
+ if ($hash{'display_attrs_10'} == 1);
+ $r->print("".&mt("Linked/Related Resources")." | \n")
+ if ($hash{'display_attrs_11'} == 1);
+ $r->print("".&mt("Resource")." | \n")
+ if ($hash{'display_attrs_7'} == 1);
+ $r->print("".&mt("Subject")." | \n")
+ if ($hash{'display_attrs_12'} == 1);
+ $r->print("".&mt("Notes")." | \n")
+ if ($hash{'display_attrs_13'} == 1);
+ $r->print("".&mt("Abstract")." | \n")
+ if ($hash{'display_attrs_14'} == 1);
+ $r->print("".&mt("Grade Level")." | \n")
+ if ($hash{'display_attrs_15'} == 1);
+ $r->print("".&mt("Standards")." | \n")
+ if ($hash{'display_attrs_16'} == 1);
+
+ $r->print(&Apache::loncommon::end_data_table_header_row());
+
+
# ----------------- 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_//;
@@ -512,8 +632,8 @@ END
}
}
- if ($ENV{'form.openuri'}) { # take care of review and refresh options
- my $uri=$ENV{'form.openuri'};
+ if ($env{'form.openuri'}) { # take care of review and refresh options
+ my $uri=$env{'form.openuri'};
if (exists($hash{'diropen_status_'.$uri})) {
my $cursta = $hash{'diropen_status_'.$uri};
$dirs{$uri} = 'open';
@@ -528,18 +648,16 @@ END
}
}
- my $bredir = $ENV{'form.dirPointer'};
my $toplevel;
my $indent = 0;
$uri = $uri.'/' if $uri !~ /.*\/$/;
- if ($bredir ne 'on') {
- $hash{'top.level'} = $uri;
- $toplevel = $uri;
-
- } else {
- $toplevel = $hash{'top.level'};
- }
+ if ($env{'form.dirPointer'} ne 'on') {
+ $hash{'top.level'} = $uri;
+ $toplevel = $uri;
+ } else {
+ $toplevel = $hash{'top.level'};
+ }
# -------------------------------- if not at top level, provide an uplink arrow
if ($toplevel ne '/res/'){
@@ -547,29 +665,25 @@ END
pop @uri_com;
my $upone = join('/',@uri_com);
my @list = qw (0);
- &display_line ($r,'opened',$upone.'&viewOneUp',0,$upone,@list);
+ &display_line ($r,$defdom,'opened',$upone.'&viewOneUp',0,$upone,@list);
$indent = 1;
}
# -------- recursively go through all the directories and output as appropriate
- &scanDir ($r,$toplevel,$indent,\%hash);
-
-# ---------------------------- embed hidden information useful for group import
- $r->print("");
+ &scanDir ($r,$toplevel,$indent,\%hash,$defdom);
# -------------------------------------------------------------- end the tables
- $r->print(' ');
- $r->print(' |