--- loncom/publisher/lonpublisher.pm 2005/03/10 02:34:58 1.187 +++ loncom/publisher/lonpublisher.pm 2005/03/15 16:09:20 1.189 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.187 2005/03/10 02:34:58 www Exp $ +# $Id: lonpublisher.pm,v 1.189 2005/03/15 16:09:20 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1288,7 +1288,7 @@ END } my $copyright_help = Apache::loncommon::help_open_topic('Publishing_Copyright'); - $intr_scrout =~ s/DISTRIBUTION:/'DISTRIBUTION: ' . $copyright_help/ge; + $intr_scrout =~ s/Distribution:/'Distribution: ' . $copyright_help/ge; $intr_scrout.=&text_with_browse_field('Custom Distribution File','customdistributionfile',$metadatafields{'customdistributionfile'},'rights').$copyright_help; $intr_scrout.=&selectbox('Source Distribution','sourceavail', $defaultsourceoption, @@ -2012,14 +2012,17 @@ ENDDIFF unless ($ENV{'form.phase'} eq 'two') { # ---------------------------------------------------------- Parse for problems - my ($warningcount,$errorcount)=&checkonthis($r,$thisfn); - unless ($errorcount) { + my ($warningcount,$errorcount); + if ($thisembstyle eq 'ssi') { + ($warningcount,$errorcount)=&checkonthis($r,$thisfn); + } + unless ($errorcount) { my ($outstring,$error)= &publish($thisfn,$thistarget,$thisembstyle); $r->print('
'.$outstring); } else { - $r->print('

'. - &mt('The document contains errors and cannot be published.'). + $r->print('

'. + &mt('The document contains errors and cannot be published.'). '

'); } } else {