Style Request:[Cambridge Archaeological Journal]

I am wondering is somebody can help me with this. I would like for Zotero to include the Cambridge Archaeological Journal citation style.

Using the CLS search by example no close match was identified.
I had no results looking in the style repository.
The link to CAJ style is: http://journals.cambridge.org/images/fileUpload/images/CAJ_ifc.pdf
  • if you're not finding anything via search by example you're using it wrong. You'd definitely get some match. See here for instructions:
    https://github.com/citation-style-editor/csl-editor/wiki/User-guide-for-the-CSL-Editor
    the key part is that you need to use the citation data in the box on the left. You can't just paste any citation you want.
  • as I say:
    "the key part is that you need to use the citation data in the box on the left. You can't just paste any citation you want."
  • HI Adam,
    I figured it out (thanks for the comments). I am editing in the visual CSL editor. I have a question how do I change the spaces between the authors name and the year of the pub? Thanks!
  • that depends on the style. You can do it either via suffix/prefix or with a group and delimiters.
    If you go to the "code editor" copy the code of the style and paste it somewhere I can look at it - patebin.com or gist.github.com (no registration required for either) I'd be able to tell you more.
  • Here it is:
    <?xml version="1.0" encoding="utf-8"?>
    <style class="in-text" version="1.0" and="symbol" et-al-min="3" et-al-use-first="1" demote-non-dropping-particle="sort-only" default-locale="en-US" xmlns="http://purl.org/net/xbiblio/csl">
    <info>
    <title>Cambridge Archaeological Journal</title>
    <id>http://www.zotero.org/styles/Cambridge Archaeological Journal</id>
    <link href="http://www.zotero.org/styles/frontiers" rel="self"/>
    <link href="http://www.frontiersin.org/about/AuthorGuidelines" rel="documentation"/>
    <author>
    <name>Marta Alfonso</name>
    <email>alfonsod@ksu.edu</email>
    </author>
    <author/>
    <contributor>
    <name>Julian Onions</name>
    <email>julian.onions@gmail.com</email>
    </contributor>
    <category citation-format="author-date"/>
    <category field="generic-base"/>
    <summary>Style for the Open Access Frontiers in ... Journals</summary>
    <updated>2013-05-15T17:15:59+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=", ">
    <label form="short" prefix=", " text-case="lowercase" suffix="." strip-periods="true"/>
    <name and="text" initialize-with=". " delimiter=", " prefix=" "/>
    </names>
    </macro>
    <macro name="author">
    <names variable="author">
    <name suffix=" " and="symbol" delimiter-precedes-last="always" et-al-min="18" et-al-use-first="19" initialize-with=". " name-as-sort-order="first"/>
    <label form="short" prefix=" " text-case="lowercase"/>
    <substitute>
    <names variable="editor"/>
    <text variable="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="author-short">
    <names variable="author">
    <name form="short" and="symbol" initialize-with=". "/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text variable="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="access">
    <choose>
    <if variable="URL">
    <text value="Available at:" suffix=" "/>
    <text variable="URL"/>
    <group prefix=" [" suffix="]">
    <text term="accessed" text-case="capitalize-first" suffix=" "/>
    <date variable="accessed">
    <date-part name="month" suffix=" "/>
    <date-part name="day" suffix=", "/>
    <date-part name="year"/>
    </date>
    </group>
    </if>
    </choose>
    </macro>
    <macro name="title">
    <choose>
    <if type="book">
    <text variable="title" font-style="italic" suffix="."/>
    </if>
    <else-if type="chapter">
    <text variable="title" quotes="true" suffix=","/>
    </else-if>
    <else>
    <text variable="title" display="block" prefix=" " suffix="."/>
    </else>
    </choose>
    </macro>
    <macro name="publisher">
    <group delimiter=": ">
    <text variable="publisher-place"/>
    <text variable="publisher"/>
    </group>
    </macro>
    <macro name="year-date">
    <date delimiter="" variable="issued" prefix=" ">
    <date-part name="year"/>
    </date>
    </macro>
    <macro name="edition">
    <choose>
    <if is-numeric="edition">
    <group delimiter=" ">
    <number variable="edition" form="ordinal"/>
    <text term="edition" form="short" suffix="." strip-periods="true"/>
    </group>
    </if>
    <else>
    <text variable="edition" suffix="."/>
    </else>
    </choose>
    </macro>
    <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year">
    <layout prefix="(" suffix=")" delimiter="; ">
    <group>
    <text macro="author-short" suffix=" "/>
    <text macro="year-date" text-case="sentence" strip-periods="false" prefix=" "/>
    <text variable="locator"/>
    </group>
    </layout>
    </citation>
    <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="10">
    <sort>
    <key macro="author"/>
    <key variable="title"/>
    </sort>
    <layout suffix=".">
    <text macro="author" text-case="capitalize-first" display="indent"/>
    <date date-parts="year" form="numeric" variable="issued" suffix=".">
    <date-part name="year"/>
    </date>
    <choose>
    <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
    <group delimiter=" " prefix=" ">
    <text macro="title"/>
    <text macro="edition"/>
    <text macro="editor"/>
    <text macro="publisher"/>
    </group>
    </if>
    <else-if type="chapter paper-conference" match="any">
    <group delimiter=" " prefix=" ">
    <text macro="title" suffix=""/>
    <text term="in"/>
    <text variable="container-title" font-style="italic"/>
    <text variable="collection-title" suffix="."/>
    </group>
    <text macro="editor"/>
    <group suffix=".">
    <text macro="publisher" prefix=" (" suffix=")"/>
    <group prefix=", ">
    <text variable="page"/>
    </group>
    </group>
    </else-if>
    <else>
    <text macro="title" prefix=" " suffix="."/>
    <group delimiter=", " prefix=" " suffix=".">
    <group delimiter=" ">
    <text variable="container-title" font-style="italic"/>
    <text variable="volume"/>
    </group>
    <text variable="page" form="short"/>
    </group>
    </else>
    </choose>
    <text prefix=" " macro="access"/>
    </layout>
    </bibliography>
    </style>

    My problem is that there is a paragraph separation between the authors and the year of the pub.
  • change

    <text macro="author" text-case="capitalize-first" display="indent"/>
    to

    <text macro="author" text-case="capitalize-first" suffix=", "/>
  • Done. Thanks!
  • HI Adam,
    I finished this, and I followed the instructions. But when i drag and drop in an open zotero window the "install" button does not appear. Any suggestions?
    Thanks M.
  • so you've downloaded a file that's called "abcdefg.csl"?
    What exactly happens when you drag that to Zotero?
Sign In or Register to comment.