TIBHannover / geoMetadata

geoMetadata Plugin for OJS
https://projects.tib.eu/komet/
GNU General Public License v3.0
5 stars 3 forks source link

Fix Plugin for OMP #126

Open nuest opened 1 year ago

nuest commented 1 year ago

(Recording the results of a [previous internal evaluation]():)

image

Error:

[Mon Jul 31 14:33:00 2023] PHP Fatal error:  Uncaught Error: Call to undefined method Request::getJournal() in /home/daniel/git/OPTIMETA/optimetaGeo/OptimetaGeoPlugin.inc.php:546

Stack trace:

#0 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/plugins/HookRegistry.inc.php(107): OptimetaGeoPlugin->editPublication()

#1 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/services/PKPPublicationService.inc.php(524): HookRegistry::call()

#2 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/submission/PKPSubmissionMetadataFormImplementation.inc.php(196): PKP\Services\PKPPublicationService->edit()

#3 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep3Form.inc.php(100): PKPSubmissionMetadataFormImplementation->execute()

#4 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php(177): PKPSubmissionSubmitStep3Form->execute()

#5 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPSubmissionHandler->saveStep()

#6 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()

#7 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()

#8 /home/daniel/git/OPTIMETA/omp-3.3.0-14/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()

#9 /home/daniel/git/OPTIMETA/omp-3.3.0-14/index.php(64): PKPApplication->execute()

#10 {main}

  thrown in /home/daniel/git/OPTIMETA/optimetaGeo/OptimetaGeoPlugin.inc.php on line 546

Because OMP does not have the internal artefact "Journal", different

Similar to OPS (see #125 ) the hook names are also different and require conditional checking and usage.