Diff for /loncom/interface/courseprefs.pm between versions 1.49.2.6 and 1.55

version 1.49.2.6, 2013/05/12 01:03:11 version 1.55, 2013/04/08 23:57:21
Line 300  sub handler { Line 300  sub handler {
                 gens => 'General course settings',                  gens => 'General course settings',
                 idnu => 'Course ID or number',                  idnu => 'Course ID or number',
                 desc => 'Course Description',                  desc => 'Course Description',
                 cred => 'Student credits',                  cred => 'Student credits', 
                 ownr => 'Course Owner',                  ownr => 'Course Owner',
                 cown => 'Course Co-owners',                  cown => 'Course Co-owners',
                 catg => 'Categorize course',                  catg => 'Categorize course',
Line 468  sub handler { Line 468  sub handler {
                     help => 'Course_Prefs_Printouts',                      help => 'Course_Prefs_Printouts',
                     ordered => ['problem_stream_switch','suppress_tries',                      ordered => ['problem_stream_switch','suppress_tries',
                                 'default_paper_size','print_header_format',                                  'default_paper_size','print_header_format',
                                 'disableexampointprint'],                                  'disableexampointprint','canuse_pdfforms'],
                     itemtext => {                      itemtext => {
                         problem_stream_switch => 'Allow problems to be split over pages',                          problem_stream_switch => 'Allow problems to be split over pages',
                         suppress_tries        => 'Suppress number of tries in printing',                          suppress_tries        => 'Suppress number of tries in printing',
Line 1005  sub process_changes { Line 1005  sub process_changes {
                             my ($classorder,$classtitles) = &discussion_vote_classes();                              my ($classorder,$classtitles) = &discussion_vote_classes();
                             my $fontchange = 0;                              my $fontchange = 0;
                             foreach my $class (@{$classorder}) {                              foreach my $class (@{$classorder}) {
                                 my $ext_entry = $entry.'_'.$class;                                  my $ext_entry = $entry.'_'.$class; 
                                 my $size = $env{'form.'.$ext_entry.'_size'};                                  my $size = $env{'form.'.$ext_entry.'_size'};
                                 my $unit = $env{'form.'.$ext_entry.'_unit'};                                  my $unit = $env{'form.'.$ext_entry.'_unit'};
                                 my $weight = $env{'form.'.$ext_entry.'_weight'};                                  my $weight = $env{'form.'.$ext_entry.'_weight'};
                                 my $style = $env{'form.'.$ext_entry.'_style'};                                  my $style = $env{'form.'.$ext_entry.'_style'};
                                 my $other = $env{'form.'.$ext_entry.'_other'};                                  my $other = $env{'form.'.$ext_entry.'_other'};
                                 $size =~ s/,//g;                                  $size =~ s/,//g;
                                 $unit =~ s/,//g;                                  $unit =~ s/,//g; 
                                 $weight =~ s/,//g;                                  $weight =~ s/,//g;
                                 $style =~ s/,//g;                                  $style =~ s/,//g;
                                 $other =~ s/[^\w;:\s\-\%.]//g;                                  $other =~ s/[^\w;:\s\-\%.]//g;
Line 1020  sub process_changes { Line 1020  sub process_changes {
                                 $newvalues{$ext_entry} = join(',',($size.$unit,$weight,$style,$other));                                  $newvalues{$ext_entry} = join(',',($size.$unit,$weight,$style,$other));
                                 my $current = $values->{$ext_entry};                                  my $current = $values->{$ext_entry};
                                 if ($values->{$ext_entry} eq '') {                                  if ($values->{$ext_entry} eq '') {
                                     $current = ',,,';                                      $current = ',,,'; 
                                 }                                  }
                                 if ($newvalues{$ext_entry} ne $current) {                                  if ($newvalues{$ext_entry} ne $current) {
                                     $changes->{$ext_entry} = $newvalues{$ext_entry};                                      $changes->{$ext_entry} = $newvalues{$ext_entry};
Line 1029  sub process_changes { Line 1029  sub process_changes {
                             }                              }
                             if ($fontchange) {                              if ($fontchange) {
                                 $changes->{$entry} = 1;                                  $changes->{$entry} = 1;
                             }                              } 
                         } elsif ($entry eq 'nothideprivileged') {                          } elsif ($entry eq 'nothideprivileged') {
                             my @curr_nothide;                              my @curr_nothide;
                             my @new_nothide;                              my @new_nothide;
Line 3099  sub print_discussion { Line 3099  sub print_discussion {
                           '<th align="center">'.&mt('font-size').'</th>'.                            '<th align="center">'.&mt('font-size').'</th>'.
                           '<th align="center">'.&mt('font-weight').'</th>'.                            '<th align="center">'.&mt('font-weight').'</th>'.
                           '<th align="center">'.&mt('font-style').'</th>'.                            '<th align="center">'.&mt('font-style').'</th>'.
                           '<th align="center">'.&mt('Other css').'</th>'.                            '<th align="center">'.&mt('Other css').'</th>'. 
                           &Apache::loncommon::end_data_table_row().                            &Apache::loncommon::end_data_table_row().
                           &set_discussion_fonts($cdom,$cnum,$item,$settings).                            &set_discussion_fonts($cdom,$cnum,$item,$settings).
                           &Apache::loncommon::end_data_table();                            &Apache::loncommon::end_data_table();
Line 3271  sub set_discussion_fonts { Line 3271  sub set_discussion_fonts {
   
 sub discussion_vote_classes {  sub discussion_vote_classes {
     my $classorder = ['twoplus','oneplus','zero','oneminus','twominus'];      my $classorder = ['twoplus','oneplus','zero','oneminus','twominus'];
     my %classtitles = &Apache::lonlocal::texthash(      my %classtitles = &Apache::lonlocal::texthash( 
                         'twoplus'  => 'Two sigma above mean',                          'twoplus'  => 'Two sigma above mean',
                         'oneplus'  => 'One sigma above mean',                          'oneplus'  => 'One sigma above mean',
                         'zero'     => 'Within one sigma of mean',                          'zero'     => 'Within one sigma of mean',
Line 3334  sub print_classlists { Line 3334  sub print_classlists {
                    text => '<b>'.&mt($itemtext->{'default_enrollment_end_date'}).'</b>',                     text => '<b>'.&mt($itemtext->{'default_enrollment_end_date'}).'</b>',
                    input => 'dates',                     input => 'dates',
                  },                   },
           'defaultcredits' => {
                      text => '<b>'.&mt($itemtext->{'defaultcredits'}).'</b>',
                    },
                 
         'nothideprivileged'   => {          'nothideprivileged'   => {
                    text => '<b>'.&mt($itemtext->{'nothideprivileged'}).'</b>',                     text => '<b>'.&mt($itemtext->{'nothideprivileged'}).'</b>',
                    input => 'checkbox',                     input => 'checkbox',
Line 3424  sub print_grading { Line 3427  sub print_grading {
                    input => 'selectbox',                     input => 'selectbox',
                    options => {                     options => {
                                 standard => &mt('Standard: shows points'),                                  standard => &mt('Standard: shows points'),
                                   categories => &mt('Categories: shows points according to categories'),
                                 external => &mt('External: shows number of completed parts and totals'),                                  external => &mt('External: shows number of completed parts and totals'),
                                 externalnototals => &mt('External: shows only number of completed parts'),                                  externalnototals => &mt('External: shows only number of completed parts'),
                                 spreadsheet => &mt('Spreadsheet: (with link to detailed scores)'),                                   spreadsheet => &mt('Spreadsheet: (with link to detailed scores)'), 
                               },                                },
                    order => ['standard','external','externalnototals','spreadsheet'],                     order => ['standard','categories','external','externalnototals','spreadsheet'],
                  },                   },
         'rndseed' => {          'rndseed' => {
                    text => '<b>'.&mt($itemtext->{'rndseed'}).'</b>'.                     text => '<b>'.&mt($itemtext->{'rndseed'}).'</b>'.

Removed from v.1.49.2.6  
changed lines
  Added in v.1.55


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