Diff for /loncom/publisher/testbankimport.pm between versions 1.37 and 1.41

version 1.37, 2012/12/16 20:06:44 version 1.41, 2013/07/02 19:04:49
Line 444  function verify() { Line 444  function verify() {
     if ($numitems > 0) {      if ($numitems > 0) {
         my $maxnum = $numitems - 1;          my $maxnum = $numitems - 1;
         my %lt = &Apache::lonlocal::texthash(          my %lt = &Apache::lonlocal::texthash(
                                               fnmb => 'File names must be unique',                                                fnmb => 'Filenames must be unique',
                                               isum => 'is used more than once',                                                isum => 'is used more than once',
                                             );                                              );
         $$jsref .= qq|          $$jsref .= qq|
Line 487  sub display_zero { Line 487  sub display_zero {
     my ($r,$fn,$page,$webpath) = @_;      my ($r,$fn,$page,$webpath) = @_;
     my $go_default = 'NextPage';       my $go_default = 'NextPage'; 
     if ($fn eq '') {      if ($fn eq '') {
         $r->print('<b>'.&mt('Incomplete file upload').'</b> '.&mt('Return to the [_1]construction space menu[_2] to upload a file','<a href="'.$webpath.'">','</a>'));          $r->print('<b>'.&mt('Incomplete file upload').'</b> '.&mt('Return to the [_1]Authoring Space menu[_2] to upload a file','<a href="'.$webpath.'">','</a>'));
     }      }
     $r->print(&mt('The [_1]Testbank Upload[_2] utility can be used by LON-CAPA authors to generate LON-CAPA problem files from a testbank file of questions/answers.','<b>','</b>').'<br />'.      $r->print(&mt('The [_1]Testbank Upload[_2] utility can be used by LON-CAPA authors to generate LON-CAPA problem files from a testbank file of questions/answers.','<b>','</b>').'<br />'.
               &mt('The following question types can be converted:').'                &mt('The following question types can be converted:').'
Line 681  sub display_three { Line 681  sub display_three {
     my %lt = &Apache::lonlocal::texthash (      my %lt = &Apache::lonlocal::texthash (
                                           crt  => 'Create?',                                            crt  => 'Create?',
                                           typ  => 'Type',                                            typ  => 'Type',
                                           fnam => 'File Name',                                            fnam => 'Filename',
                                           ques => 'Question',                                            ques => 'Question',
                                           answ => 'Answer',                                            answ => 'Answer',
                                           chka => 'check all',                                            chka => 'check all',
Line 1776  sub print_header { Line 1776  sub print_header {
     my ($uname,$udom,$javascript,$loadentries,$title,$current_page,$pagesref,      my ($uname,$udom,$javascript,$loadentries,$title,$current_page,$pagesref,
         $namesref) = @_;          $namesref) = @_;
     my $brcrum = [{'href' => &Apache::loncommon::authorspace("/priv/$udom/$uname/"),      my $brcrum = [{'href' => &Apache::loncommon::authorspace("/priv/$udom/$uname/"),
                    'text' => 'Construction Space'}];                     'text' => 'Authoring Space'}];
     if ($env{'form.phase'} eq 'three') {      if ($env{'form.phase'} eq 'three') {
         if (ref($pagesref) eq 'ARRAY') {          if (ref($pagesref) eq 'ARRAY') {
             for (my $i=0; $i<$current_page; $i++) {              for (my $i=0; $i<$current_page; $i++) {
Line 1838  sub handler { Line 1838  sub handler {
     my $page_name = '';      my $page_name = '';
     my $current_page = '';      my $current_page = '';
     my $qcount = '';      my $qcount = '';
     my $title = 'Upload testbank questions to Construction Space';      my $title = 'Upload testbank questions to Authoring Space';
   
 # ----------------------------------------------------------- Start page output  # ----------------------------------------------------------- Start page output
     &Apache::loncommon::content_type($r,'text/html');      &Apache::loncommon::content_type($r,'text/html');
Line 1947  sub handler { Line 1947  sub handler {
                       &page_footer('',$fn).'</form>');                        &page_footer('',$fn).'</form>');
         }          }
     } else {      } else {
         &Apache::lonupload::phaseone($r,$fn,'testbank');          &Apache::lonupload::phaseone($r,$fn,'testbank',$uname,$udom);
     }      }
     $r->print(&Apache::loncommon::end_page());      $r->print(&Apache::loncommon::end_page());
     return OK;      return OK;

Removed from v.1.37  
changed lines
  Added in v.1.41


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