Commits

Giovanni Marco Dall'Olio committed 579597b

ADD: generic oxford journal style, inspired by harvard1.csl

the previous style was not correct

  • Participants
  • Parent commits 811c534

Comments (0)

Files changed (1)

 <?xml version="1.0" encoding="utf-8"?>
 <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
   <info>
-    <title>Oxford Journals</title>
+    <title>Oxford Journal</title>
     <id>http://www.oxfordjournals.org/our_journals/molbev/for_authors/msprep_submission.html#Literature%20Cited</id>
     <link href="http://www.oxfordjournals.org/our_journals/molbev/for_authors/msprep_submission.html#Literature%20Cited" rel="self"/>
     <author>
-      <name>Michael Berkowitz</name>
-      <email>mberkowi@gmu.edu</email>
+      <name>Giovanni M Dall'Olio</name>
+      <email>giovanni.dallolio@upf.edu</email>
     </author>
+    <category citation-format="author-date"/>
     <category field="generic-base"/>
-    <category citation-format="numeric"/>
-    <updated>2008-09-15T22:12:41+00:00</updated>
+    <updated>2011-07-21T22:12:41+00:00</updated>
+    <summary>Generic format for OxfordJournals</summary>
+    <link href="http://www.oxfordjournals.org/our_journals/molbev/for_authors/msprep_submission.html#Literature%20Cited" rel="documentation"/>
   </info>
-  <macro name="author">
-    <names variable="author" suffix=". ">
-      <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
+  <macro name="editor">
+    <names variable="editor" delimiter=", ">
+      <name and="symbol" initialize-with=". " delimiter=", "/>
+      <label form="short" prefix=", " text-case="lowercase" suffix="." strip-periods="true"/>
     </names>
   </macro>
-  <macro name="editor">
-    <names variable="editor" suffix=", editor(s). ">
-      <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
+  <macro name="anon">
+    <text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
+  </macro>
+  <macro name="author">
+    <names variable="author">
+      <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
+      <label form="short" prefix=" " suffix="." text-case="lowercase" strip-periods="true"/>
+      <substitute>
+        <names variable="editor"/>
+        <text macro="anon"/>
+      </substitute>
     </names>
   </macro>
-  <macro name="publisher">
-    <text variable="publisher-place" suffix=": "/>
-    <text variable="publisher" suffix="; "/>
-    <date variable="issued">
-      <date-part name="year" suffix=". "/>
-    </date>
+  <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">
-    <group delimiter=" ">
-      <group prefix="[" suffix="]" delimiter=" ">
-        <text term="cited" text-case="lowercase"/>
-        <date variable="accessed" suffix=" ">
+    <group>
+      <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-part name="month" prefix=" " form="short" strip-periods="true"/>
-          <date-part name="day" prefix=" "/>
         </date>
       </group>
-      <group>
-        <text value="Available from: "/>
-        <text variable="URL"/>
-      </group>
     </group>
   </macro>
   <macro name="title">
-    <group delimiter=" ">
-      <text variable="title"/>
-      <choose>
-        <if variable="URL">
-          <text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
-        </if>
-      </choose>
+    <choose>
+      <if type="bill book graphic legal_case motion_picture report song thesis" match="any">
+        <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" form="short"/>
+      </else>
+    </choose>
+  </macro>
   <macro name="edition">
     <choose>
       <if is-numeric="edition">
       </else>
     </choose>
   </macro>
-  <citation collapse="citation-number">
-    <sort>
-      <key variable="citation-number"/>
-    </sort>
+  <macro name="pages">
+    <group>
+      <label variable="page" form="short" suffix=" "/>
+      <text variable="page"/>
+    </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 prefix="(" suffix=")" delimiter="; ">
-      <text variable="citation-number"/>
+      <group delimiter=", ">
+        <group delimiter=" ">
+          <text macro="author-short"/>
+          <text macro="year-date"/>
+        </group>
+        <group>
+          <label variable="locator" suffix="." form="short" strip-periods="true"/>
+          <text variable="locator"/>
+        </group>
+      </group>
     </layout>
   </citation>
-  <bibliography second-field-align="flush">
+  <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1">
+    <sort>
+      <key macro="author"/>
+      <key variable="title"/>
+    </sort>
     <layout>
-      <text variable="citation-number" suffix=". "/>
-      <text macro="author"/>
-      <text macro="title" suffix=". "/>
+      <text macro="author" suffix=","/>
+      <date variable="issued" prefix=" " suffix=".">
+        <date-part name="year"/>
+      </date>
       <choose>
         <if type="bill book graphic legal_case motion_picture report song" match="any">
-          <text macro="edition" prefix=" " suffix=" "/>
-          <text macro="publisher" prefix=" "/>
+          <group prefix=" " delimiter=" " 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">
-          <group prefix=" " suffix=". ">
-            <text term="in" suffix=": " text-case="capitalize-first"/>
+          <text macro="title" prefix=" " suffix="."/>
+          <group prefix=" " delimiter=" ">
+            <text term="in" text-case="capitalize-first"/>
             <text macro="editor"/>
-            <text variable="container-title"/>
+            <text variable="container-title" font-style="italic" suffix="."/>
+            <text variable="collection-title" suffix="."/>
+            <group suffix="." delimiter=", ">
+              <text macro="publisher" prefix=" "/>
+              <text macro="pages"/>
+            </group>
           </group>
-          <text macro="publisher" prefix=" "/>
-          <text variable="page" prefix=" p. " suffix="."/>
+        </else-if>
+        <else-if type="thesis">
+          <group prefix=" " suffix="." delimiter=". ">
+            <text macro="title"/>
+            <text variable="genre"/>
+            <text macro="publisher"/>
+          </group>
         </else-if>
         <else>
-          <text variable="container-title" suffix=". " form="short"/>
-          <date variable="issued" suffix=";">
-            <date-part name="year" suffix=" "/>
-            <date-part name="month" form="short" suffix=" " strip-periods="true"/>
-            <date-part name="day"/>
-          </date>
-          <text variable="volume"/>
-          <text variable="issue" prefix="(" suffix="):"/>
-          <text variable="page" suffix="."/>
+          <group suffix=".">
+            <text macro="title" prefix=" "/>
+            <text macro="editor" prefix=" "/>
+          </group>
+          <group prefix=" " suffix=".">
+            <text variable="container-title" font-style="italic"/>
+            <group prefix=", ">
+              <text variable="volume"/>
+              <text variable="issue" prefix="(" suffix=")"/>
+            </group>
+            <group prefix=", ">
+              <label variable="page" suffix="." form="short" strip-periods="true"/>
+              <text variable="page"/>
+            </group>
+          </group>
         </else>
       </choose>
-      <text macro="access"/>
+      <text prefix=" " macro="access" suffix="."/>
     </layout>
   </bibliography>
 </style>