A collection of resources that may help you while coding with OJS and OMP.
This plugin will clear the template and CSS cache with every request. Enable it so that you don’t have to manually clear the cache every time you make a change.
Be careful not to enable this on a production site. Recompiling templates and CSS is a time-intensive task.
We use Postman to test our REST API endpoints. You can import our request collection for OJS (last updated 2020-12-21).
A CLI script to generate submissions for import. Run php ojs-generate-submissions.php
to create the XML file, then import from Tools > Export/Import > Native Import.
A CLI tool is available to generate usage statistics for each submission in your instance. From the root directory of an application, run:
php lib/pkp/generateTestMetrics.php <context_id> <start_date> <end_date>
Dates should be in the format YYYY-MM-DD
.
A CLI tool to remove locale keys. This can be useful when a locale key is no longer used and needs to be removed from every locale.
From the root directory of an application, run:
php tools/removeLocaleKey.php example.locale.key
It will remove all instances of that locale key from every locale .po
file in the application and pkp-lib.
A CLI tool to move a locale key from one file to another and apply the change across all languages. Use this to move a locale key from an application directory to pkp-lib. Use the -r
flag to move a key from pkp-lib to the application.
Run the following from the root directory of an application.
php lib/pkp/tools/moveLocaleKeysToLib.php example.locale.key emails.po
This will move all translations of example.locale.key
from locale/**_**/emails.po
to lib/pkp/locale/**_**/emails.po
.