Add relationship to publication_types view.
Fix machine name.
More work and fixes.
Fix.
Remove notice.