TexasDigitalLibrary / dataverse-reports

Statistical reports for Dataverse (https://dataverse.org/) that can support a federated instance.
MIT License
7 stars 4 forks source link

Author field in datasets tab of excel reports not displaying correctly #13

Closed eunices closed 2 years ago

eunices commented 2 years ago

Hello, the author field in datasets tab of the excel report does not seem to be displaying correctly when there are multiple authors. Dummy data from dataverse was used.

A fix is probably required in reports/dataset.py get_value_recursive method.

Here's an illustration of the problem:

Didegah - University of British Columbia ; Didegah - University of British ColumbiaGhaseminik, Zahra - Scientometrics & Technological Investigation Research Group - ORCID ; Didegah - University of British ColumbiaGhaseminik, Zahra - Scientometrics & Technological Investigation Research Group - ORCIDAlperin, Juan Pablo - Simon Fraser University - ORCID - http://orcid.org/0000-0002-9344-7439

It should instead be: Didegah - University of British Columbia; Ghaseminik, Zahra - Scientometrics & Technological Investigation Research Group - ORCID; Alperin, Juan Pablo - Simon Fraser University - ORCID - http://orcid.org/0000-0002-9344-7439

Screenshot 2021-10-15 at 5 08 24 PM
nwoodward commented 2 years ago

Hi. Thanks for bringing this issue to my attention. I vaguely recall something about this from when they switched to multiple authors in the API response. I'll take a look at the code and get back to you.

nwoodward commented 2 years ago

Hi @eunices. I'm sorry for the long delay. I realized this didn't have to do with the API response but was an issue with how the code handles compound metadata fields. So it took me a while to find some time to come up with a solution. I've committed a possible fix for multiple authors in datasets to the develop branch that works for me, but it would be great if you could test it on your data before I create a new release.

eunices commented 2 years ago

Hi @nwoodward, changes look good. Thanks so much!

Screenshot 2021-12-06 at 2 03 05 PM