http://atutor.ca/atutor/mantis/view.php?id=4580
[acontent.git] / docs / themes / default / tests / test_questions / matching_qti_1p2.tmpl.php
index 7aad2c5..a8754d3 100644 (file)
@@ -1,21 +1,32 @@
 <!-- matching question with partial marks -->
                <item title="Mathcing question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
                        <itemmetadata>
-                               <qmd_itemtype>Matching</qmd_itemtype>
                                <qtimetadata>
                                        <qtimetadatafield>
                                                <fieldlabel>qmd_itemtype</fieldlabel>
                                                <fieldentry>Logical Groups</fieldentry>
                                        </qtimetadatafield>
+                                       <qtimetadatafield>
+                                               <fieldlabel>qmd_questiontype</fieldlabel>
+                                               <fieldentry>Drag-and-drop</fieldentry>
+                                       </qtimetadatafield>
+                    <qtimetadatafield>
+                        <fieldlabel>cc_profile</fieldlabel>
+                        <fieldentry>cc.pattern_match.v0p1</fieldentry>
+                    </qtimetadatafield>
+                    <qtimetadatafield>
+                        <fieldlabel>cc_weighting</fieldlabel>
+                        <fieldentry><?php echo $this->weight; ?></fieldentry>
+                    </qtimetadatafield>
                                </qtimetadata>
                        </itemmetadata>
-                       <presentation>                          
+                       <presentation>
                                <flow>
                                        <material>
                                                <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
                                        </material>
                                        <?php for ($i=0; $i < $this->num_choices; $i++): ?>             
-                                       <response_grp ident="RESPONSE-<?php echo md5($this->row['question_id'].$i); ?>" rcardinality="Multiple">
+                                       <response_lid ident="RESPONSE-<?php echo md5($this->row['question_id'].$i); ?>" rcardinality="Multiple">
                                                <material>
                                                        <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
                                                </material>
                                                        </response_label>
                                                <?php endfor; ?>
                                                </render_choice>
-                                       </response_grp>
+                                       </response_lid>
                                        <?php endfor; ?>
                                </flow>
                        </presentation>
 
-
                        <resprocessing>
                                <outcomes>
-                                       <decvar/>
+                                       <decvar varname="SCORE" />
                                </outcomes>
                        <?php for ($i=0; $i < $this->num_choices; $i++): ?>
                                <?php if ($this->row['answer_'.$i] > -1): ?>
@@ -46,7 +56,7 @@
                                        <conditionvar>                                          
                                                <varequal respident="RESPONSE-<?php echo md5($this->row['question_id'].$i); ?>">Option<?php echo $this->row['answer_'.$i]; ?></varequal>
                                        </conditionvar>
-                                       <setvar varname="Respondus_Correct" action="Add"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
+                                       <setvar varname="Respondus_Correct"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
                                </respcondition>
                                <?php endif; ?>
                        <?php endfor; ?>