adding some strings
[moodle-linuxchix.git] / question / format / qti2 / templates / choiceMultiple.tpl
blob1746330774ca32629ea2ab3199769b4e60f0ef50
1 {if $courselevelexport}<?xml version="1.0" encoding="UTF-8"?>{/if}
2 <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">
3         <responseDeclaration identifier="{$questionid}" cardinality="{$responsedeclarationcardinality}" baseType="identifier">
4                 <correctResponse>
5                 {section name=answer loop=$correctresponses}
6                         <value>{$correctresponses[answer].id}</value>
7                 {/section}
8                 </correctResponse>
9                 <mapping lowerBound="0" upperBound="1" defaultValue="-1">
10                 {section name=answer loop=$answers}
11                     {if $answers[answer].fraction != 0}
12                         <mapEntry mapKey="{$answers[answer].id}" mappedValue="{$answers[answer].fraction}" />
13                         {/if}
14                 {/section}
15                 </mapping>
16         </responseDeclaration>
17         <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float" />
18         <itemBody>
19            <div class="assesmentItemBody">
20                 <p>{$questionText}</p>
21        </div>
22                 <div class="interactive.choiceMultiple">
23                         <choiceInteraction responseIdentifier="{$questionid}" shuffle="false" maxChoices="{$maxChoices}">
24                 {section name=answer loop=$answers}
25                                 <simpleChoice identifier="{$answers[answer].id}" fixed="false">{$answers[answer].answer}</simpleChoice>
26                 {/section}
27                         </choiceInteraction>
28                 </div>
29         {if $question_has_image == 1}
30                 <div class="media">
31             {if $hassize == 1}
32                         <object type="{$question->mediamimetype}" data="{$question->mediaurl}" width="{$question->mediax}" height="{$question->mediay}" />
33                 {else}
34                         <object type="{$question->mediamimetype}" data="{$question->mediaurl}" />     
35                 {/if}
36                 </div>
37         {/if}
38         </itemBody>
39         <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">
40                 <responseCondition>
41                         <responseIf>
42                                 <isNull>
43                                         <variable identifier="{$questionid}"/>
44                                 </isNull>
45                                 <setOutcomeValue identifier="SCORE">
46                                         <baseValue baseType="float">0</baseValue>
47                                 </setOutcomeValue>
48                         </responseIf>
49                         <responseElse>
50                                 <setOutcomeValue identifier="SCORE">
51                                         <mapResponse identifier="{$questionid}"/>
52                                 </setOutcomeValue>
53                         </responseElse>
54                 </responseCondition>
55         <setOutcomeValue identifier="FEEDBACK">
56             <variable identifier="{$questionid}"/>
57         </setOutcomeValue>              
58         </responseProcessing>
59         {section name=answer loop=$answers}
60         {if $answers[answer].feedback != ''}
61         <modalFeedback outcomeIdentifier="FEEDBACK" identifier="{$answers[answer].id}" showHide="show">{$answers[answer].feedback}</modalFeedback>
62         {/if}
63         {/section}
64 </assessmentItem>