--- loncom/interface/lonindexer.pm 2007/07/11 20:40:28 1.171 +++ loncom/interface/lonindexer.pm 2007/08/17 18:14:37 1.176 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.171 2007/07/11 20:40:28 albertel Exp $ +# $Id: lonindexer.pm,v 1.176 2007/08/17 18:14:37 banghart 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); @@ -105,7 +106,7 @@ sub handler { 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') { @@ -268,6 +274,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 +359,10 @@ END my $js = <<"ENDHEADER";