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>
  • It depends on what those macros expand into. The processor doesn't inspect the item type during disambiguation: it just generates the cites as it would do with position="subsequent", minus any formatting (italics, etc), and compares the strings.

    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.
  • Thank you for answering fast

    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
  • Copy& paste your style as a public gist on https://gist.github.com/ and post the link here.
  • https://gist.github.com/anonymous/5354214
  • edited April 10, 2013
    After changing "physic" to "physics" (a trivial fix, this wouldn't have affected operation of the style at all), the style validates.

    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?
  • It shouldn't make any difference, but I would remove the blank lines from the style. They shouldn't hurt anything, but you never know.
  • sorry for all the english mistakes, i'm french...

    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
  • Let's fix this right; you shouldn't need to fuss around to get correct output. Here is a copy with explicit year-suffix:

    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.
  • edited April 10, 2013
    since i don't want to use "disambiguate-add-names", i added a second "fake" name to the first source, and it works.
    Why not just add et-al-use-first and et-al-min attributes to the citation element, to limit the number of included names? It's described in the specification:

    http://citationstyles.org/downloads/specification.html#name
  • you are right that is also an idea.
    i'll do that
    have a good day
    yoan

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.

Sign In or Register to comment.