--- loncom/html/adm/help/tex/Institutional_Integration_Course_Codes.tex 2008/07/29 17:51:08 1.2
+++ loncom/html/adm/help/tex/Institutional_Integration_Course_Codes.tex 2011/05/26 11:53:50 1.4
@@ -18,19 +18,24 @@ Six arguments are required:
\item domain (\$dom)
\item reference to hash of institutional course IDs (\$instcodes)
\item reference to hash of codes (\$codes)
-\item reference to array of titles (\$codetitles), e.g., @\{\$codetitles\}
+\item reference to array of titles (\$codetitles),
+\begin{quote}
+e.g., @\{\$codetitles\}
+\begin{quote}
= (\char`\"{}year\char`\"{},\char`\"{}semester\char`\"{},\char`\"{}department\char`\"{},\char`\"{}number\char`\"{})
+\end{quote}
+\end{quote}
\item reference to hash of abbreviations used in categories, (\$cat\_titles)
e.g.,
\begin{quote}
\%\{\$\$cat\_titles\{'Semester'\}\} = (
\begin{quote}
-fs => 'Fall',
+fs =\textgreater 'Fall',
-ss => 'Spring',
+ss =\textgreater 'Spring',
-us => 'Summer');
+us =\textgreater 'Summer');
\end{quote}
\end{quote}
\item reference to hash of arrays specifying sort order used in category
@@ -77,7 +82,7 @@ The routine used at MSU is as follows:
\texttt{foreach my \$cid (keys \%\{\$instcodes\}) \{}
\begin{quotation}
-\texttt{if (\$\$instcodes\{\$cid\} =\~{} m/^({[}suf]s)(\textbackslash{}d\{2\})(\textbackslash{}w\{2,3\})(\textbackslash{}d\{3,4\}\textbackslash{}w?)\$/)
+\texttt{if (\$\$instcodes\{\$cid\} =\~{} m/\^{}({[}suf]s)(\textbackslash{}d\{2\})(\textbackslash{}w\{2,3\})(\textbackslash{}d\{3,4\}\textbackslash{}w?)\$/)
\{}
\begin{quotation}
\texttt{\$\$codes\{\$cid\}\{'Semester'\} = \$1;}
@@ -90,7 +95,7 @@ The routine used at MSU is as follows:
\texttt{my \$numyear = \$year;}
-\texttt{\$numyear =\~{} s/^0//;}
+\texttt{\$numyear =\~{} s/\^{}0//;}
\texttt{\$\$codes\{\$cid\}\{'Year'\} = \$year;}
@@ -140,7 +145,7 @@ course code into its component parts.
\begin{quotation}
\texttt{'Year' => '\textbackslash{}d\{2\}',}
-\texttt{'Semester' => '^{[}sfu]s',}
+\texttt{'Semester' => '\^{}{[}sfu]s',}
\texttt{'Department' => '\textbackslash{}w\{2,3\}',}