Diff for /loncom/interface/courseprefs.pm between versions 1.4 and 1.7

version 1.4, 2009/05/17 00:54:38 version 1.7, 2009/09/04 21:42:38
Line 191  sub handler { Line 191  sub handler {
                           default_xml_style       => 'Default XML Style File',                            default_xml_style       => 'Default XML Style File',
                           pageseparators          => 'Visibly Separate Items on Pages',                            pageseparators          => 'Visibly Separate Items on Pages',
                           disable_receipt_display => 'Disable display of problem receipts',                            disable_receipt_display => 'Disable display of problem receipts',
                           texengine               => 'Force use of a specific math rendering engine.',                            texengine               => 'Force use of a specific math rendering engine',
                           tthoptions              => 'Default set of options to pass to tth/m when converting TeX',                            tthoptions              => 'Default set of options to pass to tth/m when converting TeX',
                                   },                                    },
                   },                    },
Line 251  sub handler { Line 251  sub handler {
                     itemtext => {                      itemtext => {
                         task_messages         => 'Send message to student when clicking Done on Tasks',                          task_messages         => 'Send message to student when clicking Done on Tasks',
                         task_grading          => 'Bridge Task grading by instructors and TAs in sections' ,                          task_grading          => 'Bridge Task grading by instructors and TAs in sections' ,
                         suppress_embed_prompt => 'Hi$de upload references prompt if uploading file to portfolio',                          suppress_embed_prompt => 'Hide upload references prompt if uploading file to portfolio',
                                 },                                  },
                   },                    },
         'other' =>          'other' =>
Line 655  sub process_changes { Line 655  sub process_changes {
                             }                              }
                             foreach my $key (keys(%env)) {                              foreach my $key (keys(%env)) {
                                 if ($key =~ /^form\.\Q$entry\E_($match_username:$match_domain)$/) {                                  if ($key =~ /^form\.\Q$entry\E_($match_username:$match_domain)$/) {
                                     if ($env{'form.'.$key}) {                                      if ($env{$key}) {
                                        my $nothide = $1;                                         my $nothide = $1;
                                        if (!grep(/^\Q$nothide\E$/,@new_nothide)) {                                         if (!grep(/^\Q$nothide\E$/,@new_nothide)) {
                                            push(@new_nothide,$nothide);                                              push(@new_nothide,$nothide); 
Line 1424  sub assign_course_categories { Line 1424  sub assign_course_categories {
     }      }
     my $catwin_js;      my $catwin_js;
     if ($hascats) {      if ($hascats) {
         my $alert = &mt('Use \"Save\" in the main window to save course categories');          my $alert = &mt("Use 'Save' in the main window to save course categories");
         $catwin_js = <<ENDSCRIPT;          $catwin_js = <<ENDSCRIPT;
 <script type="text/javascript">  <script type="text/javascript">
   
Line 1758  sub print_discussion { Line 1758  sub print_discussion {
         'plc.roles.denied' => {          'plc.roles.denied' => {
                    text => '<b>'.&mt($itemtext->{'plc.roles.denied'}).'</b>'.                     text => '<b>'.&mt($itemtext->{'plc.roles.denied'}).'</b>'.
                            &Apache::loncommon::help_open_topic("Course_Disable_Discussion").                             &Apache::loncommon::help_open_topic("Course_Disable_Discussion").
                            &mt('(roles-based)'),                             &mt('(role-based)'),
                    input => 'checkbox',                     input => 'checkbox',
                  },                   },
   
Line 2076  sub print_grading { Line 2076  sub print_grading {
                  },                   },
         'receiptalg'  => {          'receiptalg'  => {
                    text => '<b>'.&mt($itemtext->{'receiptalg'}).'</b><br />'.                     text => '<b>'.&mt($itemtext->{'receiptalg'}).'</b><br />'.
                            &mt('This controls how receipt numbers are generated.'),                             &mt('This controls how receipt numbers are generated'),
                    input => 'selectbox',                     input => 'selectbox',
                    options => {                     options => {
                                 receipt  => 'receipt',                                  receipt  => 'receipt',
Line 2411  sub nothidepriv_row { Line 2411  sub nothidepriv_row {
             }              }
         }          }
         if (exists($privileged{$udom}{$uname})) {          if (exists($privileged{$udom}{$uname})) {
             push(@privusers,$user);              unless (grep(/^\Q$user\E$/,@privusers)) {
                   push(@privusers,$user);
               }
         }          }
     }      }
     if (@privusers) {      if (@privusers) {
Line 2431  sub nothidepriv_row { Line 2433  sub nothidepriv_row {
                           '</td><td align="left">'.                            '</td><td align="left">'.
                           '<span class="LC_nobreak"><label>'.                            '<span class="LC_nobreak"><label>'.
                           '<input type="radio" name="'.$item.'_'.$user.'"'.                            '<input type="radio" name="'.$item.'_'.$user.'"'.
                           $hideon.' value="yes" />'.&mt('Hidden').'</label>&nbsp;'.                            $hideon.' value="" />'.&mt('Hidden').'</label>&nbsp;'.
                           '<label><input type="radio" name="'.$item.'_'.$user.'"'.                          $hideoff.' value="" />'.&mt('Shown').'</label></span></td>'.                            '<label><input type="radio" name="'.$item.'_'.$user.'"'.                          $hideoff.' value="yes" />'.&mt('Shown').'</label></span></td>'.
                           '</tr>';                            '</tr>';
         }          }
         $datatable .= '</table>';          $datatable .= '</table>';

Removed from v.1.4  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>