Filling dataset form field based on the ROR API

77 views
Skip to first unread message

Washington Carvalho Segundo

unread,
Dec 28, 2021, 1:06:04 PM12/28/21
to Dataverse Users Community
Hi everyone!

I am trying filling the affiliation author field on the dataset form, based on a search above the ROR API. Example:


Does anyone have already faced this challenge in Dataverse?

Greetings!
Washington


Philip Durbin

unread,
Jan 3, 2022, 3:36:13 PM1/3/22
to dataverse...@googlegroups.com
I'm confused, that search for "bath" from ROR yields 15 results including Bath College, Bath Labs, etc.

Given those results, you're trying to put them in a Dataverse dataset as author affiliations? Via API? Is that right?

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/eebf3fb9-44f6-4382-b39c-3b13468e2dbdn%40googlegroups.com.


--

Washington Carvalho Segundo

unread,
Jan 5, 2022, 7:41:32 AM1/5/22
to dataverse...@googlegroups.com, marcelom...@gmail.com, marcel...@ibict.br
Thank you Philip!

Yes, exactly, these choices would generate a suspense list (like a lookup search) and the submitter would choose between them for filling the author affiliation.

kind regards,
Washington



Philip Durbin

unread,
Jan 5, 2022, 10:36:37 AM1/5/22
to dataverse...@googlegroups.com
I see. So you're creating a GUI on the side? And it performs this task? If so I'd suggest sending something like this across the wire (please note that I'm truncating the JSON for readability) from your app to Dataverse...

"typeName": "author",
"value": [
    {
        "authorName": {
            "typeName": "authorName",
            "value": "Poe, Edgar Allen"
        }
        ,
        "authorAffiliation": {
            "typeName": "authorAffiliation",
            "value": "Baltimore Poets"
        }
    },


My other thought is that ROR might be a good candidate for Dataverse's new and experimental external controlled vocabulary feature, which you can read about at https://github.com/IQSS/dataverse/releases/tag/v5.7 . Right now it works best with custom metadata blocks and I don't expect it to "just work" with the citation block (which is where author affiliation is found).

I hope this helps,

Phil


Philip Durbin

unread,
Feb 10, 2022, 3:56:27 PM2/10/22
to dataverse...@googlegroups.com
Good news! Over at https://github.com/gdcc/dataverse-external-vocab-support/pull/9 I saw that Kris Dekeyser was contributing an example of how to use the new external controlled vocabulary feature to search for authors and fill in their names. I asked him if he could search ROR for affiliation and he can! It works! I was wrong when I suspected this might not "just work" with the citation block. I'll attach a screenshot of searching for "ucla" and being given a picklist.



Screen Shot 2022-02-10 at 3.40.34 PM.png

Washington Carvalho Segundo

unread,
Feb 14, 2022, 12:14:21 PM2/14/22
to dataverse...@googlegroups.com
Great Philip! Thank you very much for your help!

Reply all
Reply to author
Forward
0 new messages