Index: openacs-4/packages/assessment/tcl/as-qti-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-qti-procs.tcl,v
diff -u -r1.35.2.8 -r1.35.2.9
--- openacs-4/packages/assessment/tcl/as-qti-procs.tcl 6 May 2006 15:52:56 -0000 1.35.2.8
+++ openacs-4/packages/assessment/tcl/as-qti-procs.tcl 10 May 2006 14:58:55 -0000 1.35.2.9
@@ -250,7 +250,7 @@
# Section
set sectionNodes [$assessment selectNodes {section}]
- set as_assessment_section_map__sort_order 0
+ set as_asmt_sect_map__sort_order 0
foreach section $sectionNodes {
set as_sections__title [$section getAttribute {title} {Section}]
set as_sections__ident [$section getAttribute {ident} {Section}]
@@ -377,9 +377,15 @@
-display_type_id $display_type_id]
# Relation between as_sections and as_assessments
+ns_log debug "
+DB --------------------------------------------------------------------------------
+DB DAVE debugging procedure as::qti::parse_qti_xml
+DB --------------------------------------------------------------------------------
+
+DB --------------------------------------------------------------------------------"
db_dml as_assessment_section_map_insert {}
- incr as_assessment_section_map__sort_order
- set as_item_section_map__sort_order 0
+ incr as_asmt_sect_map__sort_order
+ set as_item_sect_map__sort_order 0
# Process the items
set as_items [as::qti::parse_item $section [file dirname $xmlfile]]
# Relation between as_items and as_sections
@@ -390,7 +396,7 @@
set as_item__points $as_item(points)
set as_item__required_p $as_item(required_p)
db_dml as_item_section_map_insert {}
- incr as_item_section_map__sort_order
+ incr as_item_sect_map__sort_order
}
#get points from a section
Index: openacs-4/packages/assessment/tcl/as-qti-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-qti-procs.xql,v
diff -u -r1.5.2.1 -r1.5.2.2
--- openacs-4/packages/assessment/tcl/as-qti-procs.xql 6 May 2006 15:52:56 -0000 1.5.2.1
+++ openacs-4/packages/assessment/tcl/as-qti-procs.xql 10 May 2006 14:58:55 -0000 1.5.2.2
@@ -4,14 +4,14 @@
INSERT INTO as_assessment_section_map (assessment_id, section_id, max_time_to_complete, sort_order, points)
- VALUES (:as_assessments__assessment_id, :section_id, :as_sections__duration, :as_assessment_section_map__sort_order, :as_sections__points)
+ VALUES (:as_assessments__assessment_id, :section_id, :as_sections__duration, :as_asmt_sect_map__sort_order, :as_sections__points)
INSERT INTO as_item_section_map (as_item_id, section_id, sort_order, points, max_time_to_complete, required_p)
- VALUES (:as_item_id, :section_id, :as_item_section_map__sort_order, :as_item__points, :as_item__duration, :as_item__required_p)
+ VALUES (:as_item_id, :section_id, :as_item_sect_map__sort_order, :as_item__points, :as_item__duration, :as_item__required_p)