--- loncom/publisher/testbankimport.pm 2013/06/04 22:20:16 1.39 +++ loncom/publisher/testbankimport.pm 2013/07/15 14:32:59 1.42 @@ -1,5 +1,5 @@ # Handler for parsing text upload problem descriptions into .problems -# $Id: testbankimport.pm,v 1.39 2013/06/04 22:20:16 raeburn Exp $ +# $Id: testbankimport.pm,v 1.42 2013/07/15 14:32:59 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -89,7 +89,7 @@ function createWin() { newWindow.document.write("") newWindow.document.write("") newWindow.document.write("$webpath") - newWindow.document.write("") + newWindow.document.write("") newWindow.document.write('$end_page') newWindow.document.close() newWindow.focus() @@ -487,7 +487,7 @@ sub display_zero { my ($r,$fn,$page,$webpath) = @_; my $go_default = 'NextPage'; if ($fn eq '') { - $r->print(''.&mt('Incomplete file upload').' '.&mt('Return to the [_1]construction space menu[_2] to upload a file','','')); + $r->print(''.&mt('Incomplete file upload').' '.&mt('Return to the [_1]Authoring Space menu[_2] to upload a file','','')); } $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.','','').'
'. &mt('The following question types can be converted:').' @@ -510,7 +510,7 @@ sub display_zero {
'. &Apache::lonhtmlcommon::topic_bar(1,&mt('Optional: create a sub-directory in which the testbank questions will be saved')). &mt('By default, LON-CAPA problems generated from the testbank file will be stored in the current directory.').' '.&mt('To store them in a new sub-directory:'). - ' '. + ' '. &page_footer($env{'form.newdir'},$fn,$page,$webpath).'
'); } @@ -627,7 +627,7 @@ sub display_two { '  '."\n". '  '."\n". ' - '."\n"); foreach my $qtype (@types) { $r->print(''."\n"); @@ -1947,7 +1947,7 @@ sub handler { &page_footer('',$fn).''); } } else { - &Apache::lonupload::phaseone($r,$fn,'testbank'); + &Apache::lonupload::phaseone($r,$fn,'testbank',$uname,$udom); } $r->print(&Apache::loncommon::end_page()); return OK;