--- loncom/publisher/testbankimport.pm 2012/10/29 17:38:55 1.35
+++ loncom/publisher/testbankimport.pm 2013/10/10 00:46:50 1.43
@@ -1,5 +1,5 @@
# Handler for parsing text upload problem descriptions into .problems
-# $Id: testbankimport.pm,v 1.35 2012/10/29 17:38:55 raeburn Exp $
+# $Id: testbankimport.pm,v 1.43 2013/10/10 00:46:50 raeburn 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()
@@ -289,18 +289,20 @@ function colSet(caller) {
else {
if ((poolForm.elements[caller*5+3].options[poolForm.elements[caller*5+3].selectedIndex].value == "MC") || (poolForm.elements[caller*5+3].options[poolForm.elements[caller*5+3].selectedIndex].value == "MA") || (poolForm.elements[caller*5+3].options[poolForm.elements[caller*5+3].selectedIndex].value == "Ord")) {
poolForm.elements[caller*5+4].options[0] = new Option("Select","-1",true,true)
- poolForm.elements[caller*5+4].options[1] = new Option("a.","lcperiod",false,false)
- poolForm.elements[caller*5+4].options[2] = new Option("A.","ucperiod",false,false)
- poolForm.elements[caller*5+4].options[3] = new Option("(a)","lcparen",false,false)
- poolForm.elements[caller*5+4].options[4] = new Option("(A)","ucparen",false,false)
- poolForm.elements[caller*5+4].options[5] = new Option("a)","lconeparen",false,false)
- poolForm.elements[caller*5+4].options[6] = new Option("A)","uconeparen",false,false)
- poolForm.elements[caller*5+4].options[7] = new Option("a.)","lcdotparen",false,false)
- poolForm.elements[caller*5+4].options[8] = new Option("A.)","ucdotparen",false,false)
- poolForm.elements[caller*5+4].options[9] = new Option("(i)","romparen",false,false)
- poolForm.elements[caller*5+4].options[10] = new Option("i)","romoneparen",false,false)
- poolForm.elements[caller*5+4].options[11] = new Option("i.)","romdotparen",false,false)
- poolForm.elements[caller*5+4].options[12] = new Option("i.","romperiod",false,false)
+ poolForm.elements[caller*5+4].options[1] = new Option("a ","lcspace",false,false)
+ poolForm.elements[caller*5+4].options[2] = new Option("A ","ucspace",false,false)
+ poolForm.elements[caller*5+4].options[3] = new Option("a.","lcperiod",false,false)
+ poolForm.elements[caller*5+4].options[4] = new Option("A.","ucperiod",false,false)
+ poolForm.elements[caller*5+4].options[5] = new Option("(a)","lcparen",false,false)
+ poolForm.elements[caller*5+4].options[6] = new Option("(A)","ucparen",false,false)
+ poolForm.elements[caller*5+4].options[7] = new Option("a)","lconeparen",false,false)
+ poolForm.elements[caller*5+4].options[8] = new Option("A)","uconeparen",false,false)
+ poolForm.elements[caller*5+4].options[9] = new Option("a.)","lcdotparen",false,false)
+ poolForm.elements[caller*5+4].options[10] = new Option("A.)","ucdotparen",false,false)
+ poolForm.elements[caller*5+4].options[11] = new Option("(i)","romparen",false,false)
+ poolForm.elements[caller*5+4].options[12] = new Option("i)","romoneparen",false,false)
+ poolForm.elements[caller*5+4].options[13] = new Option("i.)","romdotparen",false,false)
+ poolForm.elements[caller*5+4].options[14] = new Option("i.","romperiod",false,false)
poolForm.elements[caller*5+4].selectedIndex = 0
}
else {
@@ -444,7 +446,7 @@ function verify() {
if ($numitems > 0) {
my $maxnum = $numitems - 1;
my %lt = &Apache::lonlocal::texthash(
- fnmb => 'File names must be unique',
+ fnmb => 'Filenames must be unique',
isum => 'is used more than once',
);
$$jsref .= qq|
@@ -487,9 +489,9 @@ 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 Testbank Upload utility can be used by LON-CAPA authors to generate LON-CAPA problem files from a testbank file of questions/answers.').'
'.
+ $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:').'
'.
&mt('A number in the specified format should appear at the start of each question.').'
'.
&mt('For multiple choice questions, the question number must begin the line that contains the question text; foils (starting (a), (i) etc.) should occur on subsequent lines.').'
'."\n".
- &mt('Correct answers should be numbered in the same way as the questions and should appear after all the questions (including question text and possible foils for all questions).').'
'."\n".
+ &mt('Correct answers should be numbered in the same way as the questions and should appear after [_1]all[_2] the questions (including question text and possible foils for all questions).','','').'
'."\n".
&mt('Each numbered question must have a corresponding numbered answer, although the answer itself may be blank for essay questions.').'
'."\n".
- &mt('For example, you would select 1. if your testbank file contained the following questions:').'
'. + &mt('For example, you would select [_1]1.[_2] if your testbank file contained the following questions:','','').''. ''. &Apache::lonhtmlcommon::topic_bar(3,$topics{3}).'1. '.&mt('The capital of the USA is ...').' (a) Washington D.C. @@ -557,7 +559,7 @@ sub display_one {'. ''. - &mt('For example, you would enter 6 if your testbank file contained the following sequence of questions:').'
'. + &mt('For example, you would enter [_1]6[_2] if your testbank file contained the following sequence of questions:','','').''. &mt('10 multiple choice questions').'
'. &mt('5 essay questions').'
'. &mt('5 fill-in-the-blank questions').'
'. @@ -601,15 +603,15 @@ sub display_two { my $steptitle = &mt('Information about question types and formats in each block.'); $r->print(''.&mt('Classification of blocks').'
'. '