--- loncom/homework/chemresponse.pm 2003/05/04 08:45:22 1.1
+++ loncom/homework/chemresponse.pm 2004/03/31 05:23:59 1.32
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# chemical equation style response
#
-# $Id: chemresponse.pm,v 1.1 2003/05/04 08:45:22 albertel Exp $
+# $Id: chemresponse.pm,v 1.32 2004/03/31 05:23:59 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -32,37 +32,53 @@ use Apache::lonxml;
use Apache::lonnet;
BEGIN {
- &Apache::lonxml::register('Apache::chemresponse',('chemresponse','chemstructure'));
+ &Apache::lonxml::register('Apache::chemresponse',('organicresponse','organicstructure','reactionresponse'));
}
-sub seperate_jme_window {
- my ($id,$molecule)=@_;
+sub separate_jme_window {
+ my ($smile_input,$jme_input,$molecule,$options)=@_;
+ my $smilesection;
+ if (defined($smile_input)) {
+ $smilesection=<'; }
my $body=<
Molecule Editor
-