Skip to content

Decision Documentation for 3.4 and 3.5 - talking about functions that aren't there #1372

Description

@JakobRing

I'm currently working on a plugin for OJS 3.5, and I wanted to add an Editorial Decision Button. Before I found the Plugin-Guide for that, I read through the "Decision" Documentation for 3.5 (same as 3.4) and I noticed that the places the examples are talking about don't exist.

protected function getStageDecisionTypes(int $stageId): array

I understand that

To add or remove these buttons from the submission's workflow page, modify the WorkflowHandler.

talks about the WorkflowHandler that is already there and the function inside the WorkflowHandler has to be changed.

But the getStageDecisionTypes() in the example afterwards is not there in the WorkflowHandler . Also the Hook-Call is made from an entirely different place than the WorkflowHandler so extending it to add this code makes no sense I guess?

Also the Hook-Call is made with the syntax of 3.3 HookRegistry::call('Workflow::Decisions', [&$decisionTypes, $stageId]); instead of the new Hook::call('Workflow::Decisions', [&$decisionTypes, $stageId]).

I hope I don't miss something here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions