--- loncom/interface/lonindexer.pm 2004/06/12 04:44:31 1.110 +++ loncom/interface/lonindexer.pm 2004/06/16 23:39:01 1.111 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.110 2004/06/12 04:44:31 albertel Exp $ +# $Id: lonindexer.pm,v 1.111 2004/06/16 23:39:01 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -53,12 +53,14 @@ use Apache::lonmeta; use Apache::File; use Apache::lonlocal; use Apache::lonsource(); +use LONCAPA::lonmetadata(); use GDBM_File; # ---------------------------------------- variables used throughout the module my %hash; # global user-specific gdbm file my %dirs; # keys are directories, values are the open/close status my %language; # has the reference information present in language.tab +my %dynhash; # hash of hashes for dynamic metadata # ----- Values which are set by the handler subroutine and are accessible to # ----- other methods. @@ -407,7 +409,7 @@ $r->print(&Apache::loncommon::bodytag('B # ---------------------------------- get state of file attributes to be showing if ($ENV{'form.attrs'}) { - for (my $i=0; $i<=10; $i++) { + for (my $i=0; $i<=11; $i++) { delete $hash{'display_attrs_'.$i}; if ($ENV{'form.attr'.$i} == 1) { $attrchk[$i] = 'checked'; @@ -415,7 +417,7 @@ $r->print(&Apache::loncommon::bodytag('B } } } else { - for (my $i=0; $i<=10; $i++) { + for (my $i=0; $i<=11; $i++) { $attrchk[$i] = 'checked' if $hash{'display_attrs_'.$i} == 1; } } @@ -434,6 +436,7 @@ $r->print(&Apache::loncommon::bodytag('B 'ln' => 'Language', 'sa' => 'Source Available', 'sr' => 'Show resource', + 'li' => 'Linked/Related Resources', 'av' => 'All versions', 'ud' => 'Update Display' ); @@ -455,7 +458,7 @@ $r->print(&Apache::loncommon::bodytag('B