resource type mapping is confusing
I have finally been able to get my csl to output bibliographies just as I want them. In particular, I was having problems getting report numbers and conference details to be displayed. While fiddling around, I noticed the following:
Resources of type "Report" are handled by
type="book"
and resources of type "Conference Paper" are handled by
type="chapter"
This is non-intuitive and a bit confusing. I think it should be documented somewhere, so as to make it easier to adapt citation styles to one's needs (or perhaps it is documented, and I didn't find it?)
Resources of type "Report" are handled by
type="book"
and resources of type "Conference Paper" are handled by
type="chapter"
This is non-intuitive and a bit confusing. I think it should be documented somewhere, so as to make it easier to adapt citation styles to one's needs (or perhaps it is documented, and I didn't find it?)
the csl documentation is still incomplete and you should feel free to contribute - it's in wiki format
http://www.zotero.org/support/dev/csl_syntax_summary
General rule: don't base formatting on types if you can avoid it.
where are the _default_ types defined?
chrome://zotero/content/xpcom/csl.js
Zotero.CSL.Item._fallbackTypeMap = {
book:"book",
bookSection:"chapter",
journalArticle:"article",
magazineArticle:"article",
newspaperArticle:"article",
thesis:"article",
encyclopediaArticle:"chapter",
dictionaryEntry:"chapter",
conferencePaper:"chapter",
letter:"article",
manuscript:"article",
interview:"article",
film:"book",
artwork:"book",
webpage:"article",
report:"book",
bill:"book",
case:"book",
hearing:"book",
patent:"article",
statute:"book",
email:"article",
map:"article",
blogPost:"article",
instantMessage:"article",
forumPost:"article",
audioRecording:"book",
presentation:"article",
videoRecording:"book",
tvBroadcast:"article",
radioBroadcast:"article",
podcast:"article",
computerProgram:"book"
And Bruce, while I understand what you are saying, you complain often enough about the craziness of citation style requirements for me to not have to tell you that many styles just aren't internally consistent enough to be able to forget about item types.
is the definitive mapping for both the Zotero type -> core CSL type mapping & the fallback mapping.
bdarcus: do you have a link to plans to change this feature. Obviously, some styles will need to be modified if items no longer have fallbacks.
and concerning the default type mapping: if you want to override the default you have to make sure that you handle the type you want before you handle the one to which it defaults to, in other words the order in which you go through the types is important. I think doing away with these defaults is a good idea, in particular as it's not clear what the defaults are.
EDIT: thanks for posting the list of fallback types
Might be worth thinking if there's some way to automatically adjust styles that might need it.
it gets even more confusing as I found out that in order to handle a "presentation", the _default_ mapping (Zotero.CSL.Item._fallbackTypeMap) to "article" does not work, but rather I have to use the type "speech", as is specified in Zotero.CSL.Item._optionalTypeMap.
Hopefully this will become easier to comprehend once those defaults are no longer used.