A plugin for Janeway, enables preservation of preprint in Merritt upon preprint acceptance to a Janeway repository.
The plugin is triggered by the preprint_publication
event. This event happens immediately after the button to send an acceptance e-mail is clicked.
- Clone this repo into /path/to/janeway/src/plugins/
- run
python src/manage.py install_plugins
- Restart your server (Apache, Passenger, etc).
- configure the plugin (see below)
Each preprint repository needs to have an associated Merritt Repo Settings object.
- Navigate to admin and find the "Merritt" section
- Click "Add" Repo Merritt settings
- Select the appropriate repository and fill in the collection and other metadata
- Save
When installed and configured, the plugin will send preprint to Merritt on publication. Result of sending zip and the callback is tracked.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D