Style for J Neuroscience
Hello,
Ok so I am a newbie to code and such, but have been recently fiddling with several citation styles that I use quite regularly in the field of Neuroscience. I've almost perfected a style for J. Neuroscience that I will copy and paste below. The ONLY issue I've got is with multiple in-text citation references. J Neuroscience states that they need to be chronological order ie (Brown and Black, 1979, 1981; White et al., 1980; Smith, 1982, 1984) and that the bibliography should be in alphabetical order. Theoretically, I should be able to do the multiple author thing by sorting by date (ascending) before sorting by author, under the <Citation> prompt, but this doesn't seem to be working. If I delete the sort by author in bibliography prompt, it will sort the multiple references chronologically, but then the bibliography is chronological and not alphabetical... Can anyone help? If we can get around this, then there can be a reference style for J. Neuroscience... I will attach the code I've written so far below:
Ok so I am a newbie to code and such, but have been recently fiddling with several citation styles that I use quite regularly in the field of Neuroscience. I've almost perfected a style for J. Neuroscience that I will copy and paste below. The ONLY issue I've got is with multiple in-text citation references. J Neuroscience states that they need to be chronological order ie (Brown and Black, 1979, 1981; White et al., 1980; Smith, 1982, 1984) and that the bibliography should be in alphabetical order. Theoretically, I should be able to do the multiple author thing by sorting by date (ascending) before sorting by author, under the <Citation> prompt, but this doesn't seem to be working. If I delete the sort by author in bibliography prompt, it will sort the multiple references chronologically, but then the bibliography is chronological and not alphabetical... Can anyone help? If we can get around this, then there can be a reference style for J. Neuroscience... I will attach the code I've written so far below:
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">
<info>
<title>J Neuroscience (Author-Date) (dev)</title>
<id>http://www.zotero.org/styles/J Neuroscience</id>
<category term="author-date"/>
<category term="generic-base"/>
<updated>2010-02-13T20:56:56+00:00</updated>
<summary>Hydrogeology Journal author-date style</summary>
</info>
<terms>
<locale xml:lang="en">
<term name="no date">no date</term>
<term name="anonymous">anon</term>
<term name="edition">edn</term>
</locale>
</terms>
<macro name="editor">
<names variable="editor translator" delimiter=", ">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter-precedes-last="never" delimiter=", " />
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if type="thesis">
<choose>
<if variable="archive" match="any">
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<text variable="archive" suffix="."/>
<text variable="archive_location" prefix=" (" suffix=")"/>
</group>
</if>
<else>
<group>
<text term="retrieved" text-case="capitalize-first" prefix=" " suffix=" "/>
<text term="from" suffix=" "/>
<text variable="URL"/>
</group>
</else>
</choose>
</if>
<else>
<choose>
<if variable="DOI">
<choose>
<if type="article-journal">
<choose>
<if variable="volume issue page" match="any">
<text variable="DOI" prefix=". doi:"/>
</if>
</choose>
</if>
</choose>
</if>
<else>
<choose>
<if type="webpage">
<choose>
<if type="book" match="none">
<text value="available online" text-case="title" suffix=". "/>
<text variable="URL" suffix="."/>
<group prefix=" Cited">
<date variable="accessed">
<date-part name="day" prefix=" " suffix=" "/>
<date-part name="month" suffix=" " form="short"/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
</if>
</choose>
</else>
</choose>
</else>
</choose>
</macro>
<choose>
<if type="chapter">
<choose>
<if type="paper-conference" match="none">
<text variable="title" suffix=". "/>
<text term="in" text-case="capitalize-first" suffix=": "/>
<text macro="editor"/>
<text variable="container-title" prefix=" " suffix=","/>
<text macro="edition" prefix=" "/>
</if>
<else>
<text variable="title" prefix=" " suffix="."/>
<text variable="container-title" prefix=" " suffix="."/>
<text variable="event" prefix=" " suffix="," />
</else>
</choose>
</if>
<else>
<text variable="title" prefix=" "/>
<choose>
<if type="article-journal">
<text variable="container-title" prefix=". "/>
</if>
</choose>
</else>
</choose>
</macro>
<macro name="publisher">
<choose>
<if type="book report" match="any">
<text macro="edition" prefix=" "/>
<group delimiter=",">
<text variable="genre" text-case="capitalize-first" prefix=", "/>
<text variable="publisher" prefix=" "/>
<text variable="publisher-place" prefix=" "/>
</group>
<label variable="page" form="short" prefix=", " suffix="."/>
<text variable="page"/>
</if>
<else>
<choose>
<if variable="event" match="none">
<text variable="genre" prefix=", " suffix=","/>
</if>
</choose>
<text variable="publisher" text-case="capitalize-first" prefix=" " suffix=","/>
<text variable="publisher-place" text-case="capitalize-first" prefix=" " suffix=","/>
</else>
</choose>
</macro>
<macro name="citation-author">
<choose>
<if variable="author editor translator" match="any">
<text macro="author-short"/>
</if>
<else>
<text term="anonymous" form="short" text-case="capitalize-first"/>
</else>
</choose>
</macro>
<macro name="bibliography-author">
<choose>
<if variable="author editor translator" match="any">
<text macro="author"/>
</if>
<else>
<text term="anonymous" form="short" text-case="capitalize-first"/>
</else>
</choose>
</macro>
<macro name="citation-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="bibliography-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" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix=" ed. "/>
</else>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<choose>
<if variable="issue" match="none">
<text variable="volume" prefix=" " suffix=":"/>
<text variable="page" prefix=" "/>
</if>
<else>
<group suffix=":">
<text variable="volume" prefix=" "/>
</group>
<text variable="page" prefix=" "/>
</else>
</choose>
</if>
<else-if type="chapter" match="any">
<label variable="page" form="short" include-period="true" prefix=" "/>
<text variable="page" prefix=" "/>
</else-if>
</choose>
</macro>
<macro name="citation-locator">
<group>
<label variable="locator" include-period="true" form="short" prefix=", " suffix="."/>
<text variable="locator"/>
</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="collapse" value="year"/>
<sort>
<key macro="citation-date" sort= "ascending"/>
<key macro="citation-author"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<text macro="citation-author"/>
<text macro="citation-date" prefix=", "/>
<text macro="citation-locator" />
</layout>
<sort>
<key variable="issued"/>
<key variable="title"/>
</sort>
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="et-al-min" value="20"/>
<option name="et-al-use-first" value="3"/>
<option name="entry-spacing" value="0"/>
<option name="line-spacing" value="1"/>
<sort>
<key macro="bibliography-author"/>
<key macro="bibliography-date" sort="ascending"/>
</sort>
<layout >
<text macro="bibliography-author"/>
<text macro="bibliography-date" prefix=" (" suffix=")"/>
<text macro="title"/>
<text macro="publisher" prefix=""/>
<text macro="locators" suffix="."/>
</layout>
</bibliography>
</style>
gist.github.com (just paste and create public gist) -
it's easier to download, the indents are preserved and encoding is going to be correct.
I can have a look at the sorting, but in general you seem to have the right idea, so maybe that's a bug (a new csl processor is about to come out which has been thoroughly tested for those types of things).
git clone git://gist.github.com/613884.git gist-613884
Thanks for your help!
Really wish I'd found that 5 hours ago!
Thanks for the quick responses.
All the Best,
Crystal
The Journal of Neuroscience
so it seems reasonable to list it under that name, no?
We can't list all common abbreviations of journals - if you do a search for "journal of neuroscience" on the styles page it comes up.
edit: and about those 5hs - it's a useful skill to have. Don't see it as wasted time.
Thanks again for your help!