version 1.395, 2021/11/30 14:12:02
|
version 1.398, 2021/12/24 11:07:42
|
Line 1893 sub commblocktype_text {
|
Line 1893 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 3902 sub print_autoupdate {
|
Line 3905 sub print_autoupdate {
|
'<td>'.$choices{'run'}.'</td>'. |
'<td>'.$choices{'run'}.'</td>'. |
'<td class="LC_left_item"><span class="LC_nobreak"><label>'. |
'<td class="LC_left_item"><span class="LC_nobreak"><label>'. |
'<input type="radio" name="autoupdate_run"'. |
'<input type="radio" name="autoupdate_run"'. |
$updateoff.' value="0" />'.&mt('No').'</label> '. |
$updateoff.'value="0" />'.&mt('No').'</label> '. |
'<label><input type="radio" name="autoupdate_run"'. |
'<label><input type="radio" name="autoupdate_run"'. |
$updateon.'value="1" />'.&mt('Yes').'</label></span></td>'. |
$updateon.'value="1" />'.&mt('Yes').'</label></span></td>'. |
'</tr>'; |
'</tr>'; |
Line 6772 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 6788 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 7934 sub print_wafproxy {
|
Line 7939 sub print_wafproxy {
|
if ($current) { |
if ($current) { |
$aliasrows .= $current; |
$aliasrows .= $current; |
if ($forsaml) { |
if ($forsaml) { |
$aliasrows .= ' ('.&mt('also for Shibboleth').')'; |
$aliasrows .= ' ('.&mt('also for SSO Auth').')'; |
} |
} |
} else { |
} else { |
$aliasrows .= &mt('None'); |
$aliasrows .= &mt('None'); |
Line 7962 sub print_wafproxy {
|
Line 7967 sub print_wafproxy {
|
'<input type="text" name="wafproxy_alias_'.$server.'" '. |
'<input type="text" name="wafproxy_alias_'.$server.'" '. |
'value="'.$current.'" size="30" />'. |
'value="'.$current.'" size="30" />'. |
(' 'x2).'<span class="LC_nobreak">'. |
(' 'x2).'<span class="LC_nobreak">'. |
&mt('Alias used for Shibboleth').': <label>'. |
&mt('Alias used for SSO Auth').': <label>'. |
'<input type="radio" value="0"'.$samloff.' name="wafproxy_alias_saml_'.$server.'" />'. |
'<input type="radio" value="0"'.$samloff.' name="wafproxy_alias_saml_'.$server.'" />'. |
&mt('No').'</label> <label>'. |
&mt('No').'</label> <label>'. |
'<input type="radio" value="1"'.$samlon.' name="wafproxy_alias_saml_'.$server.'" />'. |
'<input type="radio" value="1"'.$samlon.' name="wafproxy_alias_saml_'.$server.'" />'. |
Line 20304 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 20516 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 20586 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]"', |
Line 21186 sub modify_wafproxy {
|
Line 21199 sub modify_wafproxy {
|
} |
} |
} |
} |
if ($shown) { |
if ($shown) { |
$output .= '<li>'.&mt('Alias used by Shibboleth for: [_1]', |
$output .= '<li>'.&mt('Alias used by SSO Auth for: [_1]', |
$shown).'</li>'; |
$shown).'</li>'; |
} else { |
} else { |
$output .= '<li>'.&mt('No alias used for Shibboleth').'</li>'; |
$output .= '<li>'.&mt('No alias used for SSO Auth').'</li>'; |
} |
} |
} else { |
} else { |
if ($item eq 'remoteip') { |
if ($item eq 'remoteip') { |