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

Commits on May 18, 2012

  1. First version of QTI parser

    rlgreen91 committed May 18, 2012
    Configuration menu
    Copy the full SHA
    49fccef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c337b1b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dd839c View commit details
    Browse the repository at this point in the history

Commits on May 21, 2012

  1. Made the parser more flexible in terms of how it accepts inputs, and …

    …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.
    rlgreen91 committed May 21, 2012
    Configuration menu
    Copy the full SHA
    9770932 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2012

  1. Configuration menu
    Copy the full SHA
    b301335 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2012

  1. Changed the parser so that it accepts almost any character that comes…

    … through, and can deal with text written on more than one line. All of the tests in qti_parser_test run successfully.
    rlgreen91 committed May 23, 2012
    Configuration menu
    Copy the full SHA
    f44b892 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72af70b View commit details
    Browse the repository at this point in the history

Commits on May 25, 2012

  1. Fixed the parser(again). Now, the transformer will replace HTML itali…

    …c tags with the correct format. Had to change the parser unit test to adjust for changes in output.
    rlgreen91 committed May 25, 2012
    Configuration menu
    Copy the full SHA
    8ad5b4c View commit details
    Browse the repository at this point in the history
  2. Deleting old files

    rlgreen91 committed May 25, 2012
    Configuration menu
    Copy the full SHA
    3f1c8f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1300e7b View commit details
    Browse the repository at this point in the history

Commits on May 26, 2012

  1. Still having problems with getting the parser to recognize images and…

    … 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.
    rlgreen91 committed May 26, 2012
    Configuration menu
    Copy the full SHA
    9219a81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    354d020 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d5462b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    37d9a8e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1334f13 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    404f959 View commit details
    Browse the repository at this point in the history
  7. Added replacements for greek letters, subscripts, superscripts, and c…

    …urly fs to parser. Changed error message for image to just text stating that an image is missing.
    rlgreen91 committed May 26, 2012
    Configuration menu
    Copy the full SHA
    c8d12a4 View commit details
    Browse the repository at this point in the history
  8. Created an import file that takes as inputs the filename and the type…

    … of QTI content. It opens the files and creates a new project titled Import.
    rlgreen91 committed May 26, 2012
    Configuration menu
    Copy the full SHA
    e41465e View commit details
    Browse the repository at this point in the history
  9. Now, the import class will also decided which parser and transformer …

    …to use based on the content type specified by the user.
    rlgreen91 committed May 26, 2012
    Configuration menu
    Copy the full SHA
    c1987ff View commit details
    Browse the repository at this point in the history
  10. Import class can now grab just the relevant content, and can pick out…

    … the question ids for each question (or will be able to).
    rlgreen91 committed May 26, 2012
    Configuration menu
    Copy the full SHA
    3b917eb View commit details
    Browse the repository at this point in the history

