pb of disambiguation with different type
Hello,
I have a problem with "disambiguate-add-year-suffix"
I have two different sources with the same author and the same date, but one is an article and the other is a thesis.
when I want to cite both, there is no "a" and "b" added after the date.
note that I don't have any problem for others disambiguation of two articles with same author and same date.
thanks for helping
my code is:
<citation disambiguate-add-year-suffix="true" collapse="year-suffix" disambiguate-add-givenname="true">
<sort>
<key macro="date-cit"/>
<key macro="author-short"/>
</sort>
<layout prefix="" suffix="" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="date-cit"/>
</group>
</layout>
</citation>
I have a problem with "disambiguate-add-year-suffix"
I have two different sources with the same author and the same date, but one is an article and the other is a thesis.
when I want to cite both, there is no "a" and "b" added after the date.
note that I don't have any problem for others disambiguation of two articles with same author and same date.
thanks for helping
my code is:
<citation disambiguate-add-year-suffix="true" collapse="year-suffix" disambiguate-add-givenname="true">
<sort>
<key macro="date-cit"/>
<key macro="author-short"/>
</sort>
<layout prefix="" suffix="" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="date-cit"/>
</group>
</layout>
</citation>
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
Several things could be causing year-suffix disambiguation to fail in your style. There might be a missing explicit year-suffix variable for that cite form. The form for Thesis might be such that with position="subsequent" it renders differently than other item types. Or the style might be invalid.
sorry for the macro. here they are
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" et-al-min="1" name-as-sort-order="all" initialize-with=". " sort-separator=" "/>
</names>
</macro>
<macro name="date-cit">
<date variable="issued" font-weight="normal">
<date-part name="year" font-weight="normal"/>
</date>
</macro>
when i want to put both source together, there is this error:
(Ouazi 2004, [CSL STYLE ERROR: reference with no printed form.])
concerning your suggestion:
- Sorry but I don't understand what you mean by "explicit year-suffix variable". in other cases of date disambiguation, the processor put "a" "b" (by default y think). where should I mention this variable?
- i try to change the type of the source form thesis to some others and it does not work anymore. i don't want to use the "article" type because i want to distinguish both in the final library. do you know a type different from "revue article" i can try which do not have this "subsequent problem?"
- I wrote this style from one in CSL 1.0. it's very short and simple so maybe I can copy it full in a next post and you can tell me if these is a pb of validity or not...
thank you again
In a test, the style provides year-suffixes on a pair of items with type "thesis" and "article-journal". It seems to work fine as far as the processor is concerned. I can't see anything in the code that would cause it to fail.
Can anyone else make the style fail to disambiguate, against a Thesis and a Journal Article with the same author and year?
the problem only occurs if one source has only one author and the other source has more than one author.
since i don't want to use "disambiguate-add-names", i added a second "fake" name to the first source, and it works.
I have to delete this fake name in the final bibliography but it does not append a lot of time so it's ok.
if you have another solution, i would be happy, but it's ok for me now.
thanks a lot for helping
https://gist.github.com/fbennett/5354563
I've added a proper ID. The ID you had in there before was only the stub URL of the Zotero styles repository. You need something unique, to assure that it won't be overwritten by other styles.
Give it a try.
http://citationstyles.org/downloads/specification.html#name
i'll do that
have a good day
yoan