Open Journal System (OJS) Integration in WordPress via Plugin – UPDATE

Christian Heise —  March 3, 2014 — 9 Comments

ojs_plus_wordpressThere is a way to synchronize a WordPress Blog with an Open Journal System (OJS) through the OJS REST API. Here you can find instructions on how to enable this function and how to import the articles as WordPress posts. In the end you can use your OJS content with some of our favorite WordPress features.

Presumptions: There is a installed WordPress 3.x or 4.x and OJS 2.x.

1. Install the OJS REST-Integration OJS Plugin for OJS (Version 2.x), unpack it, upload it to the OJSgeneric plugin directory (ojs/plugins/generic) and enable the plugin.

2. Download the WordPress Plugin, unpack it and upload to your “wp-content/plugins/” directory. Enable the Plugin in WordPress.

3. In WordPress, you’ll probably want to make modifications to your theme to display the additional metadata of the custom fields that we import from OJS. Check also the modified “Blaskan” theme at https://github.com/mcrider/blaskan/zipball/ojs_integration

4. In your WordPress admin page go to Settings -> ojs import. In the ‘Data source’ field, enter the URL to your REST plugin.

5. If your journal is located at http://your.journal.com/journalname the URL would be http://your.journal.com/journalname/index.php/journalname/gateway/plugin/RestPlugin/allArticles.
This is the only method for the REST plugin that currently works with the WordPress import plugin. According to the Developer there will come more in the future.

7. In WordPress go to “Tools” click on “OJS import” and click on the “Import from OJS” button. Now all your Articles will be imported as posts.

Thats it! Make sure when editing a post to go to the ‘Screen options’ tab at the top right and select ‘Custom Fields’ to show on screen; This will allow you to see the post’s metadata.

UPDATE November 2014: Magnus Pfeffer commented on the way how to use the Plugin:

To use the wordpress plugin with PHP Version >= 5.4: Replace all appearances of “&$” with “$”.

Source: http://stackoverflow.com/questions/12322811/call-time-pass-by-reference-has-been-removed

To use the wordpress plugin with WordPress Version >= 4.0: Remove the /* Plugin name: OJS Import */ comment in the ojsimport.php and put it on top of ojsimport-admin.php.

Source: https://github.com/mcrider/ojs-import/issues/2

Profile photo of Christian Heise

Christian Heise

Posts

Research Associate at the Hybrid Publishing Lab and Member of Board of the Open Knowledge Foundation Germany, currently working on his Ph.D thesis about Open Science. More about me...

9 responses to Open Journal System (OJS) Integration in WordPress via Plugin – UPDATE

  1. Excellent work, Christian. Is there a public URL to a journal that demonstrates this kind of integration?

  2. Just curious to know if you got the REST and OJS import to work on WordPress ?

  3. Nice!! And it’s supossed to work with any CMS capable of REST, isn’t it?

  4. Javier López July 18, 2014 at 5:24 am

    This happens when I try to activate this plugin:
    Fatal error: Call-time pass-by-reference has been removed in …/wp-content/plugins/mcrider-ojs-import-041427e/ojsimport.php on line 396

    Anyone else had this problem?

  5. To use the wordpress plugin with PHP Version >= 5.4: Replace all appearances of “&$” with “$”.

    Source: http://stackoverflow.com/questions/12322811/call-time-pass-by-reference-has-been-removed

    To use the wordpress plugin with WordPress Version >= 4.0: Remove the /* Plugin name: OJS Import */ comment in the ojsimport.php and put it on top of ojsimport-admin.php.

    Source: https://github.com/mcrider/ojs-import/issues/2

  6. These instructions seem to make little sense:
    – The link to the OJS Plugin is a wordpress theme from the same GitHub-User.
    – Both plugins (for WP & OJS) haven’t got maintained since a long time. The OJS-Plugin doesn’t even install on the newest OJS version without several fixes.
    – The OJS REST Plugin (https://github.com/mcrider/rest) doesn’t support the URL “…/allArticles”. Where did you get a version of the REST Plugin supporting this?

  7. I just recognized that there is a second branch (wp_plugin) at github for the OJS REST plugin that indeed contains the “allArticles” functionality. Unfortunately it has less functionality than the master-branch. For example it seems to only deliver the abstracts of the articles, not the URLs to the galleys.

Trackbacks and Pingbacks:

  1. Open Journal Systems Integration with WordPress | Research + Libraries + Technology - March 15, 2014

    […] through the Hybrid Publishing Lab blog, I found there is now a plugin for WordPress that supports integration with the open source academic journal software, Open Journal Systems. But […]

Leave a Reply

Text formatting is available via select HTML. <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*