Using op. cit. in a style
Hello
i am quite new to zotero, xml and csl...
i'am trying to edit my own style and reach a point where i am trying to deal with "ibid"...
the fact is i need to replace "ibid" by "op.cit." in italic....
i tried something like :
<else-if position="ibid">
<text term="op. cit." font-style="italic" suffix="."/>
</else-if>
but nothing happen !
could somebody help me ?
i am quite new to zotero, xml and csl...
i'am trying to edit my own style and reach a point where i am trying to deal with "ibid"...
the fact is i need to replace "ibid" by "op.cit." in italic....
i tried something like :
<else-if position="ibid">
<text term="op. cit." font-style="italic" suffix="."/>
</else-if>
but nothing happen !
could somebody help me ?
Second, and this is just me ranting: it's an evil, heinous, thing that is hostile to readers, and has no place in the 21st century. Don't use it unless you really, really have to.
168 div {
169 cs-terms =
170
171 ## Miscellaneous Terms
172 "accessed"
173 | "anonymous"
174 | "and"
175 | "and others"
176 | "at"
177 | "et-al"
178 | "forthcoming"
179 | "from"
180 | "in press"
181 | "ibid"
182 | "in"
183 | "no date"
184 | "references"
185 | "retrieved"
186 | "letter"
187 | "interview"
188 | "online"
189 | "cited"
190 | "edition"
191 | "internet"
192 | "presented at"
(From: http://xbiblio.svn.sourceforge.net/viewvc/xbiblio/csl/schema/trunk/csl.rnc?view=markup)
If one of those is your op.cit., then try inserting the appropriate term from the list above, and your locale should use the appropriate term for your language in your final output automatically.
If nothing else works, you could just sneak in the "op.cit." in a suffix or prefix, maybe?
Keep in mind, I'm still trying to figure out CSL as well, so this is only meant to give you ideas on what to try, as I could be completely and totally wrong ;-)
If you look at line 439 of the schema, you'll see this:
## adds the text in the value field. use sparingly.
## when dealing with localizable text, <text term="(term)"/> should be
## used, even if this means defining a new term.
attribute value { text })
So in this case, you use the "value" attribute for non-standardized terms. Or, you can add the term definition itself to the style.
I suppose I could consider adding op cit, but as you can see, I have a rather extreme negative reaction against that idea ;-)
What I did : I modified the zotero.xpi by going into a file where the translations are. And at the place where I found "ibid" i put "op.cit." instead....
But i am not too happy with that...
Bdarcus i didn't understand your answer (sorry !). Would you be so kind to give me the exact writing ?
Is this something like that :
attribute opcit {op. cit.}
and where to put it ?
and what i am supposed to do to use it ? Is it like when we want to use ibid ?
that is to say :
<text term="opcit" font-style="italic" suffix=". "/>
Thanks a lot !
And again: ibid and op cit are totally different. Sorry; am busy these days.
Look at the documentation on the cs:text element. What that means is that you can do:
<text value="op. cit." font-style="italic" suffix=". "/>
I forgot to say it was working now. Thanks a lot