--- loncom/interface/loncommon.pm 2006/11/30 22:29:03 1.479 +++ loncom/interface/loncommon.pm 2006/12/01 00:26:07 1.480 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.479 2006/11/30 22:29:03 albertel Exp $ +# $Id: loncommon.pm,v 1.480 2006/12/01 00:26:07 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5136,7 +5136,15 @@ sub record_sep { $i++; } } else { - my @allfields=split(/\,/,$record); + my @allfields; + &Apache::lonnet::logthis("file type is ".$env{'form.upfiletype'}); + if ($env{'form.upfiletype'} eq 'semisv') { + &Apache::lonnet::logthis("splitting on ; "); + @allfields=split(/;/,$record); + } else { + &Apache::lonnet::logthis("splitting on , "); + @allfields=split(/\,/,$record); + } my $i=0; my $j; for ($j=0;$j<=$#allfields;$j++) { @@ -5174,6 +5182,7 @@ the file type. sub upfile_select_html { my %Types = ( csv => &mt('CSV (comma separated values, spreadsheet)'), + semisv => &mt('Semicolon separated values'), space => &mt('Space separated'), tab => &mt('Tabulator separated'), # xml => &mt('HTML/XML'),