def delete_catalog_row
redirect_to(:action => 'show_catalog', :catalog => @cat_name)
return true unless request.post?
begin
@catalog.find(params[:id]).destroy
flash[:notice] << _('The requested record was successfully deleted')
rescue ActiveRecord::RecordNotFound
flash[:error] << _('Requested record not found - '+
'Maybe it had already been deleted?')
rescue ActiveRecord::StatementInvalid
flash[:error] << _('Error deleting the requested record - A catalog ' +
'entry will not be deleted if it is still referenced.')
end
end