Help with several aspects of this style

Hi,

I have been using a style for a while now which I downloaded and edited according to my university's citation/bibliography requirements. There are some aspects, however, which are displaying incorrectly. These are:

(1) In the bibliography, surnames like 'van der Auwera' are listed under A. I would like them to be under V.

(2) Publications with several authors are listed with ellipsis between the first and last author in the bibliography, e.g. Adams, A. ... Henderson, B.

(3) Publications by the same author are not listed in publication order.

(4) There is no space between initials e.g. 'Baker, C.L.' instead of 'Baker, C. L.'.

(5) It is displaying (eds.) instead of (eds), but I'd like to keep (ed.) the way it is.

(6) I'd ideally like in-text citations by the same author to be listed like this: (Adams 2011a, b) instead of (Adams 2011a, 2011b).

Does anyone have any ideas on how to rectify some of these issues? Thanks ever so much for your help. Here's my style below in case it helps.

Claire

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
<title>CC based on Harvard Reference format 1</title>
<id>http://www.zotero.org/styles/cc-based-on-harvard-reference-format-1</id>;
<link href="http://www.zotero.org/styles/cc-based-on-harvard-reference-format-1" rel="self"/>
<link href="http://libweb.anglia.ac.uk/referencing/harvard.htm" rel="documentation"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</author>
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The Harvard author-date style</summary>
<updated>2014-05-19T15:03:34+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<macro name="editor">
<names variable="editor" delimiter=" ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" text-case="lowercase" prefix=" (" suffix=")"/>
</names>
</macro>
<macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true" suffix="."/>
</macro>
<macro name="author">
<names variable="author">
<name and="symbol" delimiter-precedes-last="never" et-al-use-last="true" initialize-with="." name-as-sort-order="all"/>
<label form="short" prefix=" " suffix="." text-case="lowercase" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if variable="URL"/>
</choose>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any">
<text variable="title" text-case="title" font-style="italic" suffix="."/>
</if>
<else>
<text variable="title" text-case="capitalize-first" prefix="'" suffix="'"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="pages">
<group>
<text variable="page" prefix=" "/>
</group>
</macro>
<citation et-al-min="3" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true">
<layout delimiter="; " prefix="(" suffix=")">
<group delimiter=": ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1">
<sort>
<key macro="author"/>
<key variable="date"/>
</sort>
<layout>
<text macro="author"/>
<date variable="issued" prefix=" " suffix=".">
<date-part name="year"/>
</date>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group delimiter=" " prefix=" " suffix=".">
<text macro="title"/>
<text macro="edition"/>
<text macro="editor"/>
</group>
<text prefix=" " suffix="." macro="publisher"/>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" " suffix="."/>
<group prefix=" " delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text macro="editor"/>
<text variable="container-title" text-case="title" font-style="italic" suffix="."/>
<text variable="collection-title" suffix="."/>
<text variable="event" suffix="."/>
<group delimiter="." suffix=".">
<text macro="publisher" prefix=" "/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="thesis">
<group prefix=" " suffix="." delimiter=". ">
<text macro="title"/>
<text variable="genre"/>
<text macro="publisher"/>
</group>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor" prefix=" "/>
</group>
<group prefix=" " suffix=".">
<text variable="container-title" strip-periods="true" font-style="italic"/>
<group prefix=" " suffix=":">
<text variable="volume" strip-periods="true"/>
</group>
<group prefix=" ">
<text variable="page"/>
</group>
</group>
</else>
</choose>
<text prefix=" " macro="access" suffix="."/>
</layout>
</bibliography>
</style>
  • 1) demote-non-dropping-particle="never"

    2) you are currently getting an elipsis or you want one? If the latter, what are the rules specifically?

    3) <sort>
    <key macro="author"/>
    <key macro="year-date"/>
    </sort>

    4) initialize-with=". "

    5) <locale>
    <terms>
    <term name="editor" form="short">
    <single>ed.</single>
    <multiple>eds.</multiple>
    </term>
    </terms>
    </locale>

    to be placed right after </info>

    6) <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year-suffix">

    These should all make sense pretty easily, let me know if there are any questions.
  • Thanks for your help and sorry it's taken me so long to reply. Re: question 2, I'm getting an ellipsis where I don't want it.
  • I've checked my style in the csl-validator.js (http://simonster.github.io/csl-validator.js/) and get the following warning:

    stdin:48:52: error: not well-formed (invalid token)
    error: invalid input

    Does this mean there's a problem with lines 48 to 52? (below)

    <name form="short" and="symbol" delimiter=", "delimiter-precedes-last="never" initialize-with=". "/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text macro="anon"/>
  • edited October 7, 2014
    The message means that there is a problem at line 48, character 52. There should be a space between delimiter-precedes-last and the preceding quotation mark.
  • Thanks fbennett! The only problem I'm still having is the ellipsis, e.g. Adams, A. ... Henderson, B. in the bibliography when there's multiple authors.

    Would someone be able to point me to the error in the style? Many thanks.
  • find and delete et-al-use-last="true"
  • Thank you! :)

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.