--- loncom/interface/lonindexer.pm 2007/07/11 20:32:15 1.170 +++ loncom/interface/lonindexer.pm 2009/03/19 14:24:50 1.194 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.170 2007/07/11 20:32:15 albertel Exp $ +# $Id: lonindexer.pm,v 1.194 2009/03/19 14:24:50 jms Exp $ # # Copyright Michigan State University Board of Trustees # @@ -53,6 +53,7 @@ use Apache::lonmeta; use Apache::File; use Apache::lonlocal; use Apache::lonsource(); +use Apache::groupsort(); use GDBM_File; use LONCAPA qw(:match); @@ -103,9 +104,9 @@ sub handler { my $lonhost = $r->dir_config('lonHostID'); my $tabdir = $r->dir_config('lonTabDir'); - my $fileclr='#ffffe6'; +#SB my $fileclr='#ffffe6'; my $line; - my (@attrchk,@openpath); + my (@attrchk,@openpath,$typeselect); my $uri=$r->uri; # -------------------------------------- see if called from an interactive mode @@ -134,6 +135,11 @@ sub handler { untie(%dbfile); } } +# - Evaluate actions from previous page (both cumulatively and chronologically) + if ($env{'form.catalogmode'} eq 'import' || $hash{'form.catalogmode'} eq 'import') { + &Apache::groupsort::update_actions_hash(\%hash); + } + { #Hijack lonindexer to verify a title and be close down. if ($env{'form.launch'} eq '2') { @@ -171,7 +177,8 @@ ENDSUBM # --------------------- define extra fields and buttons in case of special mode if ($env{'form.catalogmode'} eq 'interactive') { - $extrafield=''. +#SB $extrafield=''. + $extrafield=''. ''; $colspan=" colspan='2' "; @@ -181,7 +188,8 @@ ENDSUBM END } elsif ($env{'form.catalogmode'} eq 'import') { - $extrafield=''. +#SB $extrafield=''. + $extrafield=''. ''; $colspan=" colspan='2' "; @@ -268,6 +276,9 @@ END function select_data(url) { var location = "/res/?launch=2&form=$form&element=$element&titleelement=$titleelement&acts=" + url; window.location=location; + if (window.opener.document.forms["$form"].elements["$element"].value != url) { + window.opener.unClean(); + } } function select_group() { window.location="$location"+document.forms.fileattr.acts.value; @@ -350,7 +361,10 @@ END my $js = <<"ENDHEADER";