--- loncom/xml/lonxml.pm 2008/04/28 14:38:45 1.476
+++ loncom/xml/lonxml.pm 2008/05/29 15:43:01 1.479
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.476 2008/04/28 14:38:45 bisitz Exp $
+# $Id: lonxml.pm,v 1.479 2008/05/29 15:43:01 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1080,6 +1080,7 @@ Optional Arguments:
sub increment_counter {
my ($increment, $part_response) = @_;
+ if ($env{'form.grade_target'} eq 'analyze') { return; }
if (!defined($increment) || $increment le 0) {
$increment = 1;
}
@@ -1496,6 +1497,30 @@ sub verify_html {
return '';
}
+sub renderingoptions {
+ my %langchoices=('' => '');
+ foreach (&Apache::loncommon::languageids()) {
+ if (&Apache::loncommon::supportedlanguagecode($_)) {
+ $langchoices{&Apache::loncommon::supportedlanguagecode($_)}
+ = &Apache::loncommon::plainlanguagedescription($_);
+ }
+ }
+ return
+ ''.
+ &mt('Language:').' '.
+ &Apache::loncommon::select_form($env{'form.languages'},'languages',
+ %langchoices).'
+
+ '.
+ &mt('Math Rendering:').' '.
+ &Apache::loncommon::select_form($env{'form.texengine'},'texengine',
+ ('' => '',
+ 'tth' => 'tth (Tex-to-HTML)',
+ 'jsMath' => 'jsMath',
+ 'mimetex' => 'mimetex (Convert to Images)')).'
+ ';
+}
+
sub inserteditinfo {
my ($filecontents, $filetype, $filename)=@_;
$filecontents = &HTML::Entities::encode($filecontents,'<>&"');