Your Moodle version

Question types: 2D/3D Structure Display Short Answer

qtype_easyostructure
Maintained by Picture of Carl LeBlond Carl LeBlond
Short answer question type in which the teacher can easily build 2D/3D structures in Marvin Sketch and display in Marvin View. Requires Marvin Applets from Chemaxon.
799
Moodle 2.3, 2.4, 2.5, 2.6

Overview

The 2D/3D Structure Display short answer question type is a short answer
question with MarvinSketch for building question content and MarvinView for
displaying question content. Anything that you can construct in MarvinSketch
can be easily used in short answer questions.
 
You can ask questions such as;
  • Are the two chlorine groups in the following structure cis or trans?
  • What is the name of the following reaction?
  • Does this structure have R or S absolute stereochemistry?

Features

  • Interactive - students can rotate molecules in 3D.
  • instructor builds molecules and reactions with simple editor (Marvin Sketch)
  • Different display options include line bond, normal (Lewis structure like) and 3D Ball and Stick.
  • Structures can be optimized in 2D and 3D before display.

License

This plugin adopts the same license that Moodle does.  The Marvin Applets are free for academic purposes.

Authors

This plugin was developed at the Indiana University of Pennsylvania (IUP).  Neither IUP or Carl LeBlond are affiliated with Chemaxon.

Requirements

This plugin requires Marvin Applets from Chemaxon which can be downloaded here.  Download the full package and install it at your web servers root directory.

Examples

Example questions are provided as a Moodle xml file in the examples folder. (coming soon)

Sets

This plugin is part of set EasyOChem.

Screenshots

Screenshot
Screenshot

Contributors

Picture of Carl LeBlond
Carl LeBlond (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Tue, Apr 8, 2014, 12:53 PM
    Carl,

    Many thanks for sharing this plugin with the Moodle community.

    I was successfully able to install the plugin and it appears to function as expected; however, I did not do much testing with Marvin and the applets seemed to cause some pretty serious lag on my system but that may just be the way I have java configured on my system. I am not sure how comfortable I would be installing java on a production server - at the very least it opens up another possible vulnerability point. I would classify it as a security concern and would recommend caution. It would be nice if the location of the marvin code could be a setting that could be modified via the user interface.

    Please provide a documentation URL. You are welcome to create your documentation in Moodle Docs, See http://docs.moodle.org/dev/Plugin_documentation for more information.

    Peace - Anthony
  • Picture of Carl LeBlond
    Wed, Apr 9, 2014, 12:54 AM
    Anthony - I added an admin setting so admins can set the path to their marvin install and added a documentation url. I will alos make these changes to the other Marvin Applet based qtypes I've submitted.

    Chemaxon has released a javascript version which should alleviate some of the security concerns, but it currently is limited in features. When Chamaxon's javascript version becomes more stable and has good feature set, I plan to rewrite this qtype to use it.
    Thanks! - Carl
  • Anthony Borrow
    Wed, Apr 9, 2014, 5:45 AM
    Carl - Many thanks for providing an option to set the path to Marvin. Hopefully the javascript version gets added soon enough; however, keep in mind that the js will need to have a GPL compatible license to be uploaded to Moodle plugins. Peace - Anthony
  • Anthony Borrow
    Wed, Apr 9, 2014, 8:01 AM
    It is encouraged to follow Moodle's coding style as outlined in:

    http://docs.moodle.org/dev/Coding_style
    http://docs.moodle.org/dev/Coding

    Tthe code checker plugin can be quite helpful in fine tuning your code and can be found at:

    https://moodle.org/plugins/view.php?plugin=local_codechecker

    You may wish to consider using that tool to further improve your plugin although most of these appear to be rather insignificant. In any case, below are the initial results:

    question/type/easyostructure/lib.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/renderer.php - 3 error(s) and 0 warning(s)
    question/type/easyostructure/edit_easyostructure_form.php - 4 error(s) and 0 warning(s)
    question/type/easyostructure/question.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/lang/en/qtype_easyostructure.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/styles.css
    question/type/easyostructure/easyostructure_script.js - 50 error(s) and 0 warning(s)
    question/type/easyostructure/backup/moodle2/backup_qtype_easyomech_plugin.class.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/backup/moodle2/restore_qtype_easyomech_plugin.class.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/backup/moodle1/lib.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/db/upgradelib.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/version.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/module.js - 1394 error(s) and 0 warning(s)
    question/type/easyostructure/settings.php - 2 error(s) and 1 warning(s)
    question/type/easyostructure/questiontype.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/README.txt - 1 error(s) and 0 warning(s)
    Total: 1463 error(s) and 1 warning(s)
  • Picture of Carl LeBlond
    Wed, Apr 9, 2014, 8:26 AM
    Anthony - I uploaded new version with cleaned up code styling for the php files. The module.js contains a function that has been minified and therefore gives significant style errors. Not sure what I can do about that. Thanks! Carl
  • Picture of German Valero
    Sat, Apr 19, 2014, 10:31 PM
    Hi,
    A Moodle Docs page was added at http://docs.moodle.org/26/en/2D/3D_structure_display_short_answer

    This question type add-on was added to the list at http://docs.moodle.org/26/en/Third-party_question_types
Please login to post comments