-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes citation key generation when authors list has "and others" at t… #9703
Conversation
edfdcbc
to
a47d68a
Compare
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.
from my side this looks good
Looks good codewise to me too, thank you very much. Please add now a changelog entry, shorten the PR title a little bit so it fits in the char limit of github and check the checklist in the PR description. Then we can merge! |
It just came into my.mind that BibTeX uses "+" to indicate "and others". For instance at the LNI stye / authorsalpha. Can that be done here, too? |
void generateKeyCorrectKeyWithAndOthersAtTheEnd() { | ||
BibEntry entry = createABibEntryAuthor("Alexander Artemenko and others"); | ||
entry.setField(StandardField.YEAR, "2019"); | ||
assertEquals("Artemenko2019", generateKey(entry, "[auth][year]")); |
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 OK here.
We need another test with [authors]
and [authorsAlpha]
. -- They are roughly explained at https://docs.jabref.org/setup/citationkeypatterns#special-field-markers.
[authors]
->Artemenko+
[authorsAlpha]
->A+
(as far as I know. Can you setup a short Latex MWE to check?)
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.
Fixed in c8df469
(#9703)
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.
[authshort]: The last name if one author is given; the first character of up to three authors' last names if more than one author is given. A plus character is added, if there are more than three authors.
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.
Fixed in b107f0a
(#9703)
What's the status here? @koppor is this good now? |
My comments were not adressed yet. With my code proposals, it shold be easy to finalize the PR. Maybe you can to the follow up @Siedlerchr if it is too much for @morganteg for now? |
This PR is a follow up to #6300 (where @dextep probalby accidently added |
f66a109
to
eb50c41
Compare
…he end JabRef#626 Remove the statement "and others" at the end of authors list in order to generate a correct citation key.
eb50c41
to
c81e58e
Compare
…he end
Fixes JabRef#626
Remove the statement "and others" at the end of authors list in order to generate a correct citation key.
Compulsory checks