[LON-CAPA-users] enabling autoez for JSME

Raeburn, Stuart raeburn at msu.edu
Wed Apr 7 22:02:26 EDT 2021


Mark,

LON-CAPA's <organicresponse> tag supports an options attribute, which could be set to:
options="autoez".

However, to pass that option when the JSME molecular editor is loaded, you would need to update /home/httpd/lib/perl/Apache/chemresponse.pm on your LON-CAPA server(s) to include this one line change:

-    jsmeApplet = new JSApplet.JSME("jme", "420px", "330px");
+   jsmeApplet = new JSApplet.JSME("jme", "420px", "330px", {"options" : "$options"});

See: mail.lon-capa.org/pipermail/lon-capa-cvs/Week-of-Mon-20210405/029505.html

When the "Edit" button is used in Authoring Space to display the "colorful editor" the "Response: Organic Chemical Structure" box includes checkboxes for the following options:

Auto E,Z stereochemistry
Multipart Structures
No stereochemistry
Is a reaction
Able to number atoms

When those are checked the resulting XML will include a comma separated list of value(s) for the "options" attribute.

If EditXML is used to edit the problem other JSME options can be included that are not just from the set: autoez, multipart, nostereo, reaction, and number (corresponding to the checkboxes in the colorful editor).

For the complete list of options that can be passed when loading JSME see:
jsme-editor.github.io/dist/doc.html#OPTIONS

Note: the version of JSME included with the LON-CAPA 2.11.1, 2.11.2 and 2.11.3 releases was: 2015-02-09.  I will be including the 2020-12-26 release of JSME with LON-CAPA 2.12.


Stuart Raeburn
LON-CAPA Academic Consortium

________________________________________
From: LON-CAPA-users <lon-capa-users-bounces at mail.lon-capa.org> on behalf of Mark Wall via LON-CAPA-users <lon-capa-users at mail.lon-capa.org>
Sent: Wednesday, April 7, 2021 12:58 PM
To: lon-capa-users at mail.lon-capa.org
Subject: [LON-CAPA-users] enabling autoez for JSME

Hi,

Is there a way to have the autoez function enabled for the built-in JSME so we can do stereochemistry interpretations of alkenes in the organic response questions? Perhaps as a parameter when setting up the problem (i.e., autoez="yes"). Currently students need to manually enable stereochemistry interpretation for alkenes by clicking the wedge and clicking the double bond, something I'd rather avoid.

Thanks,
Mark


Mark J Wall, Ph.D.
Department of Chemistry
Dalhousie University
Halifax, NS
Ph: (902) 494-7565<tel:%28902%29%20494-7565>

________________________________
From: LON-CAPA-users <lon-capa-users-bounces at mail.lon-capa.org> on behalf of lon-capa-users-request at mail.lon-capa.org <lon-capa-users-request at mail.lon-capa.org>
Sent: March 18, 2021 11:58 AM
To: lon-capa-users at mail.lon-capa.org <lon-capa-users at mail.lon-capa.org>
Subject: LON-CAPA-users Digest, Vol 109, Issue 1

CAUTION: The Sender of this email is not from within Dalhousie.

Send LON-CAPA-users mailing list submissions to
        lon-capa-users at mail.lon-capa.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
or, via email, send a message with subject or body 'help' to
        lon-capa-users-request at mail.lon-capa.org

You can reach the person managing the list at
        lon-capa-users-owner at mail.lon-capa.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of LON-CAPA-users digest..."


Today's Topics:

   1. Re: {Disarmed} {Disarmed} Re: Lon-Capa demo problems on
      website (Lucas, Mark)
   2. Re: {Disarmed} {Disarmed} Re: Lon-Capa demo problems on
      website (Lucas, Mark)
   3. Re: {Disarmed}  {Disarmed} Re: Lon-Capa demo problems on
      website (Itay)
   4. Converter LON-CAPA problems to STACK questions out        now
      (Sprengel, Frauke)


----------------------------------------------------------------------

Message: 1
Date: Thu, 18 Feb 2021 21:06:27 +0000
From: "Lucas, Mark" <lucasm at ohio.edu>
To: "Lucas, Mark" <lucasm at ohio.edu>, Discussion list for LON-CAPA
        users <lon-capa-users at mail.lon-capa.org>
Subject: Re: [LON-CAPA-users] {Disarmed} {Disarmed} Re: Lon-Capa demo
        problems on website
Message-ID: <D58BADAB-D7F4-4CC8-B8C2-922838FD6B9F at ohio.edu>
Content-Type: text/plain; charset="utf-8"

Itay,

I?ve placed a few samples in:

/res/showandtell/SntPhysics/Favorites/Mark Lucas Favorites/Sample_problems.sequence

There are several that use HTML5, so they are not a ?standard? problem.
When Java and Physlets ran into issues in browsers, I coded a minimal chunk of HTML5 to
allow me to replicate some of my old physlet kinematics problems. I also took Wolfgang?s
arrow code that he shared with the group at a conference, stripped it down to a single arrow
(to wrap my head around it), and created several simple ?single arrow? practice problems.

I?ve also included a simple gnuplot problem and random label problem.

Under the hood one of the nice features is the ability to code adaptive hints.
As well  conceptgroups are a feature that allow on to produce more sophisticated randomization
in a fairly simple manner.

