version 1.249.2.6, 2008/08/26 23:20:22
|
version 1.261, 2008/08/27 21:55:32
|
Line 1448 sub personal_data_display {
|
Line 1448 sub personal_data_display {
|
$row .= '<input type="hidden" name="c'.$item.'" value="'.$inst_results->{$item}.'" />'.$inst_results->{$item}; |
$row .= '<input type="hidden" name="c'.$item.'" value="'.$inst_results->{$item}.'" />'.$inst_results->{$item}; |
} else { |
} else { |
if ($context eq 'selfcreate') { |
if ($context eq 'selfcreate') { |
if ($canmodify{$item}) { |
if ($canmodify{$item}) { |
$row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />'; |
$row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />'; |
$editable ++; |
$editable ++; |
} else { |
} else { |
Line 1859 sub update_user_data {
|
Line 1859 sub update_user_data {
|
if ($env{'form.cid'} ne $uidhash{$env{'form.ccuname'}}) { |
if ($env{'form.cid'} ne $uidhash{$env{'form.ccuname'}}) { |
$env{'form.cid'} = $userenv{'id'}; |
$env{'form.cid'} = $userenv{'id'}; |
$no_forceid_alert = &mt('New Student/Employee ID does not match existing ID for this user.') |
$no_forceid_alert = &mt('New Student/Employee ID does not match existing ID for this user.') |
.'<br />' |
.'<br />' |
.&mt("Change is not permitted without checking the 'Force ID change' checkbox on the previous page.") |
.&mt("Change is not permitted without checking the 'Force ID change' checkbox on the previous page.") |
.'<br />'."\n"; |
.'<br />'."\n"; |
} |
} |
} |
} |
if ($env{'form.cid'} ne $userenv{'id'}) { |
if ($env{'form.cid'} ne $userenv{'id'}) { |
Line 3609 sub visible_in_cat {
|
Line 3609 sub visible_in_cat {
|
dc_chgcat => 'Ask a domain coordinator to change the category assigned to the course, as the one currently assigned is no longer used in the domain', |
dc_chgcat => 'Ask a domain coordinator to change the category assigned to the course, as the one currently assigned is no longer used in the domain', |
dc_addcat => 'Ask a domain coordinator to assign a category to the course.', |
dc_addcat => 'Ask a domain coordinator to assign a category to the course.', |
); |
); |
$visactions{'unhide'} = &mt('Use [_1]Set course environment[_2] to change the "Exclude from course catalog" setting.','<a href="/adm/parmset?action=crsenv">','</a>'); |
$visactions{'unhide'} = &mt('Use [_1]Set course environment[_2] to change the "Exclude from course catalog" setting.','"<a href="/adm/parmset?action=crsenv">','</a>"'); |
$visactions{'chgcat'} = &mt('Use [_1]Set course environment[_2] to change the category assigned to the course, as the one currently assigned is no longer used in the domain.','<a href="/adm/parmset?action=crsenv">','</a>'); |
$visactions{'chgcat'} = &mt('Use [_1]Set course environment[_2] to change the category assigned to the course, as the one currently assigned is no longer used in the domain.','"<a href="/adm/parmset?action=crsenv">','</a>"'); |
$visactions{'addcat'} = &mt('Use [_1]Set course environment[_2] to assign a category to the course.','<a href="/adm/parmset?action=crsenv">','</a>'); |
$visactions{'addcat'} = &mt('Use [_1]Set course environment[_2] to assign a category to the course.','"<a href="/adm/parmset?action=crsenv">','</a>"'); |
if (ref($domconf{'coursecategories'}) eq 'HASH') { |
if (ref($domconf{'coursecategories'}) eq 'HASH') { |
if ($domconf{'coursecategories'}{'togglecats'} eq 'crs') { |
if ($domconf{'coursecategories'}{'togglecats'} eq 'crs') { |
$settable{'togglecats'} = 1; |
$settable{'togglecats'} = 1; |
Line 3621 sub visible_in_cat {
|
Line 3621 sub visible_in_cat {
|
} |
} |
$cathash = $domconf{'coursecategories'}{'cats'}; |
$cathash = $domconf{'coursecategories'}{'cats'}; |
} |
} |
if ($settable{'togglecats'} && $settable{'categories'}) { |
if ($settable{'togglecats'} && $settable{'categorize'}) { |
$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'}) { |
} 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'}) { |
} elsif ($settable{'categorize'}) { |
$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 { |
} 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 = |
my %currsettings = |
&Apache::lonnet::get('environment',['hidefromcat','categories','internal.coursecode'], |
&Apache::lonnet::get('environment',['hidefromcat','categories','internal.coursecode'], |
$cdom,$cnum); |
$cdom,$cnum); |
Line 3640 sub visible_in_cat {
|
Line 3640 sub visible_in_cat {
|
$cathash = $domconf{'coursecategories'}{'cats'}; |
$cathash = $domconf{'coursecategories'}{'cats'}; |
if (ref($cathash) eq 'HASH') { |
if (ref($cathash) eq 'HASH') { |
if ($cathash->{'instcode::0'} eq '') { |
if ($cathash->{'instcode::0'} eq '') { |
push(@vismsgs,'dc_addinst'); |
push(@vismsgs,'dc_addinst'); |
} else { |
} else { |
$visible = 1; |
$visible = 1; |
} |
} |
Line 3679 sub visible_in_cat {
|
Line 3679 sub visible_in_cat {
|
} |
} |
} |
} |
if (!$matched) { |
if (!$matched) { |
if ($settable{'categories'}) { |
if ($settable{'categorize'}) { |
push(@vismsgs,'chgcat'); |
push(@vismsgs,'chgcat'); |
} else { |
} else { |
push(@vismsgs,'dc_chgcat'); |
push(@vismsgs,'dc_chgcat'); |
Line 3690 sub visible_in_cat {
|
Line 3690 sub visible_in_cat {
|
} |
} |
} else { |
} else { |
if (ref($cathash) eq 'HASH') { |
if (ref($cathash) eq 'HASH') { |
if ((keys(%{$cathash}) > 1) || |
if ((keys(%{$cathash}) > 1) || |
(keys(%{$cathash}) == 1) && ($cathash->{'instcode::0'} eq '')) { |
(keys(%{$cathash}) == 1) && ($cathash->{'instcode::0'} eq '')) { |
if ($settable{'categories'}) { |
if ($settable{'categorize'}) { |
push(@vismsgs,'addcat'); |
push(@vismsgs,'addcat'); |
} else { |
} else { |
push(@vismsgs,'dc_addcat'); |
push(@vismsgs,'dc_addcat'); |
Line 4885 sub update_selfenroll_config {
|
Line 4885 sub update_selfenroll_config {
|
} |
} |
$r->print($cansetvis); |
$r->print($cansetvis); |
} |
} |
} |
} |
return; |
return; |
} |
} |
|
|