Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html import #189

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open

Html import #189

wants to merge 69 commits into from

Conversation

rlgreen91
Copy link
Contributor

This is the import function for the QTI data. Complete with a parser and transformer to transform HTML to Markdown.

…added a unit test for individual characters, as well as actual questions. The parser also identifies strings with non-ASCII characters and raises an exception.
… through, and can deal with text written on more than one line. All of the tests in qti_parser_test run successfully.
…c tags with the correct format. Had to change the parser unit test to adjust for changes in output.
… raise an exception. But, now it replaces italic tags, as well as bold and line break tags, with the correct formatting, regardless of the case.
…urly fs to parser. Changed error message for image to just text stating that an image is missing.
… of QTI content. It opens the files and creates a new project titled Import.
…to use based on the content type specified by the user.
… the question ids for each question (or will be able to).
…ormer to use. It then creates one project, looks for the first question, and grabs the first answer choice to that question. Then, it looks for the points assigned to each answer choice and normalizes them. Then, it assigns the correct amount of points to the first answer choice. I'll work on iterating through answer choices next.
…oices and select only those for the question being imported.
…es, parse and transform them, and add them to the question.
…earch based on the question id, just like the original function that finds the answer choices. This way, there shouldn't be any worries of answer choices and the corresponding points value not matching.
… of questions with any number of answer choices. Also wrote a unit test, that I will run shortly.
… set up so that it can easily be used by a controller.
… for importing an XML file with questions. Right now, it just has a drop-down menu to select the type of formatting the questions are in.
rlgreen91 and others added 30 commits June 26, 2012 14:40
… the parser, including the ability to handle links embedded in questions.
…link to import page on the write new questions view
…le returning the actual xml file as opposed to the filename.
…le returning the actual xml file as opposed to the filename.
…ment and the directory containing the images.
…, and returns a hash with key-value pairs of referenced image paths and files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants