Permalink
Browse files

Update some more independent styles

  • Loading branch information...
1 parent aafba24 commit e6f4d9b955b75789d5aa7c17390f0b5cba51f873 @rmzelle rmzelle committed Apr 6, 2011
Showing with 226 additions and 188 deletions.
  1. +15 −11 apsa.csl
  2. +15 −11 asa-cssa-sssa.csl
  3. +1 −1 asa.csl
  4. +1 −1 asce.csl
  5. +12 −8 australian-legal.csl
  6. +14 −12 bioinformatics.csl
  7. +1 −1 biological-psychiatry.csl
  8. +14 −12 biotropica.csl
  9. +13 −9 bluebook-inline.csl
  10. +13 −9 bluebook-law-review.csl
  11. +13 −9 bluebook2.csl
  12. +13 −9 bone.csl
  13. +1 −1 brain.csl
  14. +14 −12 british-journal-of-sociology.csl
  15. +1 −1 british-psychological-society.csl
  16. +14 −12 bspf.csl
  17. +14 −12 cell.csl
  18. +14 −20 chicago-author-date.csl
  19. +1 −1 conservation-biology.csl
  20. +14 −12 corr.csl
  21. +14 −12 cshlp.csl
  22. +14 −12 current-biology.csl
View
@@ -47,17 +47,21 @@
<macro name="access">
<choose>
<if type="legal_case" match="none">
- <group delimiter=" ">
- <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>
- </group>
+ <choose>
+ <if variable="URL">
+ <group delimiter=" ">
+ <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>
+ </group>
+ </if>
+ </choose>
</if>
</choose>
</macro>
View
@@ -81,17 +81,21 @@
</group>
</macro>
<macro name="access">
- <group delimiter=" ">
- <text value="Available at"/>
- <text variable="URL"/>
- <group prefix="(verified " suffix=")">
- <date variable="accessed">
- <date-part name="day" suffix=" "/>
- <date-part name="month" suffix=" "/>
- <date-part name="year"/>
- </date>
- </group>
- </group>
+ <choose>
+ <if variable="URL">
+ <group delimiter=" ">
+ <text value="Available at"/>
+ <text variable="URL"/>
+ <group prefix="(verified " suffix=")">
+ <date variable="accessed">
+ <date-part name="day" suffix=" "/>
+ <date-part name="month" suffix=" "/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </group>
+ </if>
+ </choose>
</macro>
<citation collapse="year-suffix" 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">
<sort>
View
@@ -91,7 +91,7 @@
</date>
</if>
<else>
- <text term="no date" form="short" strip-periods="true"/>
+ <text term="no date" form="short"/>
</else>
</choose>
</macro>
View
@@ -106,7 +106,7 @@
</date>
</if>
<else>
- <text term="no date" form="short" strip-periods="true"/>
+ <text term="no date" form="short"/>
</else>
</choose>
</macro>
View
@@ -181,14 +181,18 @@
</group>
</macro><!-- link to online content, called in YYYYY -->
<macro name="access">
- <text variable="URL" prefix=" &lt;" suffix="&gt;"/>
- <group prefix=" at " suffix=""><!-- AGLC requires format "at 2 December 2001", no parentheses. -->
- <date variable="accessed">
- <date-part name="day" suffix=" "/>
- <date-part name="month" suffix=" "/>
- <date-part name="year"/>
- </date>
- </group>
+ <choose>
+ <if variable="URL">
+ <text variable="URL" prefix=" &lt;" suffix="&gt;"/>
+ <group prefix=" at " suffix=""><!-- AGLC requires format "at 2 December 2001", no parentheses. -->
+ <date variable="accessed">
+ <date-part name="day" suffix=" "/>
+ <date-part name="month" suffix=" "/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ </choose>
</macro>
<macro name="source"><!-- This macro seems really problematic, with a ton of redundancy. I'd move some of
the conditional logic into the appropriate macros (like 'title') and try to remove this
View
@@ -45,18 +45,20 @@
</names>
</macro>
<macro name="access">
- <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>
- </group>
- </group>
+ <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">
<text variable="title"/>
@@ -153,7 +153,7 @@
</date>
</if>
<else>
- <text term="no date" form="short" strip-periods="true"/>
+ <text term="no date" form="short"/>
</else>
</choose>
</macro>
View
@@ -45,18 +45,20 @@
</names>
</macro>
<macro name="access">
- <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>
- </group>
- </group>
+ <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>
View
@@ -47,15 +47,19 @@
</choose>
</macro><!-- link to online content, called in YYYYY -->
<macro name="access">
- <text variable="URL"/>
- <group prefix=" (" suffix=")">
- <text value="last visited" suffix=" "/>
- <date variable="accessed">
- <date-part name="month" form="short" suffix=" " strip-periods="true"/>
- <date-part name="day" suffix=", "/>
- <date-part name="year"/>
- </date>
- </group>
+ <choose>
+ <if variable="URL">
+ <text variable="URL"/>
+ <group prefix=" (" suffix=")">
+ <text value="last visited" suffix=" "/>
+ <date variable="accessed">
+ <date-part name="month" form="short" suffix=" " strip-periods="true"/>
+ <date-part name="day" suffix=", "/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ </choose>
</macro>
<macro name="source-long">
<choose>
View
@@ -80,15 +80,19 @@
</choose>
</macro><!-- link to online content, called in YYYYY -->
<macro name="access">
- <text variable="URL"/>
- <group prefix=" (" suffix=")">
- <text value="last visited" suffix=" "/>
- <date variable="accessed">
- <date-part name="month" form="short" suffix=" " strip-periods="true"/>
- <date-part name="day" suffix=", "/>
- <date-part name="year"/>
- </date>
- </group>
+ <choose>
+ <if variable="URL">
+ <text variable="URL"/>
+ <group prefix=" (" suffix=")">
+ <text value="last visited" suffix=" "/>
+ <date variable="accessed">
+ <date-part name="month" form="short" suffix=" " strip-periods="true"/>
+ <date-part name="day" suffix=", "/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ </choose>
</macro>
<macro name="source"><!-- This macro seems really problematic, with a ton of redundancy. I'd move some of
the conditional logic into the appropriate macros (like 'title') and try to remove this
View
@@ -47,15 +47,19 @@
</choose>
</macro><!-- link to online content, called in YYYYY -->
<macro name="access">
- <text variable="URL"/>
- <group prefix=" (" suffix=")">
- <text value="last visited" suffix=" "/>
- <date variable="accessed">
- <date-part name="month" form="short" suffix=" " strip-periods="true"/>
- <date-part name="day" suffix=", "/>
- <date-part name="year"/>
- </date>
- </group>
+ <choose>
+ <if variable="URL">
+ <text variable="URL"/>
+ <group prefix=" (" suffix=")">
+ <text value="last visited" suffix=" "/>
+ <date variable="accessed">
+ <date-part name="month" form="short" suffix=" " strip-periods="true"/>
+ <date-part name="day" suffix=", "/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ </choose>
</macro>
<macro name="source-long">
<choose>
View
@@ -41,15 +41,19 @@
<text variable="DOI" prefix=" doi:"/>
</if>
<else>
- <text variable="URL" prefix=" Available: " suffix="."/>
- <group prefix=" " suffix=".">
- <text term="accessed" text-case="capitalize-first" suffix=" "/>
- <date variable="accessed">
- <date-part name="day" suffix=" "/>
- <date-part name="month" form="short" suffix=" " strip-periods="true"/>
- <date-part name="year"/>
- </date>
- </group>
+ <choose>
+ <if variable="URL">
+ <text variable="URL" prefix=" Available: " suffix="."/>
+ <group prefix=" " suffix=".">
+ <text term="accessed" text-case="capitalize-first" suffix=" "/>
+ <date variable="accessed">
+ <date-part name="day" suffix=" "/>
+ <date-part name="month" form="short" suffix=" " strip-periods="true"/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ </choose>
</else>
</choose>
</group>
View
@@ -40,7 +40,7 @@
</date>
</if>
<else>
- <text term="no date" form="short" strip-periods="true"/>
+ <text term="no date" form="short"/>
</else>
</choose>
</macro>
@@ -56,18 +56,20 @@
</names>
</macro>
<macro name="access">
- <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>
- </group>
- </group>
+ <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>
@@ -135,7 +135,7 @@
</date>
</if>
<else>
- <text term="no date" form="short" strip-periods="true"/>
+ <text term="no date" form="short"/>
</else>
</choose>
</macro>
View
@@ -67,18 +67,20 @@ http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
</names>
</macro>
<macro name="access">
- <group>
- <text value="consultable à " text-case="capitalize-first" suffix=" "/>
- <text variable="URL"/>
- <group prefix=" [" suffix="]">
- <text value="accédé le" 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>
+ <choose>
+ <if variable="URL">
+ <text value="consultable à " text-case="capitalize-first" suffix=" "/>
+ <text variable="URL"/>
+ <group prefix=" [" suffix="]">
+ <text value="accédé le" text-case="capitalize-first" suffix=" "/>
+ <date variable="accessed">
+ <date-part name="day" suffix=" "/>
+ <date-part name="month" suffix=" "/>
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ </choose>
</macro>
<macro name="title">
<choose>
Oops, something went wrong.

0 comments on commit e6f4d9b

Please sign in to comment.