--- loncom/interface/londocs.pm 2007/07/19 00:08:04 1.293.2.1 +++ loncom/interface/londocs.pm 2007/09/10 21:41:02 1.298 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.293.2.1 2007/07/19 00:08:04 albertel Exp $ +# $Id: londocs.pm,v 1.298 2007/09/10 21:41:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1467,7 +1467,7 @@ sub editor { $r->print('

'.&mt('Caution: this folder is set to randomly pick a subset of resources. Adding or removing resources from this folder will change the set of resources that the students see, resulting in spurious or missing credit for completed problems, not limited to ones you modify. Do not modify the contents of this folder if it is in active student use.').'

'); } if ($is_random_order) { - $r->print('

'.&mt('Caution: this folder is set to randomly order its contents. Adding or removing resources from this folder will change the order of resources shown. Do not modify the contents of this folder if it is in active student use.').'

'); + $r->print('

'.&mt('Caution: this folder is set to randomly order its contents. Adding or removing resources from this folder will change the order of resources shown.').'

'); } $r->print(''); foreach my $res (@LONCAPA::map::order) { @@ -1698,7 +1698,6 @@ sub entryline { my $line=''; my ($form_start,$form_end); # Edit commands - my $container; my ($container, $type, $esc_path, $path, $symb); if ($env{'form.folderpath'}) { $type = 'folder'; @@ -2436,7 +2435,7 @@ sub init_breadcrumbs { my ($form,$text)=@_; &Apache::lonhtmlcommon::clear_breadcrumbs(); &Apache::lonhtmlcommon::add_breadcrumb({href=>"/adm/coursedocs", - text=>&Apache::loncommon::course_type()." Documents", + text=>"Edit ".&Apache::loncommon::course_type(), faq=>273, bug=>'Instructor Interface', help => 'Docs_Adding_Course_Doc'}); @@ -2571,9 +2570,13 @@ sub handler { if (($env{'form.uploaddoc.filename'}) && ($env{'form.cmd'}=~/^upload_(\w+)/)) { # Process file upload - phase one - upload and parse primary file. + undef($hadchanges); $upload_result = &process_file_upload(\$upload_output,$coursenum, $coursedom,\%allfiles, \%codebase,$1); + if ($hadchanges) { + &mark_hash_old(); + } if ($upload_result eq 'phasetwo') { $r->print($upload_output); } @@ -2675,6 +2678,7 @@ sub handler { 'bull' => 'Bulletin Board', 'mypi' => 'My Personal Info', 'grpo' => 'Group Files', + 'rost' => 'Course Roster', 'abou' => 'About User', 'imsf' => 'Import IMS package', 'file' => 'File', @@ -2966,6 +2970,15 @@ value="Group Files=/adm/$coursedom/$cour $help{'Group Files'} +
+$uploadtag + + + +$help{'Course Roster'} + + ENDFORM } if ($env{'form.pagepath'}) {