version 1.120, 2021/02/18 14:48:02
|
version 1.121, 2021/07/19 15:48:26
|
Line 484 sub getData {
|
Line 484 sub getData {
|
|
|
my $res = $navmap->firstResource(); # temp resource to access constants |
my $res = $navmap->firstResource(); # temp resource to access constants |
|
|
my $iterator = $navmap->getIterator(undef, undef, undef, 1); |
my $deeplinkcond = 1; |
|
my $iterator = $navmap->getIterator(undef, undef, undef, 1, undef, undef, $deeplinkcond); |
my $depth = 1; |
my $depth = 1; |
$iterator->next(); # ignore first BEGIN_MAP |
$iterator->next(); # ignore first BEGIN_MAP |
my $curRes = $iterator->next(); |
my $curRes = $iterator->next(); |
Line 510 sub getData {
|
Line 511 sub getData {
|
while ( $depth > 0 ) { |
while ( $depth > 0 ) { |
if ($curRes == $iterator->BEGIN_MAP()) {$depth++;} |
if ($curRes == $iterator->BEGIN_MAP()) {$depth++;} |
if ($curRes == $iterator->END_MAP()) { $depth--; } |
if ($curRes == $iterator->END_MAP()) { $depth--; } |
|
my ($deeplink,$nodeeplinkcheck,$symb); |
if (ref($curRes) && $curRes->is_gradable() && !$curRes->randomout && |
$nodeeplinkcheck = 1; |
($curRes->deeplink ne 'absent')) |
if (ref($curRes)) { |
|
$symb = $curRes->symb(); |
|
$deeplink = $curRes->deeplink('quickgrades'); |
|
if ($deeplink eq 'absent') { |
|
$nodeeplinkcheck = 0; |
|
} |
|
} |
|
if (ref($curRes) && $curRes->is_gradable() && !$curRes->randomout && |
|
($nodeeplinkcheck)) |
{ |
{ |
# Get number of correct, incorrect parts |
# Get number of correct, incorrect parts |
my $parts = $curRes->parts(); |
my $parts = $curRes->parts(); |
Line 634 sub outputTable {
|
Line 643 sub outputTable {
|
# Output of folder scores |
# Output of folder scores |
# |
# |
|
|
my $iterator = $navmap->getIterator(undef, undef, undef, 1); |
my $deeplinkcond = 1; |
|
my $iterator = $navmap->getIterator(undef, undef, undef, 1, undef, undef, $deeplinkcond); |
my $depth = 1; |
my $depth = 1; |
$iterator->next(); # ignore first BEGIN_MAP |
$iterator->next(); # ignore first BEGIN_MAP |
my $curRes = $iterator->next(); |
my $curRes = $iterator->next(); |
Line 765 sub dumpdata {
|
Line 775 sub dumpdata {
|
|
|
# Run through the map and get all data |
# Run through the map and get all data |
|
|
my $iterator = $navmap->getIterator(undef, undef, undef, 1); |
my $deeplinkcond = 1; |
|
my $iterator = $navmap->getIterator(undef, undef, undef, 1, undef, undef, $deeplinkcond); |
my $depth = 1; |
my $depth = 1; |
$iterator->next(); # ignore first BEGIN_MAP |
$iterator->next(); # ignore first BEGIN_MAP |
my $curRes = $iterator->next(); |
my $curRes = $iterator->next(); |