Coder Social home page Coder Social logo

stjordanis / plugin-mendeley Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onlyoffice/plugin-mendeley

0.0 1.0 0.0 491 KB

Mendeley plugin allows users to create bibliographies in ONLYOFFICE editors.

License: Apache License 2.0

JavaScript 97.72% HTML 1.24% CSS 1.04%

plugin-mendeley's Introduction

ONLYOFFICE Mendeley plugin

Mendeley plugin allows users to create bibliographies in ONLYOFFICE editors using Mendeley service.

The plugin is pre-installed in ONLYOFFICE Workspace (both Enterprise and Community Edition), ONLYOFFICE cloud service, and ONLYOFFICE Personal. It can also be installed to Document Server manually.

How to use

  1. Search references by author, title or year.

  2. Among search results, choose ones you want to add to your document.

  3. Choose style (e.g. Chicago Manual, American Psychological Association) and language.

  4. Press Insert citation.

How to install

Two installation ways are available:

  1. Put the folder with Mendeley plugin (it must contain the content of the src folder only) to ONLYOFFICE Document Server folder depending on the operating system:

    For Linux - /var/www/onlyoffice/documentserver/sdkjs-plugins/.

    For Windows - %ProgramFiles%\ONLYOFFICE\DocumentServer\sdkjs-plugins\.

    The plugins will be available to all the users users of ONLYOFFICE Document Server. No service restart is required.

  2. Edit the Document Server config to add the following lines:

    var docEditor = new DocsAPI.DocEditor("placeholder", {
        "editorConfig": {
            "plugins": {
                "autostart": [
                    "asc.{BE5CBF95-C0AD-4842-B157-AC40FEDD9441}",
                    ...
                ],
                "pluginsData": [
                    "https://example.com/path/to/mendeley/config.json",
                    ...
                ]
            },
            ...
        },
        ...
    });
    

Important: when you integrate ONLYOFFICE Document Server with a 3rd-party storage, you need to use special connectors (integration apps). If you compile a connector from source code or create a new one, you can add plugins using Document Server config. If you use ready connectors (e.g. from ownCloud/Nextcloud marketplaces) adding plugins via config is not applicable.

Configuration

You will need to register the application.

  1. Go to https://dev.mendeley.com/myapps.html.

  2. Fill in the form using link provided in the plugin interface as a redirect URL.

  3. Press Generate secret and copy it.

  4. Insert the secret into the appropriate field in the plugin interface.

Known issues

For CentOS users with SELinx enabled, after copying the src folder to sdkjs-plugins, plugins may not work due to the variable file security context. To restore the rights, use the following command:

sudo restorecon -Rv /var/www/onlyoffice/documentserver/sdkjs-plugins/

After that restart the services:

sudo supervisorctl restart ds:docservice

User feedback and support

To ask questions and share feedback, use Issues in this repository.

plugin-mendeley's People

Contributors

agolybev avatar alexeymatveev686 avatar eloncase avatar hellonadya avatar k0r0l avatar khromovnikita avatar linneys avatar papacarlo avatar trofim24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.