version 1.397, 2021/12/24 00:48:30
|
version 1.398, 2021/12/24 11:07:42
|
Line 6775 sub print_coursedefaults {
|
Line 6775 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 6791 sub print_coursedefaults {
|
Line 6792 sub print_coursedefaults {
|
'canuse_pdfforms' => 'off', |
'canuse_pdfforms' => 'off', |
'uselcmath' => 'on', |
'uselcmath' => 'on', |
'usejsme' => 'on', |
'usejsme' => 'on', |
|
'inline_chem' => 'on', |
'canclone' => 'none', |
'canclone' => 'none', |
); |
); |
@toggles = ('canuse_pdfforms','uselcmath','usejsme'); |
@toggles = ('canuse_pdfforms','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 20307 sub modify_coursedefaults {
|
Line 20309 sub modify_coursedefaults {
|
my %defaultchecked = ( |
my %defaultchecked = ( |
'canuse_pdfforms' => 'off', |
'canuse_pdfforms' => 'off', |
'uselcmath' => 'on', |
'uselcmath' => 'on', |
'usejsme' => 'on' |
'usejsme' => 'on', |
|
'inline_chem' => 'on', |
); |
); |
my @toggles = ('canuse_pdfforms','uselcmath','usejsme'); |
my @toggles = ('canuse_pdfforms','uselcmath','usejsme','inline_chem'); |
my @numbers = ('anonsurvey_threshold','uploadquota_official','uploadquota_unofficial', |
my @numbers = ('anonsurvey_threshold','uploadquota_official','uploadquota_unofficial', |
'uploadquota_community','uploadquota_textbook','uploadquota_placement', |
'uploadquota_community','uploadquota_textbook','uploadquota_placement', |
'mysqltables_official','mysqltables_unofficial','mysqltables_community', |
'mysqltables_official','mysqltables_unofficial','mysqltables_community', |
Line 20519 sub modify_coursedefaults {
|
Line 20522 sub modify_coursedefaults {
|
my %domdefaults = &Apache::lonnet::get_domain_defaults($dom,1); |
my %domdefaults = &Apache::lonnet::get_domain_defaults($dom,1); |
if (($changes{'canuse_pdfforms'}) || ($changes{'uploadquota'}) || ($changes{'postsubmit'}) || |
if (($changes{'canuse_pdfforms'}) || ($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 ('canuse_pdfforms','uselcmath','usejsme','texengine') { |
($changes{'inline_chem'})) { |
|
foreach my $item ('canuse_pdfforms','uselcmath','usejsme','inline_chem','texengine') { |
if ($changes{$item}) { |
if ($changes{$item}) { |
$domdefaults{$item}=$defaultshash{'coursedefaults'}{$item}; |
$domdefaults{$item}=$defaultshash{'coursedefaults'}{$item}; |
} |
} |
Line 20589 sub modify_coursedefaults {
|
Line 20593 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]"', |