--- loncom/publisher/loncfile.pm 2004/12/28 21:28:49 1.64 +++ loncom/publisher/loncfile.pm 2005/03/10 03:50:49 1.65 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.64 2004/12/28 21:28:49 albertel Exp $ +# $Id: loncfile.pm,v 1.65 2005/03/10 03:50:49 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -802,8 +802,10 @@ sub phaseone { $ENV{'form.action'} eq 'newsequencefile' || $ENV{'form.action'} eq 'newrightsfile' || $ENV{'form.action'} eq 'newstyfile' || + $ENV{'form.action'} eq 'newlibraryfile' || $ENV{'form.action'} eq 'Select Action') { - if ($newfilename) { + my $empty=&mt('Type Name Here'); + if (($newfilename!~/\/$/) && ($newfilename!~/$empty$/)) { &NewFile1($r, $uname, $udom, $fn, $newfilename); } else { $r->print('

'.&mt('No new filename specified.').'

'); @@ -1286,6 +1288,7 @@ function writeDone() { $ENV{'form.action'} eq 'newsequencefile' || $ENV{'form.action'} eq 'newrightsfile' || $ENV{'form.action'} eq 'newstyfile' || + $ENV{'form.action'} eq 'newlibraryfile' || $ENV{'form.action'} eq 'Select Action' ) { $r->print('

'.&mt('New Resource').'

'); } else {