-
Notifications
You must be signed in to change notification settings - Fork 75
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
👯♀️ Add collaborations to Contributor type #1038
Conversation
if (value === undefined) return undefined; | ||
if (inputAff && Object.keys(inputAff).length > Object.keys(value).length) { |
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 is a nice little check that says "Your input looks more like an affiliation than a person."
@@ -134,6 +134,33 @@ cases: | |||
family: Name | |||
email: example@example.com | |||
corresponding: false | |||
- title: No email is corresponding if first is false |
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.
I noticed this behaviour and wanted to raise it:
Is it intentional that specifying corresponding: false
on one author, prevents any other author from implicitly getting the corresponding: true
flag?
I can see arguments either way:
(Yes, to the above question): the user knows about the corresponding
flag, as they used it on one of their authors. If they did want a corresponding author, they would have known to add it.
(No, to the above question): we should always try to have a corresponding author where possible.
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.
Lets make the change! And update this test case.
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.
Updated!
783fa57
to
94dd6a4
Compare
82b2b30
to
066a924
Compare
Now, in addition to being a
Person
, anyContributor
in myst frontmatter may be a "collaboration" - that is, anAffiliation
withcollaboration: true
. The logic to determine if a user-specified contributor is a person or a collaboration relies on checking thecollaboration
field - iftrue
, it is a collaboration and validated as such; iffalsy
it is a person.This addresses a point in #1009