I’m fiddling with GitHub - pkp/exampleImportExport: An example plugin demonstrating how to create an import/export plugin for OJS or OMP. but on OMP 3.1.2 it fails with:
Uncaught Error: Call to undefined method Application::get() in /home/mt/Projects/pkp/omp/plugins/importexport/exampleImportExport-master/ExampleImportExportPlugin.inc.php:53
I found I can work around that with:
$contextId = Application::getRequest()->getContext()->getId();
not sure if that’s the way though.
If I do that I end up with
PHP Fatal error: Uncaught Error: Class ‘Services’ not found in /home/mt/Projects/pkp/omp/plugins/importexport/exampleImportExport-master/ExampleImportExportPlugin.inc.php:108
How am I supposed to get the submissions?
regards Mark