Mendeley: et al problem

Hi everyone!

I have done new *.csl, but here is one problem with et al.

(Edited)

I need when quantity of authors is <4 the first author is used at beginning:
Author1. Article / Author1, Author2 // Journal. - Year. - Vol., No. - Pages.

when quantity of authors is 4 and more no author is used at beginning:
Article / Author1, Author2, Author3 et al // Journal. - Year. - Vol., No. - Pages.

(Edited)

For example in 1st case:

1. Gima K. Ionic Current Basis of Electrocardiographic Waveforms: A Model Study / K. Gima, Y. Rudy // Circulation Research. — 2002. — Vol. 90. — P. 889–896.

In 2nd case:

1. Molecular cloning, expression and potential functions of the human proteinase-activated receptor-2 / S. K. Bo, W. Kong, D. Bro et al // Biochem. J. — 1996. — Vol. 314. — P. 1009–1016.

I realized this way:

<macro name="author_beginning">
<names variable="author">
<name et-al-min="4" et-al-use-first="0" name-as-sort-order="all" sort-separator=" " initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
</names>
</macro>
<macro name="author_middle">
<names variable="author">
<name et-al-min="4" et-al-use-first="3" initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
</names>
</macro>

<bibliography entry-spacing="0" second-field-align="flush">
<layout suffix=".">
<text variable="citation-number" suffix=". "/>
<group delimiter=". — ">
<group>
<group delimiter=". ">
<text macro="author_beginning"/>
<group delimiter=" / ">
<text macro="title"/>
<text macro="author_middle"/>
</group>
</group>
<text macro="type-number" prefix=": "/>
<text variable="container-title" form="short" prefix=" // "/>
<text macro="edition" prefix=". "/>
<text macro="editor-translator" prefix=" / "/>
</group>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="issued-year"/>
</group>
<text macro="locators"/>
<text macro="page"/>
</group>
</layout>
</bibliography>

Result in 1st case:

1. Gima K., Rudy Y. Ionic Current Basis of Electrocardiographic Waveforms: A Model Study / K. Gima, Y. Rudy // Circulation Research. — 2002. — Vol. 90. — P. 889–896.

In 2nd case:

1. Molecular cloning, expression and potential functions of the human proteinase-activated receptor-2 / S. K. Bo, W. Kong, D. Bro // Biochem. J. — 1996. — Vol. 314. — P. 1009–1016.

Help me plz. Any idea how to solve the problem?

Another problem is with the comma before et al. I need no comma before et al, but in CSL Specification:
With a single name (et-al-use-first="1"), the "et-al" term is preceded by a space (e.g. "Doe et al."). With multiple names, the "et-al" term is preceded by the name delimiter (e.g. "Doe, Smith, et al.").

Is it real to make "Doe, Smith et al."?
  • edited May 13, 2012
    This seems an odd requirement. Is it specified in a formal citation manual?

    What results are you getting? I would guess that et-al-use-first="0" would disable et-al truncation, but I'm not sure.

    (Edit: sorry, I misread. Post to follow.)
  • could you post the whole style to gist.github.com or pastebin.com so we can take a look?
    According to specs this should work, but it obviously wasn't intended to be used this way so this likely has never been tested.

    As for the other issue - csl 1.0.1 will have an delimiter-precedes-et-al option that you can set to true or false. While we won't currently accept 1.0.1 styles for the repository, they should work with the processor version included in Mendeley (they do with Zotero) so you can make this work. We're hoping to release 1.0.1 relatively soon.
  • Let's start by making sure your style is valid. Please paste it into http://gist.github.com/, save it as a Public Gist, and post the URL from the address bar back here.
  • This was indeed a small bug in the processor. I've fixed the fault, and the revised version will appear in a future release of Zotero.
  • (and, presumably, Mendeley, though more time tends to pass until they take up new processor versions).
  • edited May 13, 2012
    I just found the topic with the similar problem of printing the first-listed name of an author under particular conditions:
    http://forums.zotero.org/discussion/9141/display-only-the-first-author-in-a-homemade-citation-style/

    Hope solution will come in CSL 1.0.1. It is a problem for Ukrainian, Russian and Belorussian scintists.
  • printing the first-listed name of an author under particular conditions
    The processor can do this. If you set both et-al-min and et-al-use-first to "1" in the first position, and to a normal (higher) value in the second position, you should get the expected result (if I remember correctly, and I may not -- you'll have to give it a try).
  • edited May 13, 2012
    Strange, but if i use:
    <macro name="author_middle">
    <names variable="author">
    <name et-al-min="4" et-al-use-first="3" initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
    </names>
    </macro>
    <macro name="author_first">
    <names variable="author">
    <name et-al-min="1" et-al-use-first="1" name-as-sort-order="all" sort-separator=" " initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
    </names>
    </macro>

    I got:
    Author1. Article / Author2 (???) // Journal. - Year. - Vol., No. - Pages.

    For exmaple:
    1. Gima K. Ionic Current Basis of Electrocardiographic Waveforms: A Model Study / Y. Rudy // Circulation Research. — 2002. — Vol. 90. — P. 889–896.

    Moreover, I need a list of authors in two places: at the beginning of bibliograohy and after article name. When the quantity of authors is 4 and more I need a list of authors with et al in the middle and no list of authors at the beginning of bibliography.

    Maybe I`m doing smth wrong?
  • edited May 13, 2012
    That is a strange result, but that's not what that syntax is intended to do. I seem to have misunderstood your requirement, in any case. I don't understand what you mean by this:
    printing the first-listed name of an author under particular conditions
    If by this you just mean the original use case that started the thread, then ignore the point about et-al-min="1"/et-al-use-first="1". You just need to wait for the new processor version to come out in Zotero (or Mendeley), and your original approach should work.
Sign In or Register to comment.