ojs : insert open review placeholder into submission review page
When the Editor selects a submission from the Submission In Review page (slatest1/editor/submissions/submissionsInReview), they get the submissionReview page for that submission (slatest1/editor/submissionReview/2). I need that page to include a control that lets the editor assign the submission to the open review process (rather than a reviewer in the peer review process).
I started (as documented before) by trying to capture the pagelaunch event for that page and then writing out an entire new page which grabbed the standard elements somehow and included them on the page along with the new elements I wrote in. I couldn't figure out how to get the path references to work.
I then tried using an output filter on the submissionReview template to inject GUI elements into that template. I managed to get localized strings and hard-coded html in there, but I have no clue how to inject a form with a checkbox and action that updates the db appropriately. Further I have no idea what to do if the editor decides to change their mind about assigning the submission to open review, or preventing the editor from accidentally assigning the submission to both open review and peer review.
To get the injection to work, I modified the OpenReviewPlugin.inc.php file (though it seems the wrong approach):
1) added to register function:
HookRegistry::register('TemplateManager::display', array(&$this, 'handleTemplateDisplay'));
2) create handlTemplateDisplay() function which has this critical line:
$templateMgr->register_outputfilter(array(&$this, 'submissionReviewOutputFilter'));
3) create submissionReviewOutputFilter() function, which takes the html of the page, includes a bunch of hardcoded html at a specified place in the html and returns the modified html
I don't see how the injection method is going to work, because it's only dealing with the view and not the model, essentially. For example, how do I attach the events in the checkbox with an object that talks to the database?