Providing a different hook in SubmissionSearch.inc.php

,

Hello,
I’m developing a theme for a client.

I need to improve the search form using for retrieve submission filtered by categories, I would like to use the hook in SubmissionSearch.inc.php in order to modify the query, but the existing one doesn’t allow to modify the query.

What is the process to request a new hook or to provide a possibile implementation for a new one?

Kind Regards

Hi @nostrabramus , we are trying to make all first “Feature Request” posts follow the same structure to facilitate the understanding of the petitions and, at same time, ensure no relevant info is missing.

Do you mind to reEdit your fist post following this template:

Describe the problem you would like to solve
Example: Our editors need a way to […]

Describe the solution you’d like
Tell us how you would like this problem to be solved.

Who is asking for this feature?
Tell us what kind of users are requesting this feature. Example: Journal Editors, Journal Administrators, Technical Support, Authors, Reviewers, etc.

Additional information
Add any other information or screenshots about the feature request here.

You can use this post as a reference.

Please don’t answer this post: As soon as you make the changes, we will remove this post to avoid adding noise to your FR thread.

Thanks for your help.

Moving to “Support forum” until the post is reformatted.

Thanks for your understanding,
m.

Thanks for the replies.
in the meantime I had continued my work and I realized that the hook I needed already existed.

I used
SubmissionSearch::retrieveResults
to modify the query executed by the search process

And I used:

submissionsubmitstep3form::initdata
submissionsubmitstep3form::readuservars
Publication::edit

to add the new fields to the publication on where I wanted to extend the search process.

Thank you again

1 Like