--- loncom/interface/lonparmset.pm 2004/08/17 20:27:04 1.173
+++ loncom/interface/lonparmset.pm 2004/09/10 21:29:54 1.175
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.173 2004/08/17 20:27:04 albertel Exp $
+# $Id: lonparmset.pm,v 1.175 2004/09/10 21:29:54 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -581,6 +581,8 @@ sub extractResourceInformation {
foreach (keys %$bighash) {
if ($_=~/^src\_(\d+)\.(\d+)$/) {
+ # there are no resources in the 0 level
+ if ($1 eq '0') { next; }
my $mapid=$1;
my $resid=$2;
my $id=$mapid.'.'.$resid;
@@ -623,8 +625,12 @@ sub extractResourceInformation {
&Apache::lonnet::declutter($$bighash{'map_id_'.$mapid});
$$mapp{$mapid}=$$mapp{$id};
$$allmaps{$mapid}=$$mapp{$id};
- $$maptitles{$mapid}=
- $$bighash{'title_'.$$bighash{'ids_'.&Apache::lonnet::clutter($$mapp{$id})}};
+ if ($mapid eq '1') {
+ $$maptitles{$mapid}='Main Course Documents';
+ } else {
+ $$maptitles{$mapid}=
+ $$bighash{'title_'.$$bighash{'ids_'.&Apache::lonnet::clutter($$mapp{$id})}};
+ }
$$maptitles{$$mapp{$id}}=$$maptitles{$mapid};
$$symbp{$id}=$$mapp{$id}.
'___'.$resid.'___'.
@@ -1838,9 +1844,10 @@ ENDOVER
$middle=~s/\.$//;
my $realm=''.&mt('All Resources').'';
if ($middle=~/^(.+)\_\_\_\(all\)$/) {
- $realm=''.&mt('Folder/Map').': '.&Apache::lonnet::gettitle($1).'';
+ $realm=''.&mt('Folder/Map').': '.&Apache::lonnet::gettitle($1).'
('.$1.')';
} elsif ($middle) {
- $realm=''.&mt('Resource').': '.&Apache::lonnet::gettitle($middle).'';
+ my ($map,$id,$url)=&Apache::lonnet::decode_symb($middle);
+ $realm=''.&mt('Resource').': '.&Apache::lonnet::gettitle($middle).'
('.$url.' in '.$map.' id: '.$id.')';
}
if ($section ne $oldsection) {
$r->print(&tableend()."\n