I am slowly customizing OJS 3,1 to our needs. We have two Journals hosted on the same OJS system, and I would like to add a button in the submission page for each submission to allow us to transfer a submission from one journal to another.
I was thinking of doing this in the Submissions page. Once a user clicks on the submission dropdown, there are three buttons: “View Submission” “Activity Log & Notes” “Delete”. I would like to another one here “Send to X”. I am going through the code, but am stuck at
The submissions list is a Vue.js component from the new pkp ui-library. You can see the SubmissionListItem component source code here:
If you want to add a button that pops up a modal, you can look at how this is done with the Activity Log & Notes button. In the template, a button is added with a @click handler that calls openInfoCenter:
And the openInfoCenter method instantiates the modal and loads it:
How do you compile the build.js exactly? Do you get any errors in the developer console of the browser? I assume that the AJAX calls are not working anymore.
The built JS is already included in the .tar.gz file – but if you’re making modifications to that, or running from a git branch, then you would build the JS by running
npm install
npm run build
Regards,
Alec Smecher
Public Knowledge Project Team
Now I realise that even without modifications, my build.js is 288 kb whilst the original is 234 kb. Also mine has the following:
Vue.js v2.5.15
vs
Vue.js v2.5.9
Any ideas?
Stephen
EDIT: I might have used a newer OJS version, so I have recomplied build.js using 3.1.0-1 git version, as this is the one I am using. I am still getting a difference size, and the Submissions page still is empty once I upload to the production site.
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:47 Europe/Malta] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home3/ssciberras/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[29-May-2018 17:17:48 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:48 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:48 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:48 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:48 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home3/ssciberras/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home3/ssciberras/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of PiwikPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home3/ssciberras/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 155
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[29-May-2018 17:17:52 Europe/Malta] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home3/ssciberras/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
If you have PHP errors configured to go to the browser, they’ll interfere with AJAX subrequests. Make sure your errors/warnings are directed to a log, and not the browser, and that may resolve it.
Regards,
Alec Smecher
Public Knowledge Project Team