OMP 3.4: How to add new fields to submission_chapter_settings?

Hi everyone,

I just wanted to ask which hook one would have to use to add a new setting to the submission_chapter_settings table. Schema::get::chapter does not seem to exist?

Hi @vmayer,

In OMP 3.4.0, the chapter storage uses the older DAO-based code, rather than the more modern Schema toolset. So in order to add a new setting, you’ll need to use the chapterdao::getAdditionalFieldNames and chapterdao::getLocaleFieldNames hooks. There’s an example you could follow in the old ORCiD profile plugin for 3.3.0, using a different DAO – see:

https://github.com/pkp/orcidProfile/blob/907598f8bca5a7b2362bf37b69211d6a731ee4e0/OrcidProfilePlugin.inc.php#L85

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 9 days. New replies are no longer allowed.