version 1.51, 2003/02/25 16:05:24
|
version 1.52, 2003/02/25 20:36:29
|
Line 1
|
Line 1
|
# The LearningOnline Network with CAPA |
# The LearningOnline Network with CAPA |
# (Publication Handler |
|
# |
# |
# $Id$ |
# $Id$ |
# |
# |
Line 313 sub get_sequence_assessment_data {
|
Line 312 sub get_sequence_assessment_data {
|
## We are going to loop until we run out of sequences/pages to explore for |
## We are going to loop until we run out of sequences/pages to explore for |
## resources. This means we have to start out with something to look |
## resources. This means we have to start out with something to look |
## at. |
## at. |
my $curRes = $iterator->next(); # BEGIN_MAP |
my $title = $ENV{'course.'.$ENV{'request.course.id'}.'.description'}; |
$curRes = $iterator->next(); # The sequence itself |
my $symb = 'top'; |
# |
my $src = 'not applicable'; |
my $title = $curRes->title(); |
|
my $symb = $curRes->symb(); |
|
my $src = $curRes->src(); |
|
# |
# |
my @Sequences; |
my @Sequences; |
my @Assessments; |
my @Assessments; |
my @Nested_Sequences = (); # Stack of sequences, keeps track of depth |
my @Nested_Sequences = (); # Stack of sequences, keeps track of depth |
my $top = { title => $title, |
my $top = { title => $title, |
|
src => $src, |
symb => $symb, |
symb => $symb, |
type => 'container', |
type => 'container', |
num_assess => 0, |
num_assess => 0, |
Line 333 sub get_sequence_assessment_data {
|
Line 330 sub get_sequence_assessment_data {
|
# |
# |
# We need to keep track of which sequences contain homework problems |
# We need to keep track of which sequences contain homework problems |
# |
# |
my $previous = $top; |
my $previous; |
|
my $curRes = $iterator->next(); # BEGIN_MAP |
|
$curRes = $iterator->next(); # The first item in the top level map. |
while (scalar(@Nested_Sequences)) { |
while (scalar(@Nested_Sequences)) { |
$previous = $curRes; |
$previous = $curRes; |
$curRes = $iterator->next(); |
$curRes = $iterator->next(); |