mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fb2ce31bfc
Moving qti2 to qti_two as numbers are not allowed in module names
63 lines
2.5 KiB
Smarty
63 lines
2.5 KiB
Smarty
<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">
|
|
<responseDeclaration identifier="{$questionid}" cardinality="multiple" baseType="directedPair">
|
|
<correctResponse>
|
|
{section name=set loop=$matchsets}
|
|
<value>q{$matchsets[set].id} a{$matchsets[set].id}</value>
|
|
{/section}
|
|
</correctResponse>
|
|
|
|
<mapping defaultValue="0">
|
|
{section name=set loop=$matchsets}
|
|
<mapEntry mapKey="q{$matchsets[set].id} a{$matchsets[set].id}" mappedValue="1"/>
|
|
{/section}
|
|
</mapping>
|
|
</responseDeclaration>
|
|
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
|
|
|
|
<itemBody>
|
|
<p>{$questionText}</p>
|
|
<div class="interactive.match">
|
|
<matchInteraction responseIdentifier="{$questionid}" shuffle="false" maxAssociations="{$setcount}">
|
|
<simpleMatchSet>
|
|
{section name=set loop=$matchsets}
|
|
<simpleAssociableChoice identifier="q{$matchsets[set].id}" matchMax="1">{$matchsets[set].questiontext}</simpleAssociableChoice>
|
|
{/section}
|
|
</simpleMatchSet>
|
|
<simpleMatchSet>
|
|
{section name=set loop=$matchsets}
|
|
<simpleAssociableChoice identifier="a{$matchsets[set].id}" matchMax="{$setcount}">{$matchsets[set].answertext}</simpleAssociableChoice>
|
|
{/section}
|
|
</simpleMatchSet>
|
|
</matchInteraction>
|
|
</div>
|
|
{if $question_has_image == 1}
|
|
<div class="media">
|
|
{if $hassize == 1}
|
|
<object type="{$question->mediamimetype}" data="{$question->mediaurl}" width="{$question->mediax}" height="{$question->mediay}" />
|
|
{else}
|
|
<object type="{$question->mediamimetype}" data="{$question->mediaurl}" />
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</itemBody>
|
|
<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">
|
|
<responseCondition>
|
|
|
|
<responseIf>
|
|
<isNull>
|
|
<variable identifier="{$questionid}"/>
|
|
</isNull>
|
|
<setOutcomeValue identifier="SCORE">
|
|
<baseValue baseType="integer">0</baseValue>
|
|
</setOutcomeValue>
|
|
</responseIf>
|
|
|
|
<responseElse>
|
|
<setOutcomeValue identifier="SCORE">
|
|
<mapResponse identifier="{$questionid}"/>
|
|
</setOutcomeValue>
|
|
</responseElse>
|
|
</responseCondition>
|
|
</responseProcessing>
|
|
</assessmentItem>
|