-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4639 from bozana/7135
pkp/pkp-lib#7135 Multiple author affiliations (Ror)
- Loading branch information
Showing
24 changed files
with
155 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* @defgroup api_v1_rors Ror API requests | ||
*/ | ||
|
||
/** | ||
* @file api/v1/rors/index.php | ||
* | ||
* Copyright (c) 2025 Simon Fraser University | ||
* Copyright (c) 2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @ingroup api_v1_rors | ||
* | ||
* @brief Handle API requests for rors. | ||
*/ | ||
|
||
return new \PKP\handler\APIHandler(new \PKP\API\v1\rors\PKPRorController()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* @file cypress/tests/data/60-content/CmontgomerieSubmission.cy.js | ||
* | ||
* Copyright (c) 2014-2021 Simon Fraser University | ||
* Copyright (c) 2000-2021 John Willinsky | ||
* Copyright (c) 2014-2025 Simon Fraser University | ||
* Copyright (c) 2000-2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
*/ | ||
|
@@ -28,7 +28,11 @@ describe('Data suite: Cmontgomerie', function() { | |
{ | ||
givenName: {en: 'Mark'}, | ||
familyName: {en: 'Irvine'}, | ||
affiliation: {en: 'University of Victoria'}, | ||
affiliations: [ | ||
{ | ||
name: {en: 'University of Victoria'} | ||
} | ||
], | ||
email: '[email protected]', | ||
country: 'CA', | ||
userGroupId: Cypress.env('authorUserGroupId') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* @file cypress/tests/data/60-content/EostromSubmission.cy.js | ||
* | ||
* Copyright (c) 2014-2021 Simon Fraser University | ||
* Copyright (c) 2000-2021 John Willinsky | ||
* Copyright (c) 2014-2025 Simon Fraser University | ||
* Copyright (c) 2000-2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
*/ | ||
|
@@ -24,7 +24,11 @@ describe('Data suite tests', function() { | |
{ | ||
givenName: {en: 'Frank'}, | ||
familyName: {en: 'van Laerhoven'}, | ||
affiliation: {en: 'Indiana University'}, | ||
affiliations: [ | ||
{ | ||
name: {en: 'Indiana University'} | ||
} | ||
], | ||
email: '[email protected]', | ||
country: 'US', | ||
userGroupId: Cypress.env('authorUserGroupId') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* @file cypress/tests/data/60-content/KalkhafajiSubmission.cy.js | ||
* | ||
* Copyright (c) 2014-2021 Simon Fraser University | ||
* Copyright (c) 2000-2021 John Willinsky | ||
* Copyright (c) 2014-2025 Simon Fraser University | ||
* Copyright (c) 2000-2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
*/ | ||
|
@@ -25,7 +25,11 @@ describe('Data suite tests', function() { | |
{ | ||
givenName: {en: 'Margaret'}, | ||
familyName: {en: 'Morse'}, | ||
affiliation: {en: 'Stanford University'}, | ||
affiliations: [ | ||
{ | ||
name: {en: 'Stanford University'} | ||
} | ||
], | ||
email: '[email protected]', | ||
country: 'US', | ||
userGroupId: Cypress.env('authorUserGroupId') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule pkp
updated
51 files
Submodule ui-library
updated
12 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule jatsTemplate
updated
5 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ | |
/** | ||
* @file plugins/oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php | ||
* | ||
* Copyright (c) 2014-2021 Simon Fraser University | ||
* Copyright (c) 2000-2021 John Willinsky | ||
* Copyright (c) 2014-2025 Simon Fraser University | ||
* Copyright (c) 2000-2025 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class OAIMetadataFormat_DCTest | ||
|
@@ -102,7 +102,14 @@ public function testToXml() | |
$author = new Author(); | ||
$author->setGivenName('author-firstname', 'en'); | ||
$author->setFamilyName('author-lastname', 'en'); | ||
$author->setAffiliation('author-affiliation', 'en'); | ||
$author->setAffiliations([ | ||
Repo::affiliation()->newDataObject([ | ||
'id' => 1, | ||
'authorId' => 1, | ||
'ror' => 'https://ror.org/05ek4tb53', | ||
'name' => ['en' => 'author-affiliation'] | ||
]) | ||
]); | ||
$author->setEmail('[email protected]'); | ||
|
||
// Publication | ||
|
Oops, something went wrong.