Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / question / format / qti2 / templates / match.tpl
blobe1246320115234c0c6a02636a29c5b52aa41ccbc
1 <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_item_v2p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_item_v2p0 ./imsqti_item_v2p0.xsd" identifier="{$assessmentitemidentifier}" title="{$assessmentitemtitle}" adaptive="false" timeDependent="false">
2         <responseDeclaration identifier="{$questionid}" cardinality="multiple" baseType="directedPair">
3                 <correctResponse>
4                 {section name=set loop=$matchsets}
5                                 <value>q{$matchsets[set].id} a{$matchsets[set].id}</value>
6                 {/section}
7                 </correctResponse>
9                 <mapping defaultValue="0">
10                 {section name=set loop=$matchsets}
11                    <mapEntry mapKey="q{$matchsets[set].id} a{$matchsets[set].id}" mappedValue="1"/>
12                 {/section}
13                 </mapping>
14         </responseDeclaration>
15         <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
17         <itemBody>
18                 <p>{$questionText}</p>
19                 <div class="interactive.match">
20                         <matchInteraction responseIdentifier="{$questionid}" shuffle="false" maxAssociations="{$setcount}">
21                                 <simpleMatchSet>
22                         {section name=set loop=$matchsets}
23                                 <simpleAssociableChoice identifier="q{$matchsets[set].id}" matchMax="1">{$matchsets[set].questiontext}</simpleAssociableChoice>
24                         {/section}
25                                 </simpleMatchSet>
26                                 <simpleMatchSet>
27                         {section name=set loop=$matchsets}
28                                 <simpleAssociableChoice identifier="a{$matchsets[set].id}" matchMax="{$setcount}">{$matchsets[set].answertext}</simpleAssociableChoice>
29                         {/section}
30                                 </simpleMatchSet>
31                         </matchInteraction>
32                 </div>
33         {if $question_has_image == 1}
34                 <div class="media">
35             {if $hassize == 1}
36                         <object type="{$question->mediamimetype}" data="{$question->mediaurl}" width="{$question->mediax}" height="{$question->mediay}" />
37                 {else}
38                         <object type="{$question->mediamimetype}" data="{$question->mediaurl}" />     
39                 {/if}
40                 </div>
41         {/if}
42         </itemBody>
43         <responseProcessing xmlns="http://www.imsglobal.org/xsd/imsqti_item_v2p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_item_v2p0 ../imsqti_item_v2p0.xsd">
44                 <responseCondition>
46                         <responseIf>
47                                 <isNull>
48                                         <variable identifier="{$questionid}"/>
49                                 </isNull>
50                                 <setOutcomeValue identifier="SCORE">
51                                         <baseValue baseType="integer">0</baseValue>
52                                 </setOutcomeValue>
53                         </responseIf>
55                         <responseElse>
56                                 <setOutcomeValue identifier="SCORE">
57                                         <mapResponse identifier="{$questionid}"/>
58                                 </setOutcomeValue>
59                         </responseElse>
60                 </responseCondition>
61         </responseProcessing>
62 </assessmentItem>