-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple author affiliations #10460
base: main
Are you sure you want to change the base?
Multiple author affiliations #10460
Conversation
Hi, Some notes.
|
Hi @bozana. This PR is ready for review. Thanks. |
…iYucel/pkp-lib into multiple-author-affiliations
Hi @GaziYucel, I am still reviewing the code and would also like to test it locally (also to understand some things better) but I wanted to already suggest something regarding the native import/export: |
Hi @GaziYucel, |
Hi @GaziYucel, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @GaziYucel, I left some comments.
Because we decided not to copy ROR names to author_affiliation_settings table some things will change here, so I can take a look once that is done...
About a few things I would maybe also need to think a little bit more, but I left a comment -- maybe you would immediately have an idea...
And because I have not taken a look at the OJS PR yet i.e. I would need some time to see how such affiliations need to be exported into different formats, I will probably first then know what Affiliation::getLocalized... function are needed...
So I am already submitting this comments so that you can eventually already integrate some of them when working on the new version without copying...
I am wondering if we should keep this code version in case Alec has good arguments that we should proceed with copying -- because he has not said anything yet... although I do not think it will be the case...
Thanks a lot for this great work!
* | ||
* @return void | ||
*/ | ||
public function setAffiliationsFromString(string $affiliationName, string $locale): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function will maybe not be needed when we implement the native import/export with separate elements for each author affiliation
Hi @bozana I had to remove Repo::affiliation()->saveAffiliations(..) from Repo::author()->dao->insert(..) and Repo::author()->dao->update(...) for this. I added Repo::affiliation()->saveAffiliations(..) to classes where the insert and update are called. Otherwise I can't check if an author exists. To wrap up, I have done all your notes of your review. What's left now is the no-copy of ror names. I will make a copy of this branch in my fork, to have a backup. After the copy, I will implement the no-copy in the current branch/PR. |
Related issues:
Related pull requests: