Different styles for a single item type
I am developing a Zotero citation style for my masters thesis at the University of Oslo. It is a pretty simple style for legal documents, articles and similar items. My problem/question is: Is it possible to have different citation styles for one Item type?
What I am trying to achieve is different styles for judgments (item type=case), depending on which court decided the case. For example, these are two cases I would like to cite:
Norwegian supreme court: Rt. 2008 s. 788 (Politihund)
International Court of Justice: Oil Platforms, Iran v United States, Judgment, Merits (1998) ICJ Rep 161.
I was hoping to be able to differentiate the two styles by their Reporter (containter-title). That, however, does not seem possible. In (psuedo-)csl what I am trying to do is something like this:
<macro name="dom">
<choose>
<if variable="container-title" match="ICJ Rep">
<text variable="title" />
<text variable="container-title" prefix=" " />
<text variable="page" prefix=" " />
<text variable="locator" prefix=" " />
</if>
<else-if variable="container-title" match="Rt.">
<text variable="volume" prefix=" " />
<text variable="page" prefix=" s. " />
<text variable="locator" prefix=" " />
<text variable="title" form="short" prefix="(" suffix=")" />
</else-if>
<else>
<text variable="title" />
</else>
</choose>
</macro>
Any suggestions? Or even a confirmation that this is impossible?
What I am trying to achieve is different styles for judgments (item type=case), depending on which court decided the case. For example, these are two cases I would like to cite:
Norwegian supreme court: Rt. 2008 s. 788 (Politihund)
International Court of Justice: Oil Platforms, Iran v United States, Judgment, Merits (1998) ICJ Rep 161.
I was hoping to be able to differentiate the two styles by their Reporter (containter-title). That, however, does not seem possible. In (psuedo-)csl what I am trying to do is something like this:
<macro name="dom">
<choose>
<if variable="container-title" match="ICJ Rep">
<text variable="title" />
<text variable="container-title" prefix=" " />
<text variable="page" prefix=" " />
<text variable="locator" prefix=" " />
</if>
<else-if variable="container-title" match="Rt.">
<text variable="volume" prefix=" " />
<text variable="page" prefix=" s. " />
<text variable="locator" prefix=" " />
<text variable="title" form="short" prefix="(" suffix=")" />
</else-if>
<else>
<text variable="title" />
</else>
</choose>
</macro>
Any suggestions? Or even a confirmation that this is impossible?
You can test for the presence of a variable, so if there is a field that you use for supreme court cases and not for other cours (or vice versa) that would work.
You don't actually have to use said variable - i.e. you could use the "extra" field and just write "SC" in all of the supreme court decisions and then do
<if variable="note">...
Edit: Of course, adamsmith is the go-to person on these things. Adamsmith's answer is essentially what you need to know.
PS: Is this feature on the roadmap for CSL? As for legal use it would probably be needed for proper citations across jurisdictions.
Have some good news for you, although it will take awhile to come on stream. Here are screenshots of French and American cases, generated in Zotero 2.1, both by the same style. They require discrimination similar to what you describe:
http://twitpic.com/29xjkm
http://twitpic.com/29ofes
The US cites set the case name in the title field. The French cites use the shortTitle field instead. The processor tests for "title", finds it empty in the French cites, and fills in with the short form for the case nickname (where used), which is not seen by the test for the variable.
In the Zotero UI, this requires a little extra adjustment to bring in some details for the cite from other fields, and spoof them into the title column in the display -- otherwise it will be empty, which makes editing in the word processor plugin, in particular, kind of awkward.
This should be available in Zotero 2.1. For now, a similar strategy may work in 2.0 (I haven't checked), but the title column would be empty.
For example, a legal article in Norway would typically cite from both norwegian case-law, as well as ICJ judgments, ECHR judments, swedish case-law and danish case-law.