Best practice for passing variables via the imsmanifest.xml file?

249 views
Skip to first unread message

Carlton Dickson

unread,
Oct 15, 2014, 4:30:32 AM10/15/14
to elearning-technolo...@googlegroups.com
Hi,

Just to give some context for the problem that I am having...

I'm currently generating SCORM packages via code and the imsmanifest.xml contains IDs which vary from package to package.
These IDs are used by the JavaScript in the SCO to make an AJAX request.

Now I have tried the following XML in 3 LMS systems, Moodle, SABA and SCORM cloud and ALL of them pass the parameters mentioned below as a query string to the index.html resource

** https://cloud.scorm.com/content/courses/SCORM_1_2_PACKAGE_live_45066_hardcoded<key>/0/scormcontent/index.html?is_an_id=450&some_id=142

Unfortunately we have another 3rd party LMS which is not passing these through to the SCO via query strings but I can't actually find anything in the spec to say that it is the ACTUAL way they should be doing this...does anyone have a reference to the best practice here?

<?xml version="1.0" ?>
<manifest identifier="manifest-53df5bc7dfa0a" version="1"
          xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_rootv1p2"
          xsi:schemaLocation="http://www.imsproject.org/xsd/imscp_rootv1p1p2 imscp_rootv1p1p2.xsd
                           http://www.imsglobal.org/xsd/imsmd_rootv1p2p1 imsmd_rootv1p2p1.xsd
                           http://www.adlnet.org/xsd/adlcp_rootv1p2 adlcp_rootv1p2.xsd">
    <metadata>
        <schema>ADL SCORM</schema>
        <schemaversion>1.2</schemaversion>
    </metadata>

    ...

    <organizations default="Name">
        <organization identifier="Name">
            <title>Title</title>
            <item identifier="item-53df5bc7dfa59"
                  identifierref="resource-53df5bc7dfa99"
                  isvisible="true"
                  parameters="?node=466&amp;license=14">
                <title>Title</title>
                <adlcp:masteryscore>80</adlcp:masteryscore>
            </item>
        </organization>
    </organizations>

    ...

</manifest>


John Campbell

unread,
Oct 15, 2014, 10:40:08 AM10/15/14
to elearning-technolo...@googlegroups.com
There are a couple of ways.  Parameters is certainly one way and SHOULD work.  You could also use the cmi.launch_data, but you'll need to modify your JavaScript in the content to read it and use it as if it's a query param.  Not sure you want to go that route.

take care,

jpc


--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlton Dickson

unread,
Oct 16, 2014, 3:05:37 AM10/16/14
to elearning-technolo...@googlegroups.com
Thanks John,

I could try the launch data as a back up if params are not there.
I think I've also seen the params added to the href although not tested it

Reply all
Reply to author
Forward
0 new messages