--- loncom/interface/loncreateuser.pm 2008/07/16 12:32:11 1.249.2.4 +++ loncom/interface/loncreateuser.pm 2008/07/16 12:06:28 1.256 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.249.2.4 2008/07/16 12:32:11 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.256 2008/07/16 12:06:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1456,7 +1456,7 @@ sub personal_data_display { $row .= ''.$inst_results->{$item}; } else { if ($context eq 'selfcreate') { - if ($canmodify{$item}) { + if ($canmodify{$item}) { $row .= ''; $editable ++; } else { @@ -3610,15 +3610,15 @@ sub visible_in_cat { $cathash = $domconf{'coursecategories'}{'cats'}; } if ($settable{'togglecats'} && $settable{'categories'}) { - $cansetvis = &mt('You are able to both assign a course category and choose to exclude this course from the catalog.'); + $cansetvis = &mt('You are able to both assign a course category and choose to exclude this course from the catalog.'); } elsif ($settable{'togglecats'}) { - $cansetvis = &mt('You are able to choose to exclude this course from the catalog, but only a Domain Coordinator may assign a course category.'); + $cansetvis = &mt('You are able to choose to exclude this course from the catalog, but only a Domain Coordinator may assign a course category.'); } elsif ($settable{'categories'}) { - $cansetvis = &mt('You may assign a course category, but only a Domain Coordinator may choose to exclude this course from the catalog.'); + $cansetvis = &mt('You may assign a course category, but only a Domain Coordinator may choose to exclude this course from the catalog.'); } else { - $cansetvis = &mt('Only a Domain Coordinator may assign a course category or choose to exclude this course from the catalog.'); + $cansetvis = &mt('Only a Domain Coordinator may assign a course category or choose to exclude this course from the catalog.'); } - + my %currsettings = &Apache::lonnet::get('environment',['hidefromcat','categories','internal.coursecode'], $cdom,$cnum); @@ -3628,7 +3628,7 @@ sub visible_in_cat { $cathash = $domconf{'coursecategories'}{'cats'}; if (ref($cathash) eq 'HASH') { if ($cathash->{'instcode::0'} eq '') { - push(@vismsgs,'dc_addinst'); + push(@vismsgs,'dc_addinst'); } else { $visible = 1; } @@ -3667,7 +3667,7 @@ sub visible_in_cat { } } if (!$matched) { - if ($settable{'categories'}) { + if ($settable{'categories'}) { push(@vismsgs,'chgcat'); } else { push(@vismsgs,'dc_chgcat'); @@ -3678,7 +3678,7 @@ sub visible_in_cat { } } else { if (ref($cathash) eq 'HASH') { - if ((keys(%{$cathash}) > 1) || + if ((keys(%{$cathash}) > 1) || (keys(%{$cathash}) == 1) && ($cathash->{'instcode::0'} eq '')) { if ($settable{'categories'}) { push(@vismsgs,'addcat'); @@ -4871,7 +4871,7 @@ sub update_selfenroll_config { } $r->print($cansetvis); } - } + } return; }