Commits on May 27, 2012

  1. Ok, so this is the import class. It determines what parser and transf…

    …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.
    rlgreen91 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    703575f View commit details
    Browse the repository at this point in the history
  2. Ok, so now the import class can also go through the list of answer ch…

    …oices and select only those for the question being imported.
    rlgreen91 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    0c0d9c3 View commit details
    Browse the repository at this point in the history
  3. Now the import class can go through the list of relevant answer choic…

    …es, parse and transform them, and add them to the question.
    rlgreen91 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    f10961a View commit details
    Browse the repository at this point in the history
  4. Redid the function for finding the points for each answer choice to s…

    …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.
    rlgreen91 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    d58f9b6 View commit details
    Browse the repository at this point in the history
  5. Finished making the whole import class capable of handling any number…

    … of questions with any number of answer choices. Also wrote a unit test, that I will run shortly.
    rlgreen91 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    42db907 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9620304 View commit details
    Browse the repository at this point in the history
  7. The import class is done. Everything works and the structure has been…

    … set up so that it can easily be used by a controller.
    rlgreen91 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    78796c6 View commit details
    Browse the repository at this point in the history
  8. So, I've created a view that contains a form to enter the information…

    … 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 committed May 27, 2012
    Configuration menu
    Copy the full SHA
    961cb95 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2012

  1. Configuration menu
    Copy the full SHA
    a2ad4f6 View commit details
    Browse the repository at this point in the history
  2. All of the files associated with creating the form to upload files, c…

    …hoose content, and import the questions.
    rlgreen91 committed Jun 13, 2012
    Configuration menu
    Copy the full SHA
    26e9bfe View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2012

  1. Configuration menu
    Copy the full SHA
    fbfbb34 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c84ad43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6928c3f View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2012

  1. Updating rails

    rlgreen91 committed Jun 21, 2012
    Configuration menu
    Copy the full SHA
    ccd14e6 View commit details
    Browse the repository at this point in the history
  2. Upgraded to Rails 3.2

    rlgreen91 committed Jun 21, 2012
    Configuration menu
    Copy the full SHA
    9c07b91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7abbf7b View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2012

  1. Switching branches

    rlgreen91 committed Jun 23, 2012
    Configuration menu
    Copy the full SHA
    e1ca277 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2012

  1. Optimized the import functions, so this feature should run faster now…

    …. Will clean up and code and look for more HTML tags and formatting errors.
    rlgreen91 committed Jun 24, 2012
    Configuration menu
    Copy the full SHA
    47c7aaf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b0bacf0 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2012

  1. Made the import function a little bit faster and added more things to…

    … the parser, including the ability to handle links embedded in questions.
    rlgreen91 committed Jun 26, 2012
    Configuration menu
    Copy the full SHA
    69a5ecc View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2012

  1. Configuration menu
    Copy the full SHA
    3c61d4a View commit details
    Browse the repository at this point in the history
  2. Added functionality to handle any problems with import. Also added a …

    …link to import page on the write new questions view
    rlgreen91 committed Jun 27, 2012
    Configuration menu
    Copy the full SHA
    5b20127 View commit details
    Browse the repository at this point in the history
  3. cleaning up code

    rlgreen91 committed Jun 27, 2012
    Configuration menu
    Copy the full SHA
    8ecb0fb View commit details
    Browse the repository at this point in the history
  4. cleaning up code

    rlgreen91 committed Jun 27, 2012
    Configuration menu
    Copy the full SHA
    40f57f9 View commit details
    Browse the repository at this point in the history
  5. uninstalled gems

    rlgreen91 committed Jun 27, 2012
    Configuration menu
    Copy the full SHA
    6bf734e View commit details
    Browse the repository at this point in the history
  6. merge conflicts

    rlgreen91 committed Jun 27, 2012
    Configuration menu
    Copy the full SHA
    973acf1 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2012

  1. Improved user search by name

    Dantemss authored and rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    55ed402 View commit details
    Browse the repository at this point in the history
  2. finished js answer alert feature

    Daniel Reiter authored and rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    782bd6f View commit details
    Browse the repository at this point in the history
  3. merge conflicts

    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    6d49bff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bcfbbda View commit details
    Browse the repository at this point in the history
  5. Import function now looks for images attached to questions that are n…

    …ot inline with the text
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    5b95532 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3c0b18f View commit details
    Browse the repository at this point in the history
  7. Able to unzip zip files uploaded to import function. Still have troub…

    …le returning the actual xml file as opposed to the filename.
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    0039935 View commit details
    Browse the repository at this point in the history
  8. Cleaning up files

    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    16b3982 View commit details
    Browse the repository at this point in the history
  9. Import function now looks for images attached to questions that are n…

    …ot inline with the text
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    2cdfeaf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b295e14 View commit details
    Browse the repository at this point in the history
  11. Able to unzip zip files uploaded to import function. Still have troub…

    …le returning the actual xml file as opposed to the filename.
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    75dedfd View commit details
    Browse the repository at this point in the history
  12. finished js answer alert feature

    Daniel Reiter authored and rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    68ea8cd View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f1eccfd View commit details
    Browse the repository at this point in the history
  14. Merge remote-tracking branch 'upstream/master' into temp3

    Conflicts:
    	app/models/question.rb
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    7d22d9c View commit details
    Browse the repository at this point in the history
  15. Import function now unzips a file,and successfully finds the xml docu…

    …ment and the directory containing the images.
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    899ec3a View commit details
    Browse the repository at this point in the history
  16. Now import function takes a directory containing subfolders of images…

    …, and returns a hash with key-value pairs of referenced image paths and files.
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    4332e8e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c82499b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    03adfa2 View commit details
    Browse the repository at this point in the history
  19. Able to add attached images as assets. Now working on saving them as …

    …attachable assets to questions.
    rlgreen91 committed Jul 18, 2012
    Configuration menu
    Copy the full SHA
    79baf64 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2012

  1. Configuration menu
    Copy the full SHA
    887d9e8 View commit details
    Browse the repository at this point in the history
  2. Cleaning up code

    rlgreen91 committed Jul 19, 2012
    Configuration menu
    Copy the full SHA
    a343cfd View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2012

  1. Updating unit tests

    rlgreen91 committed Jul 21, 2012
    Configuration menu
    Copy the full SHA
    932af42 View commit details
    Browse the repository at this point in the history
  2. Updating tests

    rlgreen91 committed Jul 21, 2012
    Configuration menu
    Copy the full SHA
    5426a69 View commit details
    Browse the repository at this point in the history