pkp-lib icon indicating copy to clipboard operation
pkp-lib copied to clipboard

No hook call inside GridHandler

Open henriquejsfj opened this issue 1 year ago • 2 comments

What am I trying to achieve? I would like to modify the IssueGridHandler to add one custom option besides edit, preview, etc...

What I expected to have in lib-pkp? A Hook being called so I can Hook::add in my plugin to do the modifications I want.

What I think is the problem? In PKP\controllers\grid\GridHandler exists a callFeaturesHook method that acts similar to the Plugin Hook, except that nobody else may have access to it...

What application are you using? OJS version 3.4

henriquejsfj avatar Mar 21 '24 19:03 henriquejsfj

@henriquejsfj, could you describe (from a user perspective) what the change to the interface would be? I'm not against adding new hooks in general, but might have another suggestion.

asmecher avatar Mar 21 '24 19:03 asmecher

@asmecher in the Future Issue tab, I am adding another preview button to see the publications assigned to that issue that is not already approved/scheduled...

So, user would have two preview options:

  • one that shows what that issue would have if the issue got published in that moment.
  • other that shows what that issue would have if all the publications attached to it gets approved/scheduled before publishing the issue.

Note that my use case is specific and I modified the Issue and publications views.

henriquejsfj avatar Mar 21 '24 20:03 henriquejsfj