CSL Names variable substitute prevents names variable in other places, BibTex, only editors

I am not sure if this is expected behavior. When I have a source with only editors (no authors) and try to convert it to a bibtex citation with "BibTeX generic citation style" it omits the editors in the citation. Maybe because if you substitute something (in this case the author in the cite key of the BibTex), then you don't want to repeat the substitution field (names variable="editor"). But in this case I need both.

See https://zbib.org/c2f3b6f6524746e695b39b4c6b55ac74 or use ISBN 9780262043380 in Zotero or ZBIB.

I don't think this is just a problem with this specific style. If I removed the substitute in the CSL the editors would show up in the citation.
  • Yes, that's intended behavior of CSL names/substitute for exactly the reason you say.
    Someone would need to update that style -- you can work around it by using choose/if instead of substitute, it's just lengthier.
    We (that is: both Zotero and CSL) don't particularly love having the CSL BibTeX style for that reason -- CSL isn't designed for metadata export but for human-readable citations -- but some people really want it as a CSL option. The preferred way to get BibTeX out of Zotero (as well as Zbib) is dedicated metadata export and if you go to your example, click the button next to copy to clipboard and download Bibtex, you do get the editors in both citekey and metadata.
Sign In or Register to comment.