Hope this helps,
Mark
--
Mark Lucas                                                              email: lucasm at ohio.edu
252D Clippinger Lab                                             phone: (740)597-2984
Department of Physics and Astronomy                     fax: (740)593-0433
Ohio University
Athens, OH 45701


------------------------------

Message: 2
Date: Fri, 19 Feb 2021 15:54:07 +0000
From: "Lucas, Mark" <lucasm at ohio.edu>
To: Itay <itayf at nospammail.net>
Cc: Discussion list for LON-CAPA users
        <lon-capa-users at mail.lon-capa.org>
Subject: Re: [LON-CAPA-users] {Disarmed} {Disarmed} Re: Lon-Capa demo
        problems on website
Message-ID: <71B82DB9-F95D-4BC6-ACD2-E61E1CFEC5B8 at ohio.edu>
Content-Type: text/plain; charset="utf-8"

Itay,

I?m glad it is helpful.

Most of the problems coded locally at Ohio University have source available.

Later,
Mark

> On Feb 19, 2021, at 10:50 AM, Itay <itayf at nospammail.net> wrote:
>
> Mark,
>
> This is very helpful.  In particular, the fact that you made the source code available.
>
> Many Thanks
> Itay
>
> On Thu, 18 Feb 2021, at 23:06, Lucas, Mark wrote:
>> Itay,
>>
>> I?ve placed a few samples in:
>>
>> /res/showandtell/SntPhysics/Favorites/Mark Lucas
>> Favorites/Sample_problems.sequence
>>
>> There are several that use HTML5, so they are not a ?standard? problem.
>> When Java and Physlets ran into issues in browsers, I coded a minimal
>> chunk of HTML5 to
>> allow me to replicate some of my old physlet kinematics problems. I
>> also took Wolfgang?s
>> arrow code that he shared with the group at a conference, stripped it
>> down to a single arrow
>> (to wrap my head around it), and created several simple ?single arrow?
>> practice problems.
>>
>> I?ve also included a simple gnuplot problem and random label problem.
>>
>> Under the hood one of the nice features is the ability to code adaptive
>> hints.
>> As well  conceptgroups are a feature that allow on to produce more
>> sophisticated randomization
>> in a fairly simple manner.
>>
>> Hope this helps,
>> Mark
>> --
>> Mark Lucas                                                           email: lucasm at ohio.edu
>> 252D Clippinger Lab                                          phone: (740)597-2984
>> Department of Physics and Astronomy                  fax: (740)593-0433
>> Ohio University
>> Athens, OH 45701
>>
>>

--
Mark Lucas                                                              email: lucasm at ohio.edu
252D Clippinger Lab                                             phone: (740)597-2984
Department of Physics and Astronomy                     fax: (740)593-0433
Ohio University
Athens, OH 45701


------------------------------

Message: 3
Date: Fri, 19 Feb 2021 17:50:34 +0200
From: Itay <itayf at nospammail.net>
To: "Lucas, Mark" <lucasm at ohio.edu>, "Discussion list for LON-CAPA
        users" <lon-capa-users at mail.lon-capa.org>
Subject: Re: [LON-CAPA-users] {Disarmed}  {Disarmed} Re: Lon-Capa demo
        problems on website
Message-ID: <ada32b81-2815-4ef1-b6f4-5a5819455ff1 at www.fastmail.com>
Content-Type: text/plain;charset=utf-8

Mark,

This is very helpful.  In particular, the fact that you made the source code available.

Many Thanks
Itay

On Thu, 18 Feb 2021, at 23:06, Lucas, Mark wrote:
> Itay,
>
> I?ve placed a few samples in:
>
> /res/showandtell/SntPhysics/Favorites/Mark Lucas
> Favorites/Sample_problems.sequence
>
> There are several that use HTML5, so they are not a ?standard? problem.
> When Java and Physlets ran into issues in browsers, I coded a minimal
> chunk of HTML5 to
> allow me to replicate some of my old physlet kinematics problems. I
> also took Wolfgang?s
> arrow code that he shared with the group at a conference, stripped it
> down to a single arrow
> (to wrap my head around it), and created several simple ?single arrow?
> practice problems.
>
> I?ve also included a simple gnuplot problem and random label problem.
>
> Under the hood one of the nice features is the ability to code adaptive
> hints.
> As well  conceptgroups are a feature that allow on to produce more
> sophisticated randomization
> in a fairly simple manner.
>
> Hope this helps,
> Mark
> --
> Mark Lucas                                                            email: lucasm at ohio.edu
> 252D Clippinger Lab                                           phone: (740)597-2984
> Department of Physics and Astronomy                   fax: (740)593-0433
> Ohio University
> Athens, OH 45701
>
>


------------------------------

Message: 4
Date: Thu, 18 Mar 2021 15:58:37 +0100
From: "Sprengel, Frauke" <frauke.sprengel at hs-hannover.de>
To: Discussion list for LON-CAPA users
        <lon-capa-users at mail.lon-capa.org>
Subject: [LON-CAPA-users] Converter LON-CAPA problems to STACK
        questions out   now
Message-ID: <d23808df-d4b3-d09d-8a5e-10567218ae95 at hs-hannover.de>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20210318/70e1d7c1/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


------------------------------

End of LON-CAPA-users Digest, Vol 109, Issue 1
**********************************************


More information about the LON-CAPA-users mailing list