Support » Plugin: Mendeley Plugin » Change to author JSON handling in API

  • Resolved mbietz

    (@mbietz)


    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).

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Change to author JSON handling in API’ is closed to new replies.