Skip to content
astahlhofen edited this page Apr 11, 2013 · 15 revisions

Welcome to the MendeleyMwExtension page. The following explains on how to configure your MediaWiki to make profit of your Mendeley library inside your Wiki.

Installation

Note

Before installing and using this extension, make a backup of your MediaWiki, especially of the database. Here you can read how to perform the important steps. Notice, that this extension is in an early development state, so there is no warranty that everything runs bugfree and nothing is destroyed.

Get Mendeley API access.

To use the Mendeley MediaWiki extension, you need access to the Mendeley API. To obtain a "Consumer Key" and "Consumer Secret" you have to go to http://dev.mendeley.com/applications/register/ and register an application. Prerequisite is, that you own a valid mendeley account.

Screenshot: How to get Mendeley Consumer Key and Consumer Secret.

Integrating into MediaWiki

First, you have to download the Mendeley MediaWiki extension. The preferred way is to clone the git repository into your MediaWiki extensions directory. So, go to your MediaWiki root, enter the extension directory and type the following on command line: git clone https://github.com/astahlhofen/MendeleyMwExtension.git
Another alternative is to download the zip-Archive and unzip it into the MediaWiki extension directory. In this case, rename the unpacked directory from "MendeleyMwExtension-master" to "MendeleyMwExtension".

Next step is to publish the extension inside your MediaWiki. Todo this, go to the MediaWiki configuration file called "LocalSettings.php" inside your MediaWiki root directory. Insert the following at the end of the file:

# Mendeley extension
require_once ( "$IP/extensions/MendeleyMwExtension/Mendeley.php" );
$wgMendeleyConsumerKey = "24e96cf65cb702ce3bd1a86bf2502267050bc7724";
$wgMendeleyConsumerSecret = "fd4d188f3dd6c174bb05b0a89cade66f";

After this, your MediaWiki knows about the Mendeley extension. But we're not finished. The last step is to extend the MediaWiki database for a single table, called "mw_mendeley_id_mappings'. Just go to the root of your MediaWiki, enter the directory "maintenance" and call the script "update.php" via the command line: php update.php

Now, everything is configured and should work.

Clone this wiki locally