File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,9 +98,17 @@ if (file.exists("deposits.rds")) {
9898 deposits <- deposits_get(dataverse_host, dataverse_key)
9999 deposits$dvurl <- paste0("http://data.qdr.syr.edu/api/datasets/:persistentId/?persistentId=", deposits$global_id)
100100
101+ institutions <- lapply(deposits$contacts, function(contact_group) {
102+ # For each contact in the group, extract just the affiliation
103+ lapply(contact_group, function(contact) {
104+ contact$affiliation
105+ })
106+ })
107+
108+
101109 # We query individual deposit to get *depositor* affiliation
102110 # This extra API call would be unnecessary to only get contact affiliation
103- institutions <- lapply(deposits$dvurl, deposit_affiliations, dataverse_key)
111+ # institutions <- lapply(deposits$dvurl, deposit_affiliations, dataverse_key)
104112
105113print(deposits)
106114 # Run all the depositor affiliations against a regex of institutional members
You can’t perform that action at this time.
0 commit comments