Project

General

Profile

Actions

Bug #4375

closed

item metadata not serializing correctly (Metadata items not faithfully retrieved on re-opening an assessment)

Added by ben leinfelder over 14 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
parser
Target version:
Start date:
09/10/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4375

Description

first saw this on download - but looked into the QTI XML and it looks like the vocabulary is being incorrectly populated with the actual term.
Here is a snippet that illustrates the serialized metadata:
----------
<itemmetadata>
<qtimetadata>
<vocabulary uri=" " vocab_type="text/xml">polymers</vocabulary>
<qtimetadatafield>
<qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>polymers</qti:fieldentry>
</qtimetadatafield>
</qtimetadata>
</itemmetadata>
----------
the <vocabulary> tag should have the actual vocabulary from which the term was selected.

Actions #1

Updated by ben leinfelder over 14 years ago

it appears that this is working correctly - perhaps the vocabulary was entered manually.
I did a test on my side and found that the NBII vocab was correctly used as the <vocabulary> for the polymers tag.

Actions #2

Updated by Sandeep Namilikonda over 14 years ago

When multiple metadata items are added to an assessment item using the parser
and saving the changes, a suitable XML file with all the metadata items is generated. But, when the same assessment is re-opened via Morpho interface
as a part of a data package, two kinds of problems were noticed.

1) Manually entered metadata is not retrieved by the parser.

2) Only one of the two keywords from each from Bloom and NBII,
associated with an item were retrieved.
When I view this assessment via web interface, all four keywords
are successfully retrieved!

Here is a sample XML for case 1 above (named 902.1):

<qti:questestinterop xmlns:qti="http://www.imsglobal.org/xsd/ims_qtiasiv1p2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/ims_qtiasiv1p2 ims_qtiasiv1p2.xsd"><assessment ident=" "><section ident=" "><item ident="namilikonda.902.1" title="QuestionTypeMultiple choice"> <itemmetadata> <qtimetadata> <vocabulary uri=" " vocab_type="text/xml">nbii</vocabulary>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>Molecules</qti:fieldentry>
</qtimetadatafield>
</qtimetadata>
<qtimetadata> <vocabulary uri=" " vocab_type="text/xml"></vocabulary>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>test1</qti:fieldentry>
</qtimetadatafield>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>test2</qti:fieldentry>
</qtimetadatafield>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>test3</qti:fieldentry>
</qtimetadatafield>
</qtimetadata>
</itemmetadata>

Here is a sample XML file saved as 902.2 on my computer as I modified the
content and saved it as a revision over 902.1:

<qti:questestinterop xmlns:qti="http://www.imsglobal.org/xsd/ims_qtiasiv1p2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/ims_qtiasiv1p2 ims_qtiasiv1p2.xsd"><assessment ident=" "><section ident=" "><item ident="namilikonda.902.2" title="QuestionTypeMultiple choice"> <itemmetadata> <qtimetadata> <vocabulary uri=" " vocab_type="text/xml">nbii</vocabulary>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>Molecules</qti:fieldentry>
</qtimetadatafield>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>Phytoplankton</qti:fieldentry>
</qtimetadatafield>
</qtimetadata>
<qtimetadata> <vocabulary uri=" " vocab_type="text/xml">bloom</vocabulary>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>Knowledge</qti:fieldentry>
</qtimetadatafield>
<qtimetadatafield> <qti:fieldlabel>Concept</qti:fieldlabel>
<qti:fieldentry>Organizing</qti:fieldentry>
</qtimetadatafield>
</qtimetadata>
</itemmetadata>

Actions #3

Updated by Ryan McFall over 14 years ago

This should be fixed with revision 1387; the outer loop index of a nested loop was being used to retrieve the concept name and value, so only the first item from each vocabularly was being added.

Actions #4

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 4375

Actions

Also available in: Atom PDF