--- loncom/interface/loncoursegroups.pm 2008/12/16 16:44:28 1.84
+++ loncom/interface/loncoursegroups.pm 2009/02/02 13:27:39 1.91
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: loncoursegroups.pm,v 1.84 2008/12/16 16:44:28 raeburn Exp $
+# $Id: loncoursegroups.pm,v 1.91 2009/02/02 13:27:39 schafran Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -75,7 +75,7 @@ sub handler {
my $crstype = &Apache::loncommon::course_type();
my %functions = (
- email => 'E-mail',
+ communication => 'Send Messages',
discussion => 'Discussion Boards',
chat => 'Chat',
files => 'File Repository',
@@ -349,8 +349,8 @@ END
'
'.$quota.' | '.
''.$totalmembers.' | '.
''.
- ' '.&mt('Files: [_1]',$totalfiles).' '.
- ''.&mt('Folders: [_1]',$totaldirs).' '.
+ ''.&mt('Files: [_1]',$totalfiles).' '.
+ ''.&mt('Folders: [_1]',$totaldirs).''.
' | '.
''.$boards.' | '.
''.$diskuse.' | '.
@@ -915,11 +915,11 @@ function changeSort(caller) {
result => 'Re-enabled'
);
my %navbuttons = &Apache::lonlocal::texthash(
- gtns => 'Go to next step',
- gtps => 'Go to previous step',
+ gtns => 'Next',#'Go to next step',
+ gtps => 'Previous',#'Go to previous step',
crgr => 'Create '.$gpterm,
- mose => 'Modify settings',
- gtpp => 'Go to previous page',
+ mose => 'Save',#'Modify settings',
+ gtpp => 'Previous',#'Go to previous page',
adme => 'Add members',
);
if ((($action eq 'create') || ($action eq 'modify') || ($action eq 'delete') || ($action eq 'reenable')) &&
@@ -1259,12 +1259,18 @@ sub reenable_folder {
sub modify_folders {
my ($cdom,$cnum,$groupname) = @_;
- my $outcome;
+ my ($outcome,$groupmap,$groupmapres,$map,$id,$src);
my $navmap = Apache::lonnavmaps::navmap->new();
- my $groupmap = '/uploaded/'.$cdom.'/'.$cnum.'/'.'group_folder_'.
+ if (!defined($navmap)) {
+ $outcome = ''.
+ &mt('Error reading course contents.').' '.
+ &mt('You need to re-initialize the course.').
+ '
';
+ return $outcome;
+ }
+ $groupmap = '/uploaded/'.$cdom.'/'.$cnum.'/'.'group_folder_'.
$groupname.'.sequence';
- my $groupmapres = $navmap->getResourceByUrl($groupmap);
- my ($map,$id,$src);
+ $groupmapres = $navmap->getResourceByUrl($groupmap);
if ($groupmapres) {
($map,$id,$src)=&Apache::lonnet::decode_symb($groupmapres->symb());
}
@@ -1643,7 +1649,7 @@ END
for (my $i=0; $i<$halfnum; $i++) {
$r->print(' |
+ &mt($$functions{$allfunctions[$i]}).'
| | ');
}
$r->print('print(' | |
+ &mt($$functions{$allfunctions[$j]}).'
| | ');
}
if ($remnum) {
@@ -1798,7 +1804,7 @@ sub sections_selection {
}
}
my $output = '
-