Style Request: Harvard style for Cardiff Uni - help with uploading

I've have modified the style Harvard - adapted for Leeds Met and renamed it Harvard - adpated for Cardiff Uni and would like to upload it to Zotero. I have looked at the instructions on the styles page but am still clueless, could someone please help. I really need to get this style on the Zotero list for the start of semester. As it will be used for teaching.

The coding is below:

<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">
<info>
<title>Harvard - adapted for Cardiff Uni (dev)</title>
<id>http://www.zotero.org/styles/harvard-Cardiff-Uni</id>;
<link href="http://www.zotero.org/styles/harvard-Cardiff-Uni"/>
<author>
<name>Zoe young</name>
<uri></uri>
</author>
<category term="author-date"/>
<category term="generic-base"/>
<updated>2009-02-06T18:22:33+00:00</updated>
<summary>The Harvard author-date style - adapted for Cardiff Uni</summary>
<link href="http://www.cardiff.ac.uk/insrv/resources/guides/inf057.pdf" rel="documentation"/>
</info>
<macro name="editor">
<names variable="editor" delimiter=", ">
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with=". " delimiter=", "/>
<label form="short" prefix=" " text-case="lowercase" suffix="."/>
</names>
</macro>
<macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first"/>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
<label form="short" prefix=" " suffix="." text-case="lowercase"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name name-as-sort-order="all" form="short" and="text" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="access">
<group>
<text value="Available at: "/>
<text variable="URL" prefix="" suffix=""/>
<group prefix=" [" suffix="]">
<text value="Accessed:" text-case="capitalize-first" suffix=" "/>

<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</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"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="pages">
<group>
<label variable="page" form="short" include-period="true" suffix=" "/>
<text variable="page"/>
</group>
</macro>
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="disambiguate-add-names" value="true"/>
<option name="disambiguate-add-givenname" value="true"/>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
<group>
<label variable="locator" suffix="." form="short"/>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
<bibliography>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="hanging-indent" value="false"/>
<sort>
<key macro="author"/>
<key variable="title"/>
</sort>
<layout>
<text macro="author"/>
<date variable="issued" prefix=" " suffix=".">
<date-part name="year"/>
</date>
<choose>
<if type="book">
<group prefix=" " delimiter=". " suffix=".">
<text macro="title"/>
<text macro="edition"/>
<text macro="editor"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter">
<text macro="title" prefix=" " suffix="."/>
<group class="container" prefix=" " delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor"/>
<text variable="container-title" font-style="italic" suffix="."/>
<text variable="collection-title" suffix="."/>
<text macro="edition"/>
<group suffix="." delimiter=", ">
<text macro="publisher" />
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="thesis">
<group prefix=" " delimiter=". " suffix=".">
<text macro="title"/>
<text macro="edition"/>
<text variable="genre"/>
<text macro="publisher"/>
</group>
</else-if>
<else-if type="webpage">
<group prefix=" " suffix=".">
<text macro="title" suffix=" [Online]."/>
<text macro="edition"/>
<text prefix=" " macro="access" suffix="."/>
</group>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor" prefix=" "/>
</group>
<group class="container" prefix=" " suffix=".">
<text variable="container-title" font-style="italic"/>
<group prefix=" ">
<text variable="volume"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<group prefix=", ">
<label variable="locator" suffix="." form="short"/>
<text macro="pages"/>

</group>
<group prefix=". ">
<text prefix=" " macro="access" suffix="."/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
  • As you said, you will find instructions on how to do this on the style page. Now theese instructions might be somewhat cryptic if you are not familiar with development tiools on the Internet.

    You might find theese two articles calirying:
    http://www.zotero.org/support/dev/start
    http://www.zotero.org/support/dev/creating_citation_styles

    As mentioned there you need to upload your .csl file using Trac or SVN. Trac is probably the best option for you, as it is easier in design. I have never done this myself for zotero, but I hope other people can be of assistance.

    A second option would be to put your .csl file on a webpage, just to get it distributed to your students. Then students can download the .csl after installing zotero, and install it that way. It is supposed to import by just clicking on it, I suppose.

    Thank you very much for providing this adapted style. I will use it for helping a friend of mine with her teaching.

    ;)Frode
  • zoey - don't worry about it - I'll do this tonight.
    Actually, you need to use SVN to actually get the style onto the Zotero page. While that's perfectly doable, it's a bit overkill if you're only going to use it once.h
  • OK it's up. should show up soon.
  • Thanks a lot Adam. This makes life easier for students at Cardiff University. Including my friend who is writing her Masters degree at Cardiff.

    Hopefully the style adhers to the style guidelines. I am not proficient in XML, and not a librarian, so I will not be able to judge the output of in this respect.

    Is there some mechanism for testing adherence to the style guidelines? The syle guidelines for Cardif are aveilable at
    http://www.cardiff.ac.uk/insrv/resources/guides/inf057.pdf
    The citing tutorial for Cardiff might also be of interest:
    https://ilrb.cf.ac.uk/citingreferences/tutorial/index.html

    There seems to be different guides for the different schools and departments, but I am not able to tell if there are any real differences in the actual styles.

    ;)Frode
  • since csl is just a way to codify style guidelines, no, there is no technical way to test if a Zotero style conforms to a styleguide.
    Testing this "manually", though, doesn't require any special abilites:
    You just look at the style guide and compare it with output from Zotero and check if they are the same.
  • Thank you so much for uploading this for me adam.

    As an additional comment to Frode and others who use this style, i am a Subject librarian at Cardiff University and worked to create the style using our style guidelines and got it checked by other library colleagues so if you do have any questions or queries please contact your Cardiff University Subject Librarian.
Sign In or Register to comment.