WordPress.org

Ready to get started?Download WordPress

Forums

Mendeley Plugin
[resolved] Change to author JSON handling in API (2 posts)

  1. mbietz
    Member
    Posted 3 years ago #

    The Mendeley API seems to have changed the way it handles authors, but this the code in the plugin. They have changed from returning authors as a string to returning them as a JSON array of 'forename' and 'surname'. This is not yet in the API documentation, but the bug on it has been closed: https://mendeleyapi.16bugs.com/projects/6677/bugs/193954

    Version: Mendeley Plugin 0.6.5 on WordPress 3.2.1

    I haven't done thorough testing, but fixed my installation by changing:

    Line 343:
    $grpval=$grpval[0]->surname . $grpval[0]->forename;

    Line 393:
    $authors .= $author_arr[$i]->forename . " " . $author_arr[$i]->surname;

    I haven't tested yet to see if the editor listing is also changed (for line 401).

  2. kochm
    Member
    Plugin Author

    Posted 2 years ago #

    The issue is resolved in v0.6.7 of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic