--- loncom/publisher/lonpublisher.pm 2007/07/13 19:23:33 1.226 +++ loncom/publisher/lonpublisher.pm 2007/08/07 01:52:44 1.228 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.226 2007/07/13 19:23:33 albertel Exp $ +# $Id: lonpublisher.pm,v 1.228 2007/08/07 01:52:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -841,8 +841,9 @@ sub store_metadata { if (($metadata{'obsolete'}) || ($metadata{'copyright'} eq 'priv') || ($metadata{'copyright'} eq 'custom')) { # remove this entry - $status=&LONCAPA::lonmetadata::delete_metadata($dbh,undef, - $metadata{'url'}); + my $delitem = 'url = '.$dbh->quote($metadata{'url'}); + $status = &LONCAPA::lonmetadata::delete_metadata($dbh,undef,$delitem); + } else { $status = &LONCAPA::lonmetadata::update_metadata($dbh,undef,undef, \%metadata); @@ -1440,6 +1441,11 @@ sub phasetwo { &mt('No write permission to user directory, FAIL').''); return 0; } + + if ($source =~ /\.rights$/) { + $r->print('

'.&mt('Warning: It can take up to 1 hour for rights changes to fully propagate.').'

'); + } + print $logfile "\n================= Publish ".localtime()." Phase Two ================\n".$env{'user.name'}.':'.$env{'user.domain'}."\n";