Fixes citation key generation when authors list has "and others" at t…#9703
Conversation
edfdcbc to
a47d68a
Compare
Siedlerchr
left a comment
There was a problem hiding this comment.
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.
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.
[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.
|
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.