Index: openacs-4/packages/assessment/www/assessment.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/assessment.xql,v diff -u -r1.5 -r1.6 --- openacs-4/packages/assessment/www/assessment.xql 22 Dec 2004 20:52:17 -0000 1.5 +++ openacs-4/packages/assessment/www/assessment.xql 7 Jan 2005 16:10:44 -0000 1.6 @@ -5,7 +5,7 @@ select s.section_id, cr.title, cr.description, s.instructions, - m.max_time_to_complete, s.display_type_id + m.max_time_to_complete, s.display_type_id, s.num_items from cr_revisions cr, as_sections s, as_assessment_section_map m where cr.revision_id = s.section_id and s.section_id = :section_id @@ -26,4 +26,19 @@ + + + + select o.object_type as item_type, r.target_rev_id as item_type_id, + m.points + from acs_objects o, as_item_rels r, as_item_section_map m + where r.item_rev_id = :response_item_id + and r.rel_type = 'as_item_type_rel' + and o.object_id = r.target_rev_id + and m.as_item_id = r.item_rev_id + and m.section_id = :section_id + + + +