-
-
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
Incorrect bibkey creation for >4 authors #11087
Comments
@umuen To run the newest development build you have run it first then allow it in settings under data protection and security (Make sure to pick the right one for your OS M1/m1 - arm64 suffix |
thanks for the info. I tested it and the issue is still there in the most recent build |
@Siedlerchr, it seems the issue is related to PR #9703.
However, I would like to know where this jabref/src/main/java/org/jabref/logic/citationkeypattern/BracketedPattern.java Lines 1039 to 1050 in 4432dcf
|
@umuen Thank you so much for your report. I checked the documentation at https://docs.jabref.org/setup/citationkeypatterns#author-related-field-markers. It reads
First, I thought, we should introduce Thus, we should change the logic to contain 4 letters. The only "exception" is "and others" - this is rendered as "+". Meaning:
Gets
(and not ABCo or something else weird stuff) |
@LoayGhreeb Typically
should lead to
but
should lead to
|
@umuen Could you give us a sample entry where this occured? |
Below is an example where it should give "GAHS2023jpcc" but gives "GAH2023jpcc". I would like to point out that the behaviour was correct up to some weeks/months ago (I am not sure up to when exactly), i.e., for greater equal 4 authors only the initials of the first authors are used (without a "+" or similar). This is how my large bibfile is structured and is used in citations in many documents. It would be most unfortunate if the behaviour remains changed. Thanks for looking into this. @Article{GAHS2023jpcc,
author = {Golomb, M. and Arndt, N. B. and Honnigfort, C. and Shakhayeva, B. and Ravoo, B. J. and Braunschweig, B.},
journal = {J. Phys. Chem. C},
title = {Molecular kinetics and wetting dynamics of self-assembled monolayers with fluorinated arylazopyrazoles},
year = {2023},
pages = {15316--15325},
volume = {127},
doi = {10.1021/acs.jpcc.3c02472},
} |
@LoayGhreeb May I assign you? I can also put that as small university project. |
I understand this, but where does the My question is not about the "and others" being replaced with '+'. In PR #9703, there are two changelog entries. The first one is:
This is what I'm asking about. Why is this done?
Sure. |
I see that, too. Think, this is a bug.
As discussed above. This is wrong. The result has to be "AB". Code needs to be fixed. |
It's simply a off-by-one error here. |
No. See org.jabref.logic.citationkeypattern.BracketedPatternTest#authIni4() Currently:
But it should be
|
Just to confirm, is this the correct for
|
Yes, indeed. Please no “+” in bibkey. For 4 or more authors, [authIni4] should just give the initial letters of the surnames of the first 4 authors.
This would bring back the previous behaviour as before the bug.
best regards
uwe
… On 26. Mar 2024, at 04:01, Loay Ghreeb ***@***.***> wrote:
Just to confirm, is this the correct for [authIni4]?
Arguments.of("Aac+", "Aachen and others"),
Arguments.of("ABCD", "Aachen and Berlin and Chemnitz and Düsseldorf and others"), // No need for the `+`?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I agree! @LoayGhreeb |
@umuen You can use the latest development version, the issue should be resolved. Also, if you are using |
perfect. works.
thanks
uwe
… On 27. Mar 2024, at 00:53, Loay Ghreeb ***@***.***> wrote:
@umuen You can use the latest development version, the issue should be resolved.
Also, if you are using and others, and the + sign is supposed to be used but it is not visible, open Preferences → Citation Key Generator → and remove the + from the "Remove the following characters" filed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
JabRef version
5.12 (latest release)
Operating system
macOS
Details on version and operating system
MacOS Ventura 13.6.5 (22G621)
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
When using the Citation Key Generator specification: [authIni4][year][journal:abbr:lower] it works as it should for 1, 2, 3 or 4 authors. However, if there are more than 4 authors it only uses the first THREE initials but not the first FOUR as it should. I was not able to check with the newest build as Apple does not allow me to open it (and I had to tick the boxes to be able to submit the report - sort of a catch 22)
Appendix
...
Log File
The text was updated successfully, but these errors were encountered: