|
22 | 22 | use PKP\linkAction\request\AjaxModal; |
23 | 23 |
|
24 | 24 | import('plugins.generic.thoth.classes.api.ThothEndpoint'); |
| 25 | +import('plugins.generic.thoth.classes.components.forms.config.CatalogEntryFormConfig'); |
25 | 26 | import('plugins.generic.thoth.classes.components.forms.config.PublishFormConfig'); |
26 | 27 | import('plugins.generic.thoth.classes.templateFilters.ThothSectionTemplateFilter'); |
27 | 28 | import('plugins.generic.thoth.classes.listeners.PublicationEditListener'); |
@@ -122,8 +123,9 @@ public function manage($args, $request) |
122 | 123 | public function addToSchema() |
123 | 124 | { |
124 | 125 | $thothSchema = new ThothSchema(); |
125 | | - HookRegistry::register('Schema::get::submission', [$thothSchema, 'addWorkIdToSchema']); |
126 | 126 | HookRegistry::register('Schema::get::eventLog', [$thothSchema, 'addReasonToSchema']); |
| 127 | + HookRegistry::register('Schema::get::submission', [$thothSchema, 'addWorkIdToSchema']); |
| 128 | + HookRegistry::register('Schema::get::publication', [$thothSchema, 'addToPublicationSchema']); |
127 | 129 | HookRegistry::register('Submission::getSubmissionsListProps', [$thothSchema, 'addToSubmissionsListProps']); |
128 | 130 | } |
129 | 131 |
|
@@ -156,6 +158,9 @@ public function addFormConfig() |
156 | 158 | { |
157 | 159 | $publishFormConfig = new PublishFormConfig(); |
158 | 160 | HookRegistry::register('Form::config::before', [$publishFormConfig, 'addConfig']); |
| 161 | + |
| 162 | + $catalogEntryFormConfig = new CatalogEntryFormConfig(); |
| 163 | + HookRegistry::register('Form::config::before', [$catalogEntryFormConfig, 'addConfig']); |
159 | 164 | } |
160 | 165 |
|
161 | 166 | public function addListeners() |
|
0 commit comments