59 lines
2.8 KiB
XML
59 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1.xsd"
|
|
xmlns:pci="http://www.imsglobal.org/xsd/portableCustomInteraction"
|
|
identifier="pci002" title="PCI 002" adaptive="false" timeDependent="false">
|
|
|
|
<responseDeclaration identifier="likert1" cardinality="single" baseType="integer"/>
|
|
<responseDeclaration identifier="likert2" cardinality="single" baseType="integer"/>
|
|
<responseDeclaration identifier="likert3" cardinality="single" baseType="integer"/>
|
|
|
|
<!--item specific stylesheets will be added by the item in the method postRender()-->
|
|
<stylesheet href="likertScaleInteraction/runtime/css/likertScaleInteraction.css" title="" type="text/css" media="all"></stylesheet>
|
|
<stylesheet href="css/likert1.css" type="text/css"/>
|
|
|
|
<itemBody>
|
|
|
|
<p>This is a sample PCI.</p>
|
|
|
|
<customInteraction responseIdentifier="likert1">
|
|
<pci:portableCustomInteraction customInteractionTypeIdentifier="likertScaleInteraction" hook="likertScaleInteraction/runtime/likertScaleInteraction.amd.js">
|
|
|
|
<pci:responseSchema href="http://imsglobal.org/schema/json/v1.0/response.json"/>
|
|
|
|
<pci:resources location="http://imsglobal.org/pci/1.0.15/sharedLibraries.xml">
|
|
<pci:libraries>
|
|
<pci:lib id="IMSGlobal/jquery_2_1_1"></pci:lib>
|
|
<pci:lib id="likertScaleInteraction/runtime/js/renderer"></pci:lib>
|
|
</pci:libraries>
|
|
</pci:resources>
|
|
|
|
<pci:properties>
|
|
<pci:entry key="level">5</pci:entry>
|
|
<pci:entry key="label-min">Not at all</pci:entry>
|
|
<pci:entry key="label-max">Very much</pci:entry>
|
|
</pci:properties>
|
|
|
|
<pci:markup>
|
|
<html5:div class="likertScaleInteraction">
|
|
<html5:div class="prompt">
|
|
<html5:p>
|
|
Do you like movies ? <html5:img src="http://openclipart.org/image/300px/svg_to_png/35395/applications-multimedia.png"/>
|
|
</html5:p>
|
|
</html5:div>
|
|
<html5:ul class="likert"></html5:ul>
|
|
</html5:div>
|
|
</pci:markup>
|
|
|
|
</pci:portableCustomInteraction>
|
|
</customInteraction>
|
|
|
|
1.parse xml
|
|
2.register libs and assets by version (default 0.1.0)
|
|
3.remove resources, "hook"
|
|
4.load the model
|
|
5.load xml
|
|
</itemBody>
|
|
|
|
</assessmentItem> |