Hello,
I’m trying to retrieve Authors and their affiliations by using the API for a specific DOI.
In the JSON response I got this:
[author] => Array
(
[0] => Array
(
[given] => g1
[family] => f1
[sequence] => first
[affiliation] => Array
(
)
)
[1] => Array
(
[name] => aff1
[sequence] => first
[affiliation] => Array
(
)
)
[2] => Array
(
[given] => g2
[family] => f2
[sequence] => additional
[affiliation] => Array
(
)
)
[3] => Array
(
[given] => g3
[family] => b3
[sequence] => additional
[affiliation] => Array
(
)
)
[4] => Array
(
[name] => aff2
[sequence] => additional
[affiliation] => Array
(
)
)
[5] => Array
(
[name] => aff3
[sequence] => additional
[affiliation] => Array
(
)
)
[6] => Array
(
[name] => aff4
[sequence] => additional
[affiliation] => Array
(
)
)
)
Data for this DOI was added via webdeposit form and in the received XML the code was:
<contributors>
<organization sequence='first'
contributor_role='author'>aff1</organization>
<person_name sequence='first'
contributor_role='author'>
<given_name>g1</given_name>
<surname>f1</surname>
</person_name>
<person_name sequence='additional'
contributor_role='author'>
<given_name>g2</given_name>
<surname>f2</surname>
</person_name>
<organization sequence='additional'
contributor_role='author'>aff2</organization>
<person_name sequence='additional'
contributor_role='author'>
<given_name>g3</given_name>
<surname>f3</surname>
</person_name>
<organization sequence='additional'
contributor_role='author'>aff3</organization>
<organization sequence='additional'
contributor_role='author'>aff4</organization>
</contributors>
How can I match the authors with their affiliations?
Am I missing something?
In another topic I saw a print screen with the affiliation displayed in the right position, as an array of author child.
Thank you,