|
24 | 24 | import('plugins.generic.thoth.classes.api.ThothEndpoint'); |
25 | 25 | import('plugins.generic.thoth.classes.components.forms.config.CatalogEntryFormConfig'); |
26 | 26 | import('plugins.generic.thoth.classes.components.forms.config.PublishFormConfig'); |
| 27 | +import('plugins.generic.thoth.classes.components.forms.config.ContributorFormConfig'); |
27 | 28 | import('plugins.generic.thoth.classes.templateFilters.ThothSectionTemplateFilter'); |
28 | 29 | import('plugins.generic.thoth.classes.listeners.PublicationEditListener'); |
29 | 30 | import('plugins.generic.thoth.classes.listeners.PublicationPublishListener'); |
@@ -126,6 +127,7 @@ public function addToSchema() |
126 | 127 | HookRegistry::register('Schema::get::eventLog', [$thothSchema, 'addReasonToSchema']); |
127 | 128 | HookRegistry::register('Schema::get::submission', [$thothSchema, 'addWorkIdToSchema']); |
128 | 129 | HookRegistry::register('Schema::get::publication', [$thothSchema, 'addToPublicationSchema']); |
| 130 | + HookRegistry::register('Schema::get::author', [$thothSchema, 'addToAuthorSchema']); |
129 | 131 | HookRegistry::register('Submission::getSubmissionsListProps', [$thothSchema, 'addToSubmissionsListProps']); |
130 | 132 | } |
131 | 133 |
|
@@ -161,6 +163,9 @@ public function addFormConfig() |
161 | 163 |
|
162 | 164 | $catalogEntryFormConfig = new CatalogEntryFormConfig(); |
163 | 165 | HookRegistry::register('Form::config::before', [$catalogEntryFormConfig, 'addConfig']); |
| 166 | + |
| 167 | + $contributorFormConfig = new ContributorFormConfig(); |
| 168 | + HookRegistry::register('Form::config::before', [$contributorFormConfig, 'addConfig']); |
164 | 169 | } |
165 | 170 |
|
166 | 171 | public function addListeners() |
|
0 commit comments