version 1.160.6.114, 2021/12/16 19:46:34
|
version 1.160.6.115, 2021/12/24 21:00:55
|
Line 1701 sub commblocktype_text {
|
Line 1701 sub commblocktype_text {
|
'printout' => 'Printouts', |
'printout' => 'Printouts', |
'passwd' => 'Change Password', |
'passwd' => 'Change Password', |
'grades' => 'Gradebook', |
'grades' => 'Gradebook', |
|
'search' => 'Course search', |
|
'wishlist' => 'Stored links', |
|
'annotate' => 'Annotations', |
); |
); |
my $typeorder = ['com','chat','boards','port','groups','blogs','about','printout','grades','passwd']; |
my $typeorder = ['com','chat','boards','port','groups','blogs','about','wishlist','printout','grades','search','annotate','passwd']; |
return ($typeorder,\%types); |
return ($typeorder,\%types); |
} |
} |
|
|
Line 4439 sub print_coursedefaults {
|
Line 4442 sub print_coursedefaults {
|
coursecredits => 'Credits can be specified for courses', |
coursecredits => 'Credits can be specified for courses', |
uselcmath => 'Math preview uses LON-CAPA previewer (javascript) in place of DragMath (Java)', |
uselcmath => 'Math preview uses LON-CAPA previewer (javascript) in place of DragMath (Java)', |
usejsme => 'Molecule editor uses JSME (HTML5) in place of JME (Java)', |
usejsme => 'Molecule editor uses JSME (HTML5) in place of JME (Java)', |
|
inline_chem => 'Use inline previewer for chemical reaction response in place of pop-up', |
texengine => 'Default method to display mathematics', |
texengine => 'Default method to display mathematics', |
postsubmit => 'Disable submit button/keypress following student submission', |
postsubmit => 'Disable submit button/keypress following student submission', |
canclone => "People who may clone a course (besides course's owner and coordinators)", |
canclone => "People who may clone a course (besides course's owner and coordinators)", |
Line 4454 sub print_coursedefaults {
|
Line 4458 sub print_coursedefaults {
|
%defaultchecked = ( |
%defaultchecked = ( |
'uselcmath' => 'on', |
'uselcmath' => 'on', |
'usejsme' => 'on', |
'usejsme' => 'on', |
|
'inline_chem' => 'on', |
'canclone' => 'none', |
'canclone' => 'none', |
); |
); |
@toggles = ('uselcmath','usejsme'); |
@toggles = ('uselcmath','usejsme','inline_chem'); |
my $deftex = $Apache::lonnet::deftex; |
my $deftex = $Apache::lonnet::deftex; |
if (ref($settings) eq 'HASH') { |
if (ref($settings) eq 'HASH') { |
if ($settings->{'texengine'}) { |
if ($settings->{'texengine'}) { |
Line 15515 sub modify_coursedefaults {
|
Line 15520 sub modify_coursedefaults {
|
my ($resulttext,$errors,%changes,%defaultshash); |
my ($resulttext,$errors,%changes,%defaultshash); |
my %defaultchecked = ( |
my %defaultchecked = ( |
'uselcmath' => 'on', |
'uselcmath' => 'on', |
'usejsme' => 'on' |
'usejsme' => 'on', |
|
'inline_chem' => 'on', |
); |
); |
my @toggles = ('uselcmath','usejsme'); |
my @toggles = ('uselcmath','usejsme','inline_chem'); |
my @numbers = ('anonsurvey_threshold','uploadquota_official','uploadquota_unofficial', |
my @numbers = ('anonsurvey_threshold','uploadquota_official','uploadquota_unofficial', |
'uploadquota_community','uploadquota_textbook','mysqltables_official', |
'uploadquota_community','uploadquota_textbook','mysqltables_official', |
'mysqltables_unofficial','mysqltables_community','mysqltables_textbook'); |
'mysqltables_unofficial','mysqltables_community','mysqltables_textbook'); |
Line 15726 sub modify_coursedefaults {
|
Line 15732 sub modify_coursedefaults {
|
my %domdefaults = &Apache::lonnet::get_domain_defaults($dom,1); |
my %domdefaults = &Apache::lonnet::get_domain_defaults($dom,1); |
if (($changes{'uploadquota'}) || ($changes{'postsubmit'}) || |
if (($changes{'uploadquota'}) || ($changes{'postsubmit'}) || |
($changes{'coursecredits'}) || ($changes{'uselcmath'}) || ($changes{'usejsme'}) || |
($changes{'coursecredits'}) || ($changes{'uselcmath'}) || ($changes{'usejsme'}) || |
($changes{'canclone'}) || ($changes{'mysqltables'}) || ($changes{'texengine'})) { |
($changes{'canclone'}) || ($changes{'mysqltables'}) || ($changes{'texengine'}) || |
foreach my $item ('uselcmath','usejsme','texengine') { |
($changes{'inline_chem'})) { |
|
foreach my $item ('uselcmath','usejsme','inline_chem','texengine') { |
if ($changes{$item}) { |
if ($changes{$item}) { |
$domdefaults{$item}=$defaultshash{'coursedefaults'}{$item}; |
$domdefaults{$item}=$defaultshash{'coursedefaults'}{$item}; |
} |
} |
Line 15790 sub modify_coursedefaults {
|
Line 15797 sub modify_coursedefaults {
|
} else { |
} else { |
$resulttext .= '<li>'.&mt('Molecule editor uses JME (Java), if supported by client OS.').'</li>'; |
$resulttext .= '<li>'.&mt('Molecule editor uses JME (Java), if supported by client OS.').'</li>'; |
} |
} |
|
} elsif ($item eq 'inline_chem') { |
|
if ($env{'form.'.$item} eq '1') { |
|
$resulttext .= '<li>'.&mt('Chemical Reaction Response uses inline previewer').'</li>'; |
|
} else { |
|
$resulttext .= '<li>'.&mt('Chemical Reaction Response uses pop-up previewer').'</li>'; |
|
} |
} elsif ($item eq 'texengine') { |
} elsif ($item eq 'texengine') { |
if ($defaultshash{'coursedefaults'}{'texengine'} ne '') { |
if ($defaultshash{'coursedefaults'}{'texengine'} ne '') { |
$resulttext .= '<li>'.&mt('Default method to display mathematics set to: "[_1]"', |
$resulttext .= '<li>'.&mt('Default method to display mathematics set to: "[_1]"', |