You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beware that the Publication::edit hook will fire any time the publication is edited, not just in step 3. So you’ll need to be careful about when you are performing the action to make.
An alternate hook that you can use is submissionsubmitstep3form::execute. This will fire whenever the step 3 form is successfully completed.
loop which checks if the ERC is already a candidate or already published, so that the whole function (updateCompendium) is not executed several times and that there are not two ERCs on the same workspace.zip
check that only one compendium per submission is allowed ? (solution for both could be if the ERC id is entered in the database so not equal to null, no further ERC can be created)
The text was updated successfully, but these errors were encountered:
After just trying out using the hook submissionsubmitstep3form::execute instead of Publication::edit for the function updateCompendiumit became clear that it is not usable in our case, as then the both galleys are not created. Either I am missing something or it is simply not usable in our use case.
Nevertheless there needs to be a if loop which checks if the ERC is already a candidate or already published, so that the whole function is not executed several times.
Beware that the Publication::edit hook will fire any time the publication is edited, not just in step 3. So you’ll need to be careful about when you are performing the action to make.
An alternate hook that you can use is submissionsubmitstep3form::execute. This will fire whenever the step 3 form is successfully completed.
https://forum.pkp.sfu.ca/t/set-file-to-create-galley-by-plugin/67084/11?u=tnier01
updateCompendium
) is not executed several times and that there are not two ERCs on the sameworkspace.zip
The text was updated successfully, but these errors were encountered: