Disambiguate first name only when same year
Is there anyway to disambiguate between citations by providing the first name only when the year of the citation is the same?
What I mean is, right now if I choose to disambiguate first names my citations look like this:
(Brown, J. 2008) (Brown, J. 2005) (Brown, D. 2008)
I'd rather that the initial only appears when the year is the same so:
(Brown, J. 2008) (Brown 2005) (Brown, D. 2008)
Is this possible? (I am using my own custom citation style.)
What I mean is, right now if I choose to disambiguate first names my citations look like this:
(Brown, J. 2008) (Brown, J. 2005) (Brown, D. 2008)
I'd rather that the initial only appears when the year is the same so:
(Brown, J. 2008) (Brown 2005) (Brown, D. 2008)
Is this possible? (I am using my own custom citation style.)
http://citationstyles.org/downloads/specification.html#disambiguation
I'm using givenname-disambiguation-rule="by-cite".
If I have a John Brown citation (Brown 2008) then I add a Don Brown citation with the same year, the Don Brown citation comes up as (Brown, D. 2008). BUT the John Brown citation remains unchanged even after I refresh. I would have expected the John Brown citation to change to (Brown, J. 2008).
If, after adding both citations, I used the John Brown citation again, THEN it will appear as (Brown, J. 2008). BUT the original John Brown citation entered before the first Don Brown citation remain as (Brown 2008).
Is there some way to fix this? Am I missing something?
So this workaround is ok. But considering the number of users in my organisation and the length of our documents, fixing the bug would certainly be appreciated!
Zotero's word plugin has fairly recently been changed to only update citations that actually change - it sounds like there is something going wrong in the communication between plugin and csl processor.
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="XXXX" version="1.0"
demote-non-dropping-particle="sort-only">
What value is in the XXXX position?
I haven't validated it against the schema. In fact, I'm not quite sure what that means.
I created my custom style by adapting the University of South Australia 2011 style which happened to be closest to what I need. As it was publicly available I can only assume it was validated.
it would be helpful if you could make sure your style actually does validate.
Maybe its the security settings at my work?
I'll give it a go at home this evening.
Warning: Being lax about non-RNC Content-Type: text/plain
https://raw.github.com/citation-style-language/schema/v1.0/csl.rnc
Warning: Being lax about non-RNC Content-Type: text/plain
https://raw.github.com/citation-style-language/schema/v1.0/csl-terms.rnc
Warning: Being lax about non-RNC Content-Type: text/plain
https://raw.github.com/citation-style-language/schema/v1.0/csl-types.rnc
Warning: Being lax about non-RNC Content-Type: text/plain
https://raw.github.com/citation-style-language/schema/v1.0/csl-variables.rnc
Warning: Being lax about non-RNC Content-Type: text/plain
https://raw.github.com/citation-style-language/schema/v1.0/csl-categories.rnc
IO Error: Non-XML Content-Type: text/x-csl.
The new code is simpler, and should run slightly faster on documents that make heavy use of disambiguation.
(Edit: the updated processor [version 1.0.260] has been checked in.)
git://gist.github.com/1610792.git
Apologies for any messiness in the code. I am very new to programming.
<id>http://zotero.org/styles/productivity-commission</id>
There is also an unneeded (and invalid) label element around line 104, that can just be removed.
Upon upload, the document mimetype is set by the browser based on the file extension. text/x-csl refers to the .csl file extension and is not recognized as an xml type by Validator.nu Changing the file extension to .xml fixes this error (this would have to be reverted to .csl for Zotero of course)
Copy-pasting avoids this issue altogether.