Editor name instead of author name in BibLaTex key - Export problem?!
Hey,
I am refering to my question already posted on tex.stackexchange.com
http://tex.stackexchange.com/questions/147238/editor-name-instead-of-author-name-in-biblatex-key-zotero-export-problem
I am using Zotero v4.0.15 for exporting references into the BibLatex format.
I defined citeKeyFormat in BibLaTeX.js as following:
var citeKeyFormat = "%a%y";
However, inbook entries get usually the book's first editor name as part of the key assigned.
@inbook{zedeck2011,
title = {Proactive work behavior: Forward-thinking and change-oriented action in organizations.},
pages = {567-598},
booktitle = {{APA} handbook of industrial and organizational psychology, Vol 2: Selecting and developing members for the organization},
publisher = {American Psychological Association},
author = {Bindl, Uta K. and Parker, Sharon K.},
editor = {Zedeck, Sheldon},
date = {2011}
}
Instead of zedeck2011 the correct key should be bindl2011.
Am I doing something wrong? Is this a bug in Zotero? Is there a work around?
I am refering to my question already posted on tex.stackexchange.com
http://tex.stackexchange.com/questions/147238/editor-name-instead-of-author-name-in-biblatex-key-zotero-export-problem
I am using Zotero v4.0.15 for exporting references into the BibLatex format.
I defined citeKeyFormat in BibLaTeX.js as following:
var citeKeyFormat = "%a%y";
However, inbook entries get usually the book's first editor name as part of the key assigned.
@inbook{zedeck2011,
title = {Proactive work behavior: Forward-thinking and change-oriented action in organizations.},
pages = {567-598},
booktitle = {{APA} handbook of industrial and organizational psychology, Vol 2: Selecting and developing members for the organization},
publisher = {American Psychological Association},
author = {Bindl, Uta K. and Parker, Sharon K.},
editor = {Zedeck, Sheldon},
date = {2011}
}
Instead of zedeck2011 the correct key should be bindl2011.
Am I doing something wrong? Is this a bug in Zotero? Is there a work around?
That could probably be fixed - but I'm always very hesitant to change anything that affects citekeys since many people just rely on the automatically created keys and that messes with their documents.
The workaround would be to move the editor down by clicking on the "Editor" label in Zotero and select "move down".
Although I understand the resistance to change the key generation mechanism I still think this is a bug.
The BibLaTex.js defines in the comments that "%a" stands for the first AUTHOR's surname - not the first EDITOR's surname:
//%a = first author surname
//%y = year
//%t = first word of title
Those are different fields.
To be clear - if we started from scratch, I'd definitely use the first author in the key, this is just about changing it now that's been using the first listed creator for years.
I have to say, I'm very surprised by this decision of leaving the bug, since changing to the proper behavior would only affect people who after having written document with the bad cite keys, need to re edit them, and produce the pdfs again. While they re-edit their document, they can probably fix a few broken refs.
But for newcomers and people who write new documents, it does more harm, since they have to check for every ref they want to cite if it's a buggy one or not, and then either go through the process of fixing the order between authors and editors, or deal with the fact that it is not consistent, and having to remember which refs have the bug.
An example that reproduces the bug: when adding this paper to Zotero, and then exporting it, the citekey is hutchison_heat_2004 when it should be bai_heat_2004.
https://link.springer.com/content/pdf/10.1007/978-3-540-27868-9_20.pdf
Tell me what you think.
Thanks !
You can look at the BetterBibTeX add-on for more BibTex and citekey customizability all around.
If you don't want to use BBT, you can also force Zotero to use a citekey of your own choosing by adding
Citation Key: bai_heat_2004
to theextra
field.