--- loncom/interface/londocs.pm 2006/11/13 15:02:58 1.250
+++ loncom/interface/londocs.pm 2006/11/15 14:33:46 1.253
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.250 2006/11/13 15:02:58 www Exp $
+# $Id: londocs.pm,v 1.253 2006/11/15 14:33:46 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -954,6 +954,7 @@ sub breadcrumbs {
}
my $folderpath;
my $cpinfo='';
+ my $plain='';
if ($env{'form.markedcopy_url'}) {
$cpinfo='&markedcopy_url='.
&escape($env{'form.markedcopy_url'}).
@@ -986,9 +987,11 @@ sub breadcrumbs {
'text'=>''.
$name.''
});
+ $plain.=$name.' > ';
}
+ $plain=~s/\>\;\s*$//;
return (&Apache::lonhtmlcommon::breadcrumbs(undef,undef,0,'nohelp',
- 'LC_docs_path'),$randompick,$ishidden,$isencrypted);
+ 'LC_docs_path'),$randompick,$ishidden,$isencrypted,$plain);
}
sub log_docs {
@@ -1021,10 +1024,9 @@ sub log_docs {
}
sub log_differences {
- my ($coursenum,$coursedom,$folder)=@_;
- my %storehash=('folder' => '/uploaded/'.$coursedom.'/'.$coursenum.'/userfiles/'.$folder);
+ my ($plain)=@_;
+ my %storehash=('folder' => $plain);
if ($parmidx) {
- $storehash{'parameter_idx'}=$parmidx;
$storehash{'parameter_res'}=$oldresources[$parmidx];
foreach my $parm (keys %parmaction) {
$storehash{'parameter_action_'.$parm}=$parmaction{$parm};
@@ -1042,13 +1044,12 @@ sub log_docs {
$changedflag=1;
}
if ($LONCAPA::map::order[$idx] ne $oldorder[$idx]) {
- $storehash{'before_order_'.$idx}=$oldorder[$idx];
- $storehash{'after_order_'.$idx}=$LONCAPA::map::order[$idx];
- $storehash{'before_order_res_'.$idx}=$oldresources[$idx];
- $storehash{'after_order_res_'.$idx}=$LONCAPA::map::resources[$idx];
+ $storehash{'before_order_res_'.$idx}=$oldresources[$oldorder[$idx]];
+ $storehash{'after_order_res_'.$idx}=$LONCAPA::map::resources[$LONCAPA::map::order[$idx]];
$changedflag=1;
}
}
+ $storehash{'maxidx'}=$maxidx;
if ($changedflag) { &log_docs(\%storehash); }
}
}
@@ -1077,7 +1078,12 @@ sub docs_change_log {
&Apache::loncommon::restore_course_settings('docs_log',
\%saveable_parameters);
if (!$env{'form.show'}) { $env{'form.show'}=10; }
-
+ my %lt=&Apache::lonlocal::texthash('hiddenresource' => 'Resources hidden',
+ 'encrypturl' => 'URL hidden',
+ 'randompick' => 'Randomly pick',
+ 'set' => 'set to',
+ 'del' => 'deleted');
+
my $countselect =
&Apache::lonmeta::selectbox('show',$env{'form.show'},undef,
(&mt('all'),10,20,50,100,1000,10000));
@@ -1085,8 +1091,8 @@ sub docs_change_log {
$r->print('
'.$errtext.'
'); @@ -1368,8 +1416,7 @@ sub editor { $r->print(''.&mt('No map selected.').'
'); } } - &log_differences($coursenum,$coursedom, - $folder.'.'.$container); + &log_differences($plain); } # ---------------------------------------------------------------- End commands # ---------------------------------------------------------------- Print screen