OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS Plugin: Rest Plugin

The Plugin Gallery is a venue for users of PKP software to share their plugins.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

OJS Plugin: Rest Plugin

Postby mcrider » Wed Oct 12, 2011 12:39 pm

Hi folks,

This plugin allows for non-OJS applications to make requests for data via HTTP requests to your journal and get JSON-formatted responses. The primary purpose for this is to integrate journal information (journal metadata, articles, announcements, etc) in your non-OJS CMS/web app.

This code is hosted on https://github.com/mcrider/rest. I encourage others to fork the code and add additional functionality to the plugin (send me a pull request and I'll pull it in). There are a few things that I'd like to see added to this plugin, see the README.

Cheers,
Matt
Attachments
rest.tar.gz
(4.1 KiB) Downloaded 362 times
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: OJS Plugin: Rest Plugin

Postby claudiot » Tue Nov 25, 2014 4:17 am

I downloaded your Rest Plugin, managed to install it from the plugin management page (in 2.4.5) but anyway I can't find the plugin nor in the gateway nor in generic plugin page, so I can't enable it. What can I do?

Thanks in advance
Claudio
claudiot
 
Posts: 4
Joined: Wed Sep 25, 2013 6:34 am
Location: Bologna, Italy

Re: OJS Plugin: Rest Plugin

Postby gusar » Tue Jan 06, 2015 10:21 am

claudiot wrote:I downloaded your Rest Plugin, managed to install it from the plugin management page (in 2.4.5) but anyway I can't find the plugin nor in the gateway nor in generic plugin page, so I can't enable it. What can I do?

Thanks in advance
Claudio

Hi! I've tried this plugin. :)
Error occurs during installation process:
Code: Select all
Errors occurred processing this form:
The uploaded plugin archive does not contain a folder that corresponds to the plugin name.

By means of manual installation occurs another error:
Code: Select all
Fatal error: Call to undefined method Locale::translate() in /ojs/installation/path/plugins/gateways/rest/RestPlugin.inc.php on line 50

This code generates error:
Code: Select all
   function getDisplayName() {
      return Locale::translate('plugins.gateways.rest.displayName');
   }

   function getDescription() {
      return Locale::translate('plugins.gateways.rest.description');
   }

Needs to replace it to:
Code: Select all
   function getDisplayName() {
      return __('plugins.gateways.rest.displayName');
   }

   function getDescription() {
      return __('plugins.gateways.rest.description');
   }

Needs to be changed code that throws error message on 153 line same as above.
For enabling this plugin go to this path: Home > User > Journal Management > Plugin Management > Gateway Plugins
Then click enable REST API Plugin.
How to use this plugin described in README. I mean URL parameters.
gusar
 
Posts: 17
Joined: Wed Jan 23, 2013 12:42 am
Location: Russian Federation


Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 1 guest