I am having some trouble using the node service to create a biblio node over xmlrpc. The problem is specifically related to the authors field. I can't figure out how to populate the authors. What exactly do I need?

Comments

rjerome’s picture

Currently (but this will likely change in future releases), the node object contains a biblio_contributors array, which is keyed on the author categories (1-5... primary authors, secondary authors (usually editors), tertiary authors, subsidiary authors, corporate authors). The most commonly used categories are 1,2 and 5, authors, editors, corporate authors. Basically all you need for a primary author is as follows...


          $node->biblio_contributors[1][] = array(
            'name' => 'John Smith',
            'auth_type' => 1;

'name is the full name of the author, 'auth_type' is usually the same as auth_category, which is why it's set to 1 above. Each subsequent primary author is added to the biblio_contributors[1] array as above.

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.