--- loncom/interface/lonindexer.pm 2001/08/14 14:13:03 1.18 +++ loncom/interface/lonindexer.pm 2001/11/28 16:47:25 1.23 @@ -15,15 +15,34 @@ # 6/26,7/8 H. K. Ng # 8/6,8/7,8/10 Scott Harrison # 8/14 H. K. Ng +# 8/28,10/15,11/28 Scott Harrison +# +# $Id: lonindexer.pm,v 1.23 2001/11/28 16:47:25 harris41 Exp $ +### + +############################################################################### +## ## +## ORGANIZATION OF THIS PERL MODULE ## +## ## +## 1. Description of functions ## +## 2. Modules used by this module ## +## 3. Choices for different output views (detailed, summary, xml, etc) ## +## 4. BEGIN block (to be run once after compilation) ## +## 5. Handling routine called via Apache and mod_perl ## +## 6. Other subroutines ## +## ## +############################################################################### package Apache::lonindexer; +# ------------------------------------------------- modules used by this module use strict; use Apache::lonnet(); use Apache::Constants qw(:common); use Apache::File; use GDBM_File; +# ---------------------------------------- variables used throughout the module my %hash; # tied to a 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 @@ -44,7 +63,7 @@ sub BEGIN { } <$fh>; } -# ---------------------------------------------------------------- Main Handler +# ----------------------------- Handling routine called via Apache and mod_perl sub handler { my $r = shift; $r->content_type('text/html'); @@ -52,8 +71,9 @@ sub handler { return OK if $r->header_only; $fnum=0; $dnum=0; + untie %hash; -# --------------------------------------------- machine configuration variables +# ------------------------------------- read in machine configuration variables my $iconpath= $r->dir_config('lonIconsURL') . "/"; my $domain = $r->dir_config('lonDefDomain'); my $role = $r->dir_config('lonRole'); @@ -129,7 +149,7 @@ function select_data(title,url) { self.close(); } function select_group() { - window.location="/adm/groupsort?acts="+document.forms.fileattr.acts.value; + window.location="/adm/groupsort?catalogmode=groupimport&acts="+document.forms.fileattr.acts.value; } function changeTitle(val) { if (opener.inf.document.forms.resinfo.elements.t) { @@ -170,7 +190,7 @@ END The LearningOnline Network With CAPA Directory Browser -