Diff for /loncom/interface/lonrequestcourse.pm between versions 1.95.2.5.2.2 and 1.110

version 1.95.2.5.2.2, 2021/03/07 00:53:35 version 1.110, 2021/03/06 13:44:51
Line 163  sub handler { Line 163  sub handler {
     }      }
   
     if ($canreq) {      if ($canreq) {
           if (($env{'form.crstype'} eq 'lti') && ($env{'request.lti.login'}) &&
               ($env{'form.lti.reqrole'} eq 'cc') && ($env{'form.lti.reqcrs'}) &&
               ($env{'form.lti.sourcecrs'} ne '')) {
               if ($action eq 'process') {
                   if ($can_request{'lti'}) {
                       my %domconfig = &Apache::lonnet::get_dom('configuration',['requestcourses'],$dom);
                       &process_textbook_request($r,$dom,$action,\%domdefs,\%domconfig,\%can_request,'lti');
                   } else {
                       $r->print(&header('Course Request','','','',{ 'only_body' => 1}).
                                 '<div>'.
                                 '<p class="LC_info">'.&mt('You do not have privileges to request creation of LTI courses.').'</p>'.
                                 '</div>'.
                                 &Apache::loncommon::end_page());
                   }
               }
               return OK;
           }
         if (($env{'form.crstype'} eq 'textbook') ||           if (($env{'form.crstype'} eq 'textbook') || 
             (scalar(keys(%can_request)) == 1) && ($can_request{'textbook'})) {              (scalar(keys(%can_request)) == 1) && ($can_request{'textbook'})) {
             my %domconfig = &Apache::lonnet::get_dom('configuration',['requestcourses'],$dom);              my %domconfig = &Apache::lonnet::get_dom('configuration',['requestcourses'],$dom);
Line 200  sub handler { Line 217  sub handler {
                 }                  }
             } else {              } else {
                 if ($can_request{'textbook'}) {                  if ($can_request{'textbook'}) {
                     &print_textbook_form($r,$dom,\@incdoms,\%domdefs,$domconfig{'requestcourses'},\%can_request);                      &print_textbook_form($r,$dom,\@incdoms,\%domdefs,$domconfig{'requestcourses'},
                                            \%can_request,'textbook');
                 } else {                  } else {
                     &textbook_request_disabled($r,$dom,$action,\%can_request);                      &textbook_request_disabled($r,$dom,$action,\%can_request);
                 }                  }
Line 769  function check_can_request(crschoice,act Line 787  function check_can_request(crschoice,act
     var unofficial = '';      var unofficial = '';
     var community = '';      var community = '';
     var textbook = '';      var textbook = '';
       var placement = '';
 END  END
     if (ref($can_request) eq 'HASH') {      if (ref($can_request) eq 'HASH') {
         foreach my $item (keys(%{$can_request})) {          foreach my $item (keys(%{$can_request})) {
Line 782  END Line 801  END
         unofficial => 'You are not permitted to request creation of an unofficial course in this domain.',          unofficial => 'You are not permitted to request creation of an unofficial course in this domain.',
         community => 'You are not permitted to request creation of a community in this domain.',          community => 'You are not permitted to request creation of a community in this domain.',
         textbook => 'You are not permitted to request creation of a textbook course in this domain',          textbook => 'You are not permitted to request creation of a textbook course in this domain',
           placement => 'You are not permitted to request creation of a placement test in this domain',
         all => 'You must choose a specific course type when making a new course request.',          all => 'You must choose a specific course type when making a new course request.',
         allt => '"All types" is not allowed.',          allt => '"All types" is not allowed.',
     );       ); 
Line 811  END Line 831  END
                         return false;                          return false;
                     }                      }
                 } else {                  } else {
                     if (actionchoice == 'new') {                      if (crschoice == 'placement') {
                         alert('$js_lt{'all'}'+'\\n'+'$js_lt{'allt'}');                          if (placement != 1) {
                         return false;                              alert("$js_lt{'placement'}");
                               return false;
                           }
                       } else {
                           if (actionchoice == 'new') {
                               alert('$js_lt{'all'}'+'\\n'+'$js_lt{'allt'}');
                               return false;
                           }
                     }                      }
                 }                  }
             }              }
Line 824  END Line 851  END
 END  END
     my ($pagetitle,$pageinfo,$domaintitle,$earlyout);      my ($pagetitle,$pageinfo,$domaintitle,$earlyout);
     if (ref($can_request) eq 'HASH') {      if (ref($can_request) eq 'HASH') {
         if (($can_request->{'official'}) || ($can_request->{'unofficial'}) || $can_request->{'textbook'}) {          if (($can_request->{'official'}) || ($can_request->{'unofficial'}) || ($can_request->{'textbook'}) || ($can_request->{'placement'})) {
             if ($can_request->{'community'}) {              if ($can_request->{'community'}) {
                 $pagetitle = 'Course/Community Requests';                  $pagetitle = 'Course/Community Requests';
                 $pageinfo = &mt('Request creation of a new course or community, or review your pending requests.');                  $pageinfo = &mt('Request creation of a new course or community, or review your pending requests.');
Line 1001  END Line 1028  END
                 $title = &mt('Pending requests for unofficial courses');                  $title = &mt('Pending requests for unofficial courses');
             } elsif ($env{'form.crstype'} eq 'textbook') {              } elsif ($env{'form.crstype'} eq 'textbook') {
                 $title = &mt('Pending requests for textbook courses');                  $title = &mt('Pending requests for textbook courses');
               } elsif ($env{'form.crstype'} eq 'textbook') {
                   $title = &mt('Pending requests for placement tests'); 
             } else {              } else {
                 $title = &mt('Pending course/community requests');                   $title = &mt('Pending course/community requests'); 
             }              }
Line 2102  sub print_personnel_menu { Line 2131  sub print_personnel_menu {
             official => 'Requestor is automatically assigned Course Coordinator role.',              official => 'Requestor is automatically assigned Course Coordinator role.',
         );          );
         $lt{'unofficial'} = $lt{'official'};          $lt{'unofficial'} = $lt{'official'};
         $lt{'textbook'} = $lt{'textbook'};          $lt{'textbook'} = $lt{'official'};
           $lt{'placement'} = $lt{'official'};
         $output .= &Apache::lonhtmlcommon::row_headline().          $output .= &Apache::lonhtmlcommon::row_headline().
                   '<h3>'.&Apache::loncommon::help_open_topic('Course_Request_Personnel').'&nbsp;'.$lt{$crstype}.' '.&mt('Include other personnel?').'</h3>';                    '<h3>'.&Apache::loncommon::help_open_topic('Course_Request_Personnel').'&nbsp;'.$lt{$crstype}.' '.&mt('Include other personnel?').'</h3>';
     }      }
Line 2118  sub print_personnel_menu { Line 2148  sub print_personnel_menu {
             }              }
         }          }
     }      }
     for (my $i=0; $i<$persontotal; $i++) {       my ($trusted,$untrusted) = &Apache::lonnet::trusted_domains('enroll',$dom);
       for (my $i=0; $i<$persontotal; $i++) {
         my @linkargs = map { 'person_'.$i.'_'.$_ } (@items);          my @linkargs = map { 'person_'.$i.'_'.$_ } (@items);
         my $linkargstr = join("','",@linkargs);          my $linkargstr = join("','",@linkargs);
         my $uname_form = '<input type="text" name="person_'.$i.'_uname" value="" size="20" />';          my $uname_form = '<input type="text" name="person_'.$i.'_uname" value="" size="20" />';
         my $onchange = 'javascript:fix_domain('."'$formname','person_".$i."_dom',".          my $onchange = 'javascript:fix_domain('."'$formname','person_".$i."_dom',".
                        "'person_".$i."_hidedom','person_".$i."_uname'".');';                         "'person_".$i."_hidedom','person_".$i."_uname'".');';
         my $udom_form = &Apache::loncommon::select_dom_form($dom,'person_'.$i.'_dom','',          my $udom_form = &Apache::loncommon::select_dom_form($dom,'person_'.$i.'_dom','',
                                                             1,$onchange).                                                              1,$onchange,undef,$trusted,$untrusted).
                         '<input type="hidden" name="person_'.$i.'_hidedom" value="" />';                          '<input type="hidden" name="person_'.$i.'_hidedom" value="" />';
         my %form_elems;          my %form_elems;
         foreach my $item (@items) {          foreach my $item (@items) {
Line 2530  sub print_request_logs { Line 2561  sub print_request_logs {
         if (ref($domconfig{'requestcourses'}) eq 'HASH') {          if (ref($domconfig{'requestcourses'}) eq 'HASH') {
             if (ref($domconfig{'requestcourses'}{'uniquecode'}) eq 'HASH') {              if (ref($domconfig{'requestcourses'}{'uniquecode'}) eq 'HASH') {
                 if ($curr{'crstype'} eq 'any') {                  if ($curr{'crstype'} eq 'any') {
                     my @types = qw(official unofficial community textbook);                      my @types = qw(official unofficial community textbook placement);
                     foreach my $type (@types) {                      foreach my $type (@types) {
                         if ($domconfig{'requestcourses'}{'uniquecode'}{$type}) {                          if ($domconfig{'requestcourses'}{'uniquecode'}{$type}) {
                             $showuniquecode = 1;                              $showuniquecode = 1;
Line 2698  sub reqstatus_names { Line 2729  sub reqstatus_names {
                         rejected  => 'Request rejected',                          rejected  => 'Request rejected',
                         cancelled => 'Request cancelled',                          cancelled => 'Request cancelled',
             );              );
     if (($crstype eq 'official') || ($crstype eq 'unofficial') || ($crstype eq 'textbook')) {      if (($crstype eq 'official') || ($crstype eq 'unofficial') || ($crstype eq 'textbook') || ($crstype eq 'placement')) {
         $statusnames{'created'} = &mt('Course created');          $statusnames{'created'} = &mt('Course created');
     } elsif ($crstype eq 'community') {      } elsif ($crstype eq 'community') {
         $statusnames{'created'} = &mt('Community created');          $statusnames{'created'} = &mt('Community created');
Line 3111  sub courseinfo_form { Line 3142  sub courseinfo_form {
     &js_escape(\%js_lt);      &js_escape(\%js_lt);
     $js_lt{'unofficial'} = $js_lt{'official'};      $js_lt{'unofficial'} = $js_lt{'official'};
     $js_lt{'textbook'} = $js_lt{'official'};      $js_lt{'textbook'} = $js_lt{'official'};
       $js_lt{'placement'} = $js_lt{'official'};
     my $js_validate = <<"ENDJS";      my $js_validate = <<"ENDJS";
 <script type="text/javascript">  <script type="text/javascript">
 // <![CDATA['  // <![CDATA['
Line 3190  sub clone_form { Line 3222  sub clone_form {
     my $type = 'Course';      my $type = 'Course';
     if ($crstype eq 'community') {      if ($crstype eq 'community') {
         $type = 'Community';          $type = 'Community';
       } elsif ($crstype eq 'placement') {
           $type = 'Placement'; 
     }      }
     my %lt = &clone_text($crstype);      my %lt = &clone_text($crstype);
     my $output .=       my $output .= 
Line 3373  sub get_course_dom { Line 3407  sub get_course_dom {
                     return $env{'user.domain'};                      return $env{'user.domain'};
                 }                  }
             }              }
             my @possible_doms;              my (@possible_doms,%willtrust);
             foreach my $type (@{$types}) {              foreach my $type (@{$types}) {
                 my $dom_str = $env{'environment.reqcrsotherdom.'.$type};                  my $dom_str = $env{'environment.reqcrsotherdom.'.$type};
                 if ($dom_str ne '') {                  if ($dom_str ne '') {
                     my @domains = split(',',$dom_str);                      my @domains = split(',',$dom_str);
                     foreach my $entry (@domains) {                      foreach my $entry (@domains) {
                         my ($extdom,$extopt) = split(':',$entry);                          my ($extdom,$extopt) = split(':',$entry);
                         if ($extdom eq $env{'request.role.domain'}) {                          unless (exists($willtrust{$extdom})) {
                             return $extdom;                              $willtrust{$extdom} = &Apache::lonnet::will_trust('reqcrs',$env{'user.domain'},$extdom);
                         }                           }
                         unless(grep(/^\Q$extdom\E$/,@possible_doms)) {                          if ($willtrust{$extdom}) {
                             push(@possible_doms,$extdom);                              if ($extdom eq $env{'request.role.domain'}) {
                                   return $extdom;
                               }
                               unless(grep(/^\Q$extdom\E$/,@possible_doms)) {
                                   push(@possible_doms,$extdom);
                               }
                         }                          }
                     }                      }
                 }                  }
Line 3698  sub print_request_outcome { Line 3737  sub print_request_outcome {
                                                         $instcode,$req_notifylist,\@instsections,\%domconfig);                                                          $instcode,$req_notifylist,\@instsections,\%domconfig);
     return ($result,$output,$customized);      return ($result,$output,$customized);
 }  }
       
 sub process_request {  sub process_request {
     my ($r,$lonhost,$dom,$cnum,$crstype,$now,$details,$instcode,$req_notifylist,$instsections,      my ($r,$lonhost,$dom,$cnum,$crstype,$now,$details,$instcode,$req_notifylist,$instsections,
         $domconfig) = @_;           $domconfig) = @_; 
Line 3716  sub process_request { Line 3755  sub process_request {
             $output = &mt('You are not permitted to request creation of communities');              $output = &mt('You are not permitted to request creation of communities');
         } elsif ($crstype eq 'textbook') {          } elsif ($crstype eq 'textbook') {
             $output = &mt('You are not permitted to request creation of textbook courses');              $output = &mt('You are not permitted to request creation of textbook courses');
           } elsif ($crstype eq 'placement') {
               $output = &mt('You are not permitted to request creation of placement tests');
         } else {          } else {
             $output = &mt('Unrecognized course type: [_1]',$crstype);              $output = &mt('Unrecognized course type: [_1]',$crstype);
         }          }
Line 4404  sub check_autolimit { Line 4445  sub check_autolimit {
             if (($crstype eq 'community') &&               if (($crstype eq 'community') && 
                 (exists($crsroles{$cnum.':'.$cdom.':co'}))) {                  (exists($crsroles{$cnum.':'.$cdom.':co'}))) {
                 $count ++;                  $count ++;
             } elsif ((($crstype eq 'official') || ($crstype eq 'unofficial') || ($crstype eq 'textbook')) &&              } elsif ((($crstype eq 'official') || ($crstype eq 'unofficial') || ($crstype eq 'textbook') || ($crstype eq 'placement')) &&
                      (exists($crsroles{$cnum.':'.$cdom.':cc'}))) {                       (exists($crsroles{$cnum.':'.$cdom.':cc'}))) {
                 $count ++;                  $count ++;
             }              }
Line 4455  sub retrieve_settings { Line 4496  sub retrieve_settings {
             }              }
             $env{'form.datemode'} = $reqinfo{'datemode'};              $env{'form.datemode'} = $reqinfo{'datemode'};
             $env{'form.dateshift'} = $reqinfo{'dateshift'};              $env{'form.dateshift'} = $reqinfo{'dateshift'};
             $env{'form.tinyurls'} = $reqinfo{'tinyurls'};               $env{'form.tinyurls'} = $reqinfo{'tinyurls'};
             if ($reqinfo{'crstype'} eq 'official') {              if ($reqinfo{'crstype'} eq 'official') {
                 $env{'form.autoadds'} = $reqinfo{'autoadds'};                  $env{'form.autoadds'} = $reqinfo{'autoadds'};
                 $env{'form.autodrops'} = $reqinfo{'autodrops'};                  $env{'form.autodrops'} = $reqinfo{'autodrops'};
Line 4607  sub generate_date_items { Line 4648  sub generate_date_items {
 }  }
   
 sub print_textbook_form {  sub print_textbook_form {
     my ($r,$dom,$incdoms,$domdefs,$settings,$can_request) = @_;      my ($r,$dom,$incdoms,$domdefs,$settings,$can_request,$crstype,$formhash) = @_;
     my (%prefab,%ordered,%numprefab);      my (%prefab,%ordered,%numprefab);
     my $crstype = 'textbook';      if ($crstype eq '') {
           $crstype = 'textbook';
       }
 #  #
 #  Retrieve list of prefabricated courses (textbook courses and templates) cloneable by user  #  Retrieve list of prefabricated courses (textbook courses and templates) cloneable by user
 #  #
Line 4669  sub print_textbook_form { Line 4712  sub print_textbook_form {
                                                owner => $courseinfo{'internal.courseowner'},                                                 owner => $courseinfo{'internal.courseowner'},
                                                releaserequired => $courseinfo{'internal.releaserequired'},                                                 releaserequired => $courseinfo{'internal.releaserequired'},
                                                type  => $courseinfo{'type'},                                                 type  => $courseinfo{'type'},
                                            };                                            };
         }          }
     }      }
   
Line 4726  sub print_textbook_form { Line 4769  sub print_textbook_form {
   
     my $jscript = &textbook_request_javascript(\%numprefab,$numcurrent,$numdomcourses,$customvalidationjs);      my $jscript = &textbook_request_javascript(\%numprefab,$numcurrent,$numdomcourses,$customvalidationjs);
     $jscript .= $customjs;      $jscript .= $customjs;
     my %loaditems;      my (%loaditems,$args);
     $loaditems{'onload'} = 'javascript:uncheckAllRadio();'.$customonload;      $loaditems{'onload'} = 'javascript:uncheckAllRadio();'.$customonload;
     $r->print(&header('Course Request',$jscript,\%loaditems));      if ($crstype eq 'lti') {
          $args = { 'only_body' => 1};
       }
       $r->print(&header('Course Request',$jscript,\%loaditems,undef,$args));
   
     if (ref($can_request) eq 'HASH') {      if (ref($can_request) eq 'HASH') {
         unless ((scalar(keys(%{$can_request})) == 1) && ($can_request->{'textbook'})) {          unless (((scalar(keys(%{$can_request})) == 1) && ($can_request->{'textbook'})) ||
                   ($crstype eq 'lti')) {
             &Apache::lonhtmlcommon::add_breadcrumb(              &Apache::lonhtmlcommon::add_breadcrumb(
                 { href => '/adm/requestcourse',                  { href => '/adm/requestcourse',
                   text => 'Pick action',                    text => 'Pick action',
                 });                  });
         }          }
     }      }
     &Apache::lonhtmlcommon::add_breadcrumb({text=>'Course Request'});      unless ($crstype eq 'lti') {
     $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Requests','Course_Requests'));          &Apache::lonhtmlcommon::add_breadcrumb({text=>'Course Request'});
           $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Requests','Course_Requests'));
   
     &startContentScreen($r,'textbookrequests');          &startContentScreen($r,'textbookrequests');
 #  #
 # Show domain selector form, if required.  # Show domain selector form, if required.
 #  #
     if (@{$incdoms} > 1) {          if (@{$incdoms} > 1) {
         my $onchange = 'this.form.submit()';              my $onchange = 'this.form.submit()';
         $r->print('<form name="domforcourse" method="post" action="/adm/requestcourse">'.              $r->print('<form name="domforcourse" method="post" action="/adm/requestcourse">'.
                   '<div><fieldset><legend>'.&mt('Domain').'</legend>'.                        '<div><fieldset><legend>'.&mt('Domain').'</legend>'.
                   &Apache::loncommon::select_dom_form($dom,'showdom','',1,$onchange,$incdoms).                        &Apache::loncommon::select_dom_form($dom,'showdom','',1,$onchange,$incdoms).
                   '</fieldset></form>');                        '</fieldset></form>');
           }
     }      }
   
 #  #
Line 4946  sub print_textbook_form { Line 4995  sub print_textbook_form {
 #  #
 # Submit button  # Submit button
 #  #
     $r->print('<input type="hidden" name="crstype" value="textbook" />'.      $r->print('<input type="hidden" name="crstype" value="'.$crstype.'" />'.
               '<input type="hidden" name="action" value="process" />'.                '<input type="hidden" name="action" value="process" />'.
               '<input type="submit" value="'.&mt('Create course').'" />');                '<input type="submit" value="'.&mt('Create course').'" />');
   
 #  #
 # End request form  # End request form
 #  #
   
       if (($crstype eq 'lti') && (ref($formhash) eq 'HASH')) {
           foreach my $item (keys(%{$formhash})) {
               $r->print('<input type="hidden" name="'.$item.'" value="'.$formhash->{$item}.'" />'."\n");
           }
       }
   
     $r->print('</form>');      $r->print('</form>');
     &endContentScreen($r).      unless ($crstype eq 'lti') {
           &endContentScreen($r);
       }
     $r->print(&Apache::loncommon::end_page());      $r->print(&Apache::loncommon::end_page());
     return;      return;
 }  }
Line 5041  sub clone_selection_table { Line 5099  sub clone_selection_table {
 }  }
   
 sub process_textbook_request {  sub process_textbook_request {
     my ($r,$dom,$action,$domdefs,$domconfig,$can_request) = @_;      my ($r,$dom,$action,$domdefs,$domconfig,$can_request,$crstype) = @_;
     my ($uniquecode,$req_notifylist);      my ($uniquecode,$req_notifylist);
     my $crstype = 'textbook';      if ($crstype eq '') {
           $crstype = 'textbook';
       }
     if (ref($domconfig) eq 'HASH') {      if (ref($domconfig) eq 'HASH') {
         if (ref($domconfig->{'requestcourses'}) eq 'HASH') {          if (ref($domconfig->{'requestcourses'}) eq 'HASH') {
             if (ref($domconfig->{'requestcourses'}{'notify'}) eq 'HASH') {              if (ref($domconfig->{'requestcourses'}{'notify'}) eq 'HASH') {
Line 5085  sub process_textbook_request { Line 5145  sub process_textbook_request {
         }          }
     }      }
     my $js = &processing_javascript();      my $js = &processing_javascript();
     my $loaditems = {       my ($loaditems,$args);
                       onload => 'javascript:hideProcessing();',      $loaditems = {
                     };                     onload => 'javascript:hideProcessing();',
     $r->print(&header('Course Creation',$js,$loaditems));                   };
       if ($crstype eq 'lti') {
     if (ref($can_request) eq 'HASH') {         $args = { 'only_body' => 1};
         unless ((scalar(keys(%{$can_request})) == 1) && ($can_request->{'textbook'})) {      }
             &Apache::lonhtmlcommon::add_breadcrumb(      $r->print(&header('Course Creation',$js,$loaditems,undef,$args));
                 { href => '/adm/requestcourse',  
                   text => 'Pick action',      unless ($crstype eq 'lti') {
                 });          if (ref($can_request) eq 'HASH') {
               unless ((scalar(keys(%{$can_request})) == 1) && ($can_request->{'textbook'})) {
                   &Apache::lonhtmlcommon::add_breadcrumb(
                       { href => '/adm/requestcourse',
                         text => 'Pick action',
                       });
               }
         }          }
           &Apache::lonhtmlcommon::add_breadcrumb(
                                                  { href => '/adm/requestcourse',
                                                    text => "Create Course",
                                                  }
                                                 );
           &Apache::lonhtmlcommon::add_breadcrumb({text=>'Request Processed'});
           $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Requests','Course_Requests'));
           &startContentScreen($r,'textbookrequests');
     }      }
     &Apache::lonhtmlcommon::add_breadcrumb(  
                                            { href => '/adm/requestcourse',  
                                              text => "Create Course",  
                                            }  
                                           );  
     &Apache::lonhtmlcommon::add_breadcrumb({text=>'Request Processed'});  
     $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Requests','Course_Requests'));  
     &startContentScreen($r,'textbookrequests');  
   
     my $details = {      my $details = {
                     owner          => $env{'user.name'},                      owner          => $env{'user.name'},
Line 5157  sub process_textbook_request { Line 5223  sub process_textbook_request {
     my ($result,$output,$customized) = &process_request($r,$lonhost,$dom,$cnum,$crstype,$now,$details,      my ($result,$output,$customized) = &process_request($r,$lonhost,$dom,$cnum,$crstype,$now,$details,
                                                         '',$req_notifylist,[],$domconfig);                                                          '',$req_notifylist,[],$domconfig);
     $r->print($output);      $r->print($output);
     if (&Apache::loncoursequeueadmin::author_prompt()) {      if ($crstype eq 'lti') {
           my %consumers = &Apache::lonnet::get_dom('lticonsumers',[$env{'form.sourcecrs'}],$dom);
           if (($env{'form.lti.sourcecrs'} ne '')  && ($consumers{$env{'form.lti.sourcecrs'}} eq '') && ($cnum ne '')) {
               &Apache::lonnet::put_dom('lticonsumers',{ $env{'form.lti.sourcecrs'} => $cnum },$dom);
           }
       } elsif (&Apache::loncoursequeueadmin::author_prompt()) {
         unless ($customized) {          unless ($customized) {
             &print_author_prompt($r,$action,$cnum,$dom,$crstype,$result);              &print_author_prompt($r,$action,$cnum,$dom,$crstype,$result);
         }          }
Line 5166  sub process_textbook_request { Line 5237  sub process_textbook_request {
             $r->print('<p><a href="/adm/requestcourse">'.&mt('Create another course').'</a></p>');              $r->print('<p><a href="/adm/requestcourse">'.&mt('Create another course').'</a></p>');
         }          }
     }      }
     &endContentScreen($r);      unless ($crstype eq 'lti') {
           &endContentScreen($r);
       }
     $r->print(&Apache::loncommon::end_page());      $r->print(&Apache::loncommon::end_page());
 }  }
   

Removed from v.1.95.2.5.2.2  
changed lines
  Added in v.1.110


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