Skip to content

Commit

Permalink
Update some more independent styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rmzelle committed Apr 6, 2011
1 parent aafba24 commit e6f4d9b
Show file tree
Hide file tree
Showing 22 changed files with 226 additions and 188 deletions.
26 changes: 15 additions & 11 deletions apsa.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
26 changes: 15 additions & 11 deletions asa-cssa-sssa.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion asa.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion asce.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
20 changes: 12 additions & 8 deletions australian-legal.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 14 additions & 12 deletions bioinformatics.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down
2 changes: 1 addition & 1 deletion biological-psychiatry.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
26 changes: 14 additions & 12 deletions biotropica.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
22 changes: 13 additions & 9 deletions bluebook-inline.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
22 changes: 13 additions & 9 deletions bluebook-law-review.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 13 additions & 9 deletions bluebook2.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
22 changes: 13 additions & 9 deletions bone.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion brain.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
26 changes: 14 additions & 12 deletions british-journal-of-sociology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion british-psychological-society.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
26 changes: 14 additions & 12 deletions bspf.csl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Loading

0 comments on commit e6f4d9b

Please sign in to comment.