--- loncom/interface/loncommon.pm 2008/07/08 01:08:57 1.667 +++ loncom/interface/loncommon.pm 2008/07/13 19:36:50 1.670 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.667 2008/07/08 01:08:57 raeburn Exp $ +# $Id: loncommon.pm,v 1.670 2008/07/13 19:36:50 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6810,6 +6810,10 @@ sub instrule_disallow_msg { } elsif ($checkitem eq 'id') { $response .= &mt("Either upload a file which includes $text{'action'} with a different format -- $text{'one'} that will not conflict with 'official' institutional $text{'items'}, or when associating fields with data columns, omit an association for the ID/Student Number field."); } + } elsif ($mode eq 'selfcreate') { + if ($checkitem eq 'id') { + $response .= &mt("You must either choose $text{'action'} with a different format -- $text{'one'} that will not conflict with 'official' institutional $text{'items'}, or leave the ID field blank."); + } } else { if ($checkitem eq 'username') { $response .= &mt("You must choose $text{'action'} with a different format -- $text{'one'} that will not conflict with 'official' institutional $text{'items'}."); @@ -6838,7 +6842,7 @@ sub sorted_inst_types { my ($usertypes,$order) = &Apache::lonnet::retrieve_inst_usertypes($dom); my $othertitle = &mt('All users'); if ($env{'request.course.id'}) { - $othertitle = 'any'; + $othertitle = &mt('Any users'); } my @types; if (ref($order) eq 'ARRAY') { @@ -6851,9 +6855,6 @@ sub sorted_inst_types { } if (keys(%{$usertypes}) > 0) { $othertitle = &mt('Other users'); - if ($env{'request.course.id'}) { - $othertitle = 'other'; - } } return ($othertitle,$usertypes,\@types); } @@ -8508,7 +8509,7 @@ sub assign_categories_table { } $output .= '' .''.&escape($parent).''; + $item.'"'.$checked.' />'.$parent.''; my $depth = 1; push(@path,$parent); $output .= &assign_category_rows($itemcount,\@cats,$depth,$parent,\@path,\@currcategories);