--- loncom/homework/structuretags.pm 2004/02/16 20:20:01 1.241 +++ loncom/homework/structuretags.pm 2004/03/08 23:18:21 1.244 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.241 2004/02/16 20:20:01 albertel Exp $ +# $Id: structuretags.pm,v 1.244 2004/03/08 23:18:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -183,11 +183,11 @@ sub setup_rndseed { sub problem_edit_header { return ' - - -
- -
'. + + +
+ +
'. &Apache::loncommon::help_open_topic('Problem_Editor_XML_Index', 'Problem Editing Help').''. &Apache::loncommon::help_open_faq(5). @@ -213,10 +213,10 @@ sub option { sub problem_web_to_edit_header { my ($rndseed)=@_; my $result.=' - - - - + + + + - ".&option('exam' ,'problemtype')."Exam Problem - ".&option('problem','problemtype')."Homework problem - ".&option('survey' ,'problemtype')."Survey Question + ".&option('exam' ,'problemtype').&mt("Exam Problem")." + ".&option('problem','problemtype').&mt("Homework problem")." + ".&option('survey' ,'problemtype').&mt("Survey Question")." Feedback Mode: - +
"; my $numtoanalyze=$ENV{'form.numtoanalyze'}; if (!$numtoanalyze) { $numtoanalyze=20; } @@ -656,7 +656,10 @@ sub end_problem { sub start_library { my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; my ($result,$head_tag_start,$body_tag_start,$form_tag_start); - if ($$tagstack[0] eq 'library') { &init_problem_globals('library') }; + if ($$tagstack[0] eq 'library') { + &init_problem_globals('library'); + $Apache::lonhomework::type='problem'; + } if ($target eq 'edit') { ($result,$head_tag_start,$body_tag_start,$form_tag_start)= &page_start($target,$token,$tagstack,$parstack,$parser,$safeeval);