Skip to content

Importing from OJS

Andy Byers edited this page Aug 31, 2018 · 8 revisions

You can import some information from an OJS journal into your Janeway install using the following method:

  1. Setup a file called auth.json and inside it add the following:
{"username": "journal_manager_username", "password": "journal_manager_password"}

Our import system will use this to login to OJS and scrape information from the backend or to login and use our OJS plugin.

  1. Before importing any articles we need to setup accounts for users, we can use the import_jms_user command for this. From janeway/src/ run:
python3 manage.py import_jms_users janeway_journal_code https://path.ofojs.journal/code/ ~/path/to/auth.json
  1. Next we can import published articles utilising the OAI feed:
python3 manage.py scrape_oai https://path.ofojs.journal/code/oai/feed/path/ journal_id user_id

The journal_id is the id of the journal to import these articles to and the user_id is the ID of the user who will be the "owner" of these article records.

  1. Next we utilise the ojs-janeway plugin to import articles in review and in editing. The command for review is:
python3 manage.py up_import_review_article journal_code https://path.ofojs.journal/code/ ~/path/to/auth.json

Wiki has moved to read the docs.

Clone this wiki locally