Diff for /loncom/interface/lonpickcourse.pm between versions 1.116 and 1.117

version 1.116, 2015/05/21 23:40:09 version 1.117, 2016/04/02 04:30:21
Line 55  sub handler { Line 55  sub handler {
     my ($type,$title,$jscript,$multelement,$multiple,$roleelement,$typeelement,      my ($type,$title,$jscript,$multelement,$multiple,$roleelement,$typeelement,
         $lastaction,$autosubmit,$submitopener,$cloneruname,$clonerudom,$crscode,$crsdom);          $lastaction,$autosubmit,$submitopener,$cloneruname,$clonerudom,$crscode,$crsdom);
   
     # Get course type - Course or Community.      # Get course type - Course, Community or Placement.
     $type = $env{'form.type'};      $type = $env{'form.type'};
     if (!defined($env{'form.type'})) {      if (!defined($env{'form.type'})) {
         $type = 'Course';          $type = 'Course';
Line 457  sub display_matched_courses { Line 457  sub display_matched_courses {
         $r->print('<th>'.&mt('Select').'</th>'          $r->print('<th>'.&mt('Select').'</th>'
                  .'<th>'.$titlehdr.'</th>'                   .'<th>'.$titlehdr.'</th>'
                  .'<th>'.&mt('Domain').'</th>');                   .'<th>'.&mt('Domain').'</th>');
         unless ($type eq 'Community') {          unless (($type eq 'Community') || ($type eq 'Placement')) {
             $r->print('<th>'.&mt('Course Code').'</th>');              $r->print('<th>'.&mt('Course Code').'</th>');
         }          }
         $r->print('<th>'.&mt('Owner/Co-owner(s)').'</th>');          $r->print('<th>'.&mt('Owner/Co-owner(s)').'</th>');
Line 608  sub display_matched_courses { Line 608  sub display_matched_courses {
             $r->print(&Apache::lonnet::domain($cdom,'description')?              $r->print(&Apache::lonnet::domain($cdom,'description')?
                       $cdom.' ('.&Apache::lonnet::domain($cdom,'description').')':$cdom);                        $cdom.' ('.&Apache::lonnet::domain($cdom,'description').')':$cdom);
             $r->print('</td>');              $r->print('</td>');
             unless ($type eq 'Community') {               unless (($type eq 'Community') || ($type eq 'Placement')) { 
                 $r->print('<td>');                  $r->print('<td>');
                 if ($instcode ne '') {                  if ($instcode ne '') {
                     $r->print(&unescape($instcode));                      $r->print(&unescape($instcode));
Line 706  sub get_coordinator_cloneable { Line 706  sub get_coordinator_cloneable {
         my ($cc_clone,$ccrole);          my ($cc_clone,$ccrole);
         if ($type eq 'Community') {          if ($type eq 'Community') {
             $ccrole = 'co';              $ccrole = 'co';
         } elsif ($type eq 'Course') {          } else {
             $ccrole = 'cc';              $ccrole = 'cc';
         }          }
         my %ccroles = &Apache::lonnet::get_my_roles($cloneruname,$clonerudom,          my %ccroles = &Apache::lonnet::get_my_roles($cloneruname,$clonerudom,
Line 751  sub gochoose_javascript { Line 751  sub gochoose_javascript {
                                  total => 'coursetotal',                                   total => 'coursetotal',
                                  list  => 'courselist',                                   list  => 'courselist',
                               },                                },
                        'Placement' => {
                                    name  => 'coursepick',
                                    total => 'coursetotal',
                                    list  => 'courselist',
                                    },
                     );                      );
     my $output = qq|      my $output = qq|
 function gochoose(cname,cdom,cdesc) {  function gochoose(cname,cdom,cdesc) {
Line 872  Course Activity - how recently was cours Line 877  Course Activity - how recently was cours
 Course Domain - the domain of the course  Course Domain - the domain of the course
   
 =item *  =item *
 Type - Course or Community  Type - Course, Community or Placement
   
 =item *  =item *
 Course Institutional Code - the institutional identifier assigned to the course  Course Institutional Code - the institutional identifier assigned to the course
Line 925  Following selection, and/or submission, Line 930  Following selection, and/or submission,
 X<create_user_javascript()>  X<create_user_javascript()>
 B<create_user_javascript($type)>:  B<create_user_javascript($type)>:
   
 Input: 1 - $type  - the course type - Course or Community  Input: 1 - $type  - the course type - Course, Community, or Placement
   
 Output: 1 - $output - javascript wrapped in E<lt>scriptE<gt>E<lt>/scriptE<gt> tags   Output: 1 - $output - javascript wrapped in E<lt>scriptE<gt>E<lt>/scriptE<gt> tags 
   

Removed from v.1.116  
changed lines
  Added in v.1.117


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