CSL chapter and entry-dictionary
I am experiencing some odd behaviour with 3.0.8 in Firefox for dictionary entries.
I thought that entry-dictionary should be generally classified as a chapter, but for some reason the following CSL is not working:
<choose>
<if type="chapter book" match="none">
<text macro="editor-translator"/>
</if>
</choose>
So I tried making it more explicit, using the following:
<choose>
<if type="entry-dictionary chapter book" match="none">
<text macro="editor-translator"/>
</if>
</choose>
In the end I have ended up with the following workaround:
<choose>
<if type="chapter book" match="none">
<choose>
<if type="entry-dictionary" match="none">
<text macro="editor-translator"/>
</if>
</choose>
</if>
</choose>
Any ideas what I'm doing wrong, or is this a bug in Zotero?
(Yes, this is for an assignment due in tomorrow... gremlins in the system!)
I thought that entry-dictionary should be generally classified as a chapter, but for some reason the following CSL is not working:
<choose>
<if type="chapter book" match="none">
<text macro="editor-translator"/>
</if>
</choose>
So I tried making it more explicit, using the following:
<choose>
<if type="entry-dictionary chapter book" match="none">
<text macro="editor-translator"/>
</if>
</choose>
In the end I have ended up with the following workaround:
<choose>
<if type="chapter book" match="none">
<choose>
<if type="entry-dictionary" match="none">
<text macro="editor-translator"/>
</if>
</choose>
</if>
</choose>
Any ideas what I'm doing wrong, or is this a bug in Zotero?
(Yes, this is for an assignment due in tomorrow... gremlins in the system!)
see a complete mapping here:
http://aurimasv.github.com/z2csl/typeMap.xml
Do we still have the old "chapter" fallback somewhere in the documentation? That's not the case anymore.
I've tested this and it should work like this:
<choose>
<if type="entry-dictionary chapter book" match="none">
<text macro="editor-translator"/>
</if>
</choose>
note that the test panel has, at least for me, been a little odd lately - it sometimes requires a "refresh" before changes in the csl go into effect.
Unfortunately both the testpanel and the real export bibliography option are not working on your example.
I'm finding the same bug occurs with Chicago Manual of Style (full note) from the Style Repository. Compare a dictionary entry with a journal article with a book section and note the oddity of the dictionary entry.
Dictionary entry using CMoS full note looks fine to me - what are you seeing?
Single Citations
Paul Barnett, ‘Opposition in Corinth’, JSNT 22 (1984): 3–17.
Paul Barnett, ‘Opponents of Paul’, ed. Gerald F. Hawthorne, Ralph P. Martin, and Daniel G. Reid, Dictionary of Paul and His Letters (Downers Grove, Ill: InterVarsity Press, 1993).
Paul Barnett, ‘Paul, Apologist to the Corinthians’, in Paul and the Corinthians: Studies on a Community in Conflict (FS Margaret Thrall), ed. Trevor J. Burke and J. Keith Elliott, NovTSup 109 (Leiden: Brill, 2003), 313–326.
Multi Citations (all with position "first")
Paul Barnett, ‘Opposition in Corinth’, JSNT 22 (1984): 3–17; Paul Barnett, ‘Opponents of Paul’, ed. Gerald F. Hawthorne, Ralph P. Martin, and Daniel G. Reid, Dictionary of Paul and His Letters (Downers Grove, Ill: InterVarsity Press, 1993); Paul Barnett, ‘Paul, Apologist to the Corinthians’, in Paul and the Corinthians: Studies on a Community in Conflict (FS Margaret Thrall), ed. Trevor J. Burke and J. Keith Elliott, NovTSup 109 (Leiden: Brill, 2003), 313–326.
Bibliography
Barnett, Paul. ‘Opponents of Paul’. Edited by Gerald F. Hawthorne, Ralph P. Martin, and Daniel G. Reid. Dictionary of Paul and His Letters. Downers Grove, Ill: InterVarsity Press, 1993.
———. ‘Opposition in Corinth’. JSNT 22 (1984): 3–17.
———. ‘Paul, Apologist to the Corinthians’. In Paul and the Corinthians: Studies on a Community in Conflict (FS Margaret Thrall), edited by Trevor J. Burke and J. Keith Elliott, 313–326. NovTSup 109. Leiden: Brill, 2003.
http://www.chicagomanualofstyle.org/16/ch14/ch14_sec247.html
if you have online access (that's 16th edition 14.247 if you have the manual).
What you have really look like book chapters, not dictionary entries in the bibliographic sense (yes, it's _called_ a dictionary, but it's really no different from a "handbook," e.g.)
http://pastebin.com/cbwWG6vM
Note how I've had to include the workaround I described above in order to manipulate dictionary entries. If I use your suggested code then the behavior changes. Any thoughts?
PS I'm in UK so will need to get some sleep soon!
The problem in your case is that you're editign a CSL 0.8.1 style.
Zotero auto-converts those to CSL 1.0 and I think that conversion might do something odd when you have both chapter and entry-dictionary in one if loop - it may just throw entry-dictionary out? - not sure.
Anyway, you can auto-upgrade valid csl 0.8.1. and that's strongly recommended, can't help you much with troubleshooting the old style:
http://citationstyles.org/downloads/upgrade-notes.html#updating-csl-0-8-styles