Skip to content

Commit

Permalink
Add affiliations to institution query
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Mar 3, 2023
1 parent 94328bc commit 0bb4acd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions thothlibrary/thoth-0_9_0/fixtures/QUERIES
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"institutionName",
"institutionDoi",
"fundings { grantNumber program projectName projectShortname jurisdiction institutionId work { workId fullTitle doi publicationDate place contributions { fullName contributionType mainContribution contributionOrdinal } imprint { publisher { publisherName publisherId } } } }",
"affiliations { affiliationOrdinal position contribution { fullName contributionType mainContribution contributionOrdinal } }",
"__typename"
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion thothlibrary/thoth-0_9_0/tests/fixtures/institution.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"data":{"institution":{"institutionId":"194614ac-d189-4a74-8bf4-74c0c9de4a81","institutionName":"The Danish Independent Research Council","institutionDoi":null,"fundings":[{"grantNumber":"0602-02551B","program":"FSE","projectName":"Marine Renewable Energy as Alien","projectShortname":"Alien Energy","jurisdiction":"DK","institutionId":"194614ac-d189-4a74-8bf4-74c0c9de4a81","work":{"workId":"95e15115-4009-4cb0-8824-011038e3c116","fullTitle":"Energy Worlds: In Experiment","doi":"https://doi.org/10.28938/9781912729098","publicationDate":"2021-05-01","place":"Manchester, UK","contributions":[{"fullName":"Brit Ross Winthereik","contributionType":"AUTHOR","mainContribution":true,"contributionOrdinal":3},{"fullName":"James Maguire","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":1},{"fullName":"Laura Watts","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":2}],"imprint":{"publisher":{"publisherName":"Mattering Press","publisherId":"17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}],"__typename":"Institution"}}}
{"data":{"institution":{"__typename":"Institution","institutionId":"194614ac-d189-4a74-8bf4-74c0c9de4a81","institutionName":"The Danish Independent Research Council","institutionDoi":null,"fundings":[{"grantNumber":"0602-02551B","program":"FSE","projectName":"Marine Renewable Energy as Alien","projectShortname":"Alien Energy","jurisdiction":"DK","institutionId":"194614ac-d189-4a74-8bf4-74c0c9de4a81","work":{"workId":"95e15115-4009-4cb0-8824-011038e3c116","fullTitle":"Energy Worlds: In Experiment","doi":"https://doi.org/10.28938/9781912729098","publicationDate":"2021-05-01","place":"Manchester, UK","contributions":[{"fullName":"Dominic Boyer","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":20},{"fullName":"Mónica Amador-Jiménez","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":13},{"fullName":"Noortje Marres","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":14},{"fullName":"Cymene Howe","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":15},{"fullName":"Jamie Cross","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":18},{"fullName":"Simone Almond Abram","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":19},{"fullName":"Ann-Sofie Kall","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":4},{"fullName":"Rebecca Ford","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":5},{"fullName":"Lea Schick","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":6},{"fullName":"Endre Dányi","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":7},{"fullName":"Michaela Spencer","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":8},{"fullName":"Hannah Knox","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":9},{"fullName":"Andrea Ballestero","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":10},{"fullName":"Stefan Helmreich","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":11},{"fullName":"Damian O’Doherty","contributionType":"AUTHOR","mainContribution":false,"contributionOrdinal":12},{"fullName":"Laura Watts","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":2},{"fullName":"Brit Ross Winthereik","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":3},{"fullName":"James Maguire","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":1},{"fullName":"Neil Ford","contributionType":"ILLUSTRATOR","mainContribution":false,"contributionOrdinal":16},{"fullName":"Rob Jones","contributionType":"CONTRIBUTIONS_BY","mainContribution":false,"contributionOrdinal":17}],"imprint":{"publisher":{"publisherName":"Mattering Press","publisherId":"17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}],"affiliations":[]}}}
2 changes: 1 addition & 1 deletion thothlibrary/thoth-0_9_0/tests/fixtures/institution.pickle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"institutionId": "194614ac-d189-4a74-8bf4-74c0c9de4a81", "institutionName": "The Danish Independent Research Council", "institutionDoi": null, "fundings": [{"grantNumber": "0602-02551B", "program": "FSE", "projectName": "Marine Renewable Energy as Alien", "projectShortname": "Alien Energy", "jurisdiction": "DK", "institutionId": "194614ac-d189-4a74-8bf4-74c0c9de4a81", "work": {"workId": "95e15115-4009-4cb0-8824-011038e3c116", "fullTitle": "Energy Worlds: In Experiment", "doi": "https://doi.org/10.28938/9781912729098", "publicationDate": "2021-05-01", "place": "Manchester, UK", "contributions": [{"fullName": "Brit Ross Winthereik", "contributionType": "AUTHOR", "mainContribution": true, "contributionOrdinal": 3}, {"fullName": "James Maguire", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 1}, {"fullName": "Laura Watts", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 2}], "imprint": {"publisher": {"publisherName": "Mattering Press", "publisherId": "17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}], "__typename": "Institution"}
{"__typename": "Institution", "institutionId": "194614ac-d189-4a74-8bf4-74c0c9de4a81", "institutionName": "The Danish Independent Research Council", "institutionDoi": null, "fundings": [{"grantNumber": "0602-02551B", "program": "FSE", "projectName": "Marine Renewable Energy as Alien", "projectShortname": "Alien Energy", "jurisdiction": "DK", "institutionId": "194614ac-d189-4a74-8bf4-74c0c9de4a81", "work": {"workId": "95e15115-4009-4cb0-8824-011038e3c116", "fullTitle": "Energy Worlds: In Experiment", "doi": "https://doi.org/10.28938/9781912729098", "publicationDate": "2021-05-01", "place": "Manchester, UK", "contributions": [{"fullName": "Dominic Boyer", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 20}, {"fullName": "M\u00f3nica Amador-Jim\u00e9nez", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 13}, {"fullName": "Noortje Marres", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 14}, {"fullName": "Cymene Howe", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 15}, {"fullName": "Jamie Cross", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 18}, {"fullName": "Simone Almond Abram", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 19}, {"fullName": "Ann-Sofie Kall", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 4}, {"fullName": "Rebecca Ford", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 5}, {"fullName": "Lea Schick", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 6}, {"fullName": "Endre D\u00e1nyi", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 7}, {"fullName": "Michaela Spencer", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 8}, {"fullName": "Hannah Knox", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 9}, {"fullName": "Andrea Ballestero", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 10}, {"fullName": "Stefan Helmreich", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 11}, {"fullName": "Damian O\u2019Doherty", "contributionType": "AUTHOR", "mainContribution": false, "contributionOrdinal": 12}, {"fullName": "Laura Watts", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 2}, {"fullName": "Brit Ross Winthereik", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 3}, {"fullName": "James Maguire", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 1}, {"fullName": "Neil Ford", "contributionType": "ILLUSTRATOR", "mainContribution": false, "contributionOrdinal": 16}, {"fullName": "Rob Jones", "contributionType": "CONTRIBUTIONS_BY", "mainContribution": false, "contributionOrdinal": 17}], "imprint": {"publisher": {"publisherName": "Mattering Press", "publisherId": "17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}], "affiliations": []}

0 comments on commit 0bb4acd

Please sign in to comment.