Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

File Name

Proposed Addition/Modification

qz_win_ques_list.cfm

Added an Export Question Pool link to this page. Limited to code where mode=question, since this same list box is used for questions and quizzes under various pages. Code modifications include adding a link with JavaScript function exportPool() to open a new window as "qz_quiz_exportxml.cfm?quizID=0&export=questionPool" where no data is passed through the url.

qz_col_title.cfm

Added the Export Collection link. Limited to code for editing an existing collection. Code modifications include adding a link with JavaScript function export_collection() to open a new window as "qz_quiz_exportxml.cfm?quizID=0&export=collection&collectionid=#collectionid#" so that the collection id is passed via the url.

qz_quiz_properties.cfm

Modified Export Quiz url to add export="quiz"

qz_quiz_exportxml.cfm

Modified export instructions on this display page to reflect whether the export is a quiz, question pool or collection. Added total number of questions, Download Pool button, and output for media files.

qz_quiz_exportxml.cfc

Separated out section functions from question functions. getSectionArray populates the section array from quiz data while setSectionArray populates the section array with sectionid=0 and name="Default". The section array is then fed into setSectionData for attaching items and their parameters for delivery to the xml file generation page. Added several functions specific to qpools and collections plus a media function. Modified certain functions where query output passed into a "where variable in ()" clause might exceed 1000 records due to Oracle limits.

qz_quiz_exportxmldoc.cfm

Modified file by adding logic based on quizid and export url values to determine which function calls (quiz, question pool, or collection) will be made. Modified the xml file generation to allow question pool or collection data to be delivered in the same downloadable xml format.

qz_quiz_exportfiles.cfm

The export media code is being developed at the same time and is an active link on qz_quiz_exportxml.cfm, so it needs to be released concurrently, even though the test plan will be separate.

Code Review

Brian Donnelly, or another qualified member of the MyUCDavis team, will perform code review on these file changes.

...