[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm /html/adm/help/tex Problem_Editor_XML_Index.tex Variables_in_the_Answer_Block.tex

bowersj2 lon-capa-cvs@mail.lon-capa.org
Thu, 18 Jul 2002 20:52:36 -0000


bowersj2		Thu Jul 18 16:52:36 2002 EDT

  Added files:                 
    /loncom/html/adm/help/tex	Problem_Editor_XML_Index.tex 

  Modified files:              
    /loncom/homework	lonhomework.pm 
    /loncom/html/adm/help/tex	Variables_in_the_Answer_Block.tex 
  Log:
  Adds a help menu of useful tidbits while editing a problem's XML.
  
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.81 loncom/homework/lonhomework.pm:1.82
--- loncom/homework/lonhomework.pm:1.81	Wed Jun 26 13:20:38 2002
+++ loncom/homework/lonhomework.pm	Thu Jul 18 16:52:36 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.81 2002/06/26 17:20:38 albertel Exp $
+# $Id: lonhomework.pm,v 1.82 2002/07/18 20:52:36 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -28,6 +28,7 @@
 # Guy Albertelli
 # 11/30 Gerd Kortemeyer
 # 6/1,8/17,8/18 Gerd Kortemeyer
+# 7/18 Jeremy Bowers
 
 package Apache::lonhomework;
 use strict;
@@ -43,6 +44,7 @@
 use Apache::outputtags();
 use Apache::Constants qw(:common);
 use HTML::Entities();
+use Apache::loncommon;
 #use Time::HiRes qw( gettimeofday tv_interval );
 
 BEGIN {
@@ -315,6 +317,7 @@
     &renderpage($request,$file);
   } else {
     my ($rows,$cols) = &Apache::edit::textarea_sizes(\$problem);
+    my $xml_help = Apache::loncommon::help_open_topic("Problem_Editor_XML_Index");
     if ($cols > 80) { $cols = 80; }
     $result.='<html><body bgcolor="#FFFFFF">
             <form name="lonhomework" method="POST" action="'.
@@ -327,6 +330,7 @@
             <input type="submit" name="submit" value="Submit Changes and View" />
             <input type="submit" name="Undo" value="undo" />
             <hr />
+            ' . $xml_help . ' Problem Help<br>
             <textarea rows="'.$rows.'" cols="'.$cols.'" name="editxmltext">'.
 	      &HTML::Entities::encode($problem).'</textarea>
             </form></body></html>';
Index: loncom/html/adm/help/tex/Variables_in_the_Answer_Block.tex
diff -u loncom/html/adm/help/tex/Variables_in_the_Answer_Block.tex:1.2 loncom/html/adm/help/tex/Variables_in_the_Answer_Block.tex:1.3
--- loncom/html/adm/help/tex/Variables_in_the_Answer_Block.tex:1.2	Thu Jul 18 11:52:27 2002
+++ loncom/html/adm/help/tex/Variables_in_the_Answer_Block.tex	Thu Jul 18 16:52:36 2002
@@ -1,7 +1,7 @@
 \label{Variables_in_the_Answer_Block}
 
-You can use variables in the \textbf{Answer} part of the question, too. This
-means you can compute an answer to a question, which we'll see in a bit.
+You can use variables in the \textbf{Answer} part of the question. This
+means you can compute an answer to a question.
 If you set the answer of the question to be \textbf{\$variable}, \textbf{Save
 Changes} and \textbf{View} it, you'll see that LON-CAPA is now expecting
 {}``3.0'' as the answer, plus or minus 5\%.

Index: loncom/html/adm/help/tex/Problem_Editor_XML_Index.tex
+++ loncom/html/adm/help/tex/Problem_Editor_XML_Index.tex
\label{Problem_Editor_XML_Index}

There is currently no specific documentation on the XML file format,
but you may find the following help topics useful:

\emph{Numerical Response Information}

\begin{itemize}

\item \ref{Tolerance} Tolerance
\item \ref{Significant_Figures} Significant Figures
\item \ref{Numerical_Response_Units} Units
\item \ref{Numerical_Response_Format} Formatting numbers

\end{itemize}

\emph{Formula Response Information}

\begin{itemize}

\item \ref{Formula_Response_Sampling} Sample Specification Format
\item \ref{Formula_Response_Limitations} Formula Response Limitations
\item \ref{Formula_Tolerance} On Tolerance in Formulas

\end{itemize}

\emph{Script Writing}

\begin{itemize}

\item \ref{Variables_in_the_Text_Block} Variables in the Text Block
\item \ref{Calling_Functions} Calling Functions
\item \ref{Scripting_Help} Getting More Help with Scripting

\end{itemize}

\emph{Script and Problem Examples}

\begin{itemize}

\item \ref{Numerical_Response_Advanced_Example} Numerical Response Example
\item \ref{Formula_Response_Example} Formula Response Example

\end{itemize}