Modify existing citation-style to sort multiple author-date citations

Hello,

I've tried different approaches (which were discussed years ago in this forum) to add a function to an existing citation style to modify the order of multiple in text author-date citations. Currently its just the order I've added the different citations eg. (Cole and Kendrick 1981; Abrol 2014; Hajek and Leger 1994) but I need them to be in ascending chronological order.
Sadly my trials didn't showed any results (haven't thought, this would be problematic).

Maybe anyone of you can help me with either a short instruction with which syntax and at which position changes need to be made or suggest me a citation style which already fits my needs and just needed to be adjusted according to et. al. minima and group delimiter (this is may easier?).

Thanks for your reply!
  • Details depend on your style but assuming this is Chicago author-date,
    <sort>
    <key macro="date-in-text"/>
    </sort>

    placed between the lines starting with <citation... and <layout... will work. For other styles, the macro name will be different, just checked what is used in the citation.
  • Hey adamsmith,

    your suggestion worked in some way: The citaions are now sorted, but alphabetical not chronological.

    Any ideas?

    Still thanks for your help!
  • which style are you starting with. Generally that seems odd since you´re clearly sorting by date.
  • edited July 25, 2018
    As you already supposed Chicago Manual of Style 17th edition (author date)

    I've entered your code via the Style Editor between the starting citation and layout (nearly to the end of the document) changed title and ID, saved the style and imported it in Zotero (worked fine). When the document, preferences are now set to the manually changed style any new citations will be sorted alphabetical, already existing ones will also be affected.

    This: (Araújo and Hughes 2016; Hajek and Leger 1994; Brey, Latge, and Prevost 1986; Beran et al. 2014)
    Is soted to be this way:
    (Araújo and Hughes 2016; Beran et al. 2014; Brey, Latge, and Prevost 1986; Hajek and Leger 1994)

    I'm completely with you, it's odd. Is there may an other function which need to be deactivated or something similar?

    The current surrounding code is (without starting <):

    /macro>
    citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" collapse="year">
    sort>
    key macro="date-in-text"/>
    /sort>
    layout prefix="(" suffix=")" delimiter="; ">
    group delimiter=", ">

    Is there a possibility to upload the file for troubleshooting?

    Still thankful for your time!
  • https://gist.github.com/, secretaria gist, post link here :)
  • github now requires registration for this :(
    Instead, you can use https://hastebin.com/ and press the page with the plus sign to create the document, then paste URL here.
  • Okay, so that style you pasted looks like it is sorting by year for the in text citations and by author, then year, then title, for the bibliography. Is that not the case for you? Can you verify it is this version that you have installed? If you are using the Word add-in, try switching to a different style and back.
  • This would be the way of sorting I'm loking for. Sadly this isn't the case. The in text citations are sorted by autor alphabetical. The text I've posted is copied directly out of the installed style without any changes. The only verification I can give you is a promise, I wouldn't write and take up your and my time if this would work properly. Double and triple checked every step.

    This citation style: American Psychological Association 6th edition (curriculum vitae, sorted by descending date) does sort by descending date properly, so may its the easiest to suggest an already existing style that is similar to Chicago and is sorting the in text citations by date?

    Still thanks to anyone who is trying to solve this odd problem.

    Btw: I'm Using Zotero version 5.0.54
    Microsoft Office Word 2007 (12.0.6612.1000) SP3


  • You've tried this in a new document?

    For existing styles, try
    Ecology and Society or
    Journal of Product Innovation Management
  • edited July 26, 2018
    Tried both, a new and an existing document. Once set the preferences first, once changed it from another, different variations of this in different documents.
    I don't have any clue.

    Journal of Product Innovation Management works fine for me, thanks. Ecology and Society generates some weird structures in the biblography like:
    Page in N. Wilding, N. M. Collins, P. M. Hammond, and J. F. Webber, editors. Insect-fungus interactions.
    What is page supposed to predicate? and why is there an "in" (italic) in front of the editors which aren't named after the Title? But these are other points which dont need to be discussed here.

    I'm still confused, why the manual modifications doesn't work, but nevertheless thanks a lot for your help. If there is a solution to this weird problem I would like to be updated!
Sign In or Register to comment.