Skip to content

Commit

Permalink
fix webpage formatting for AMA styles
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Oct 6, 2015
1 parent bfc4170 commit d7bf36b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 14 deletions.
18 changes: 13 additions & 5 deletions american-medical-association-alphabetical.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US" page-range-format="expanded">
<info>
<title>American Medical Association (sorted alphabetically)</title>
<title-short>AMA</title-short>
Expand Down Expand Up @@ -54,6 +54,11 @@
<else-if variable="URL">
<group delimiter=". ">
<text variable="URL"/>
<choose>
<if type="webpage">
<date variable="issued" prefix="Published " form="text" />
</if>
</choose>
<group>
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
Expand Down Expand Up @@ -122,10 +127,10 @@
<choose>
<if type="bill book graphic legislation motion_picture report song" match="any">
<group suffix="." prefix=" " delimiter=" ">
<group delimiter=" ">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first" strip-periods="true"/>
<text variable="volume" suffix="."/>
</group>
</group>
<text macro="edition"/>
<text macro="editor" prefix="(" suffix=")"/>
</group>
Expand All @@ -142,10 +147,10 @@
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor"/>
<text variable="container-title" font-style="italic" suffix="." text-case="title"/>
<group delimiter=" ">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first" strip-periods="true"/>
<text variable="volume" suffix="."/>
</group>
</group>
<text macro="edition"/>
<text variable="collection-title" suffix="."/>
<group suffix=".">
Expand Down Expand Up @@ -212,6 +217,9 @@
</date>
</group>
</else-if>
<else-if type="webpage">
<text variable="container-title" prefix=" " suffix="."/>
</else-if>
<else>
<text macro="editor" prefix=" " suffix="."/>
<group prefix=" " suffix=".">
Expand Down
18 changes: 13 additions & 5 deletions american-medical-association-no-et-al.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US" page-range-format="expanded">
<info>
<title>American Medical Association (no "et al.")</title>
<title-short>AMA</title-short>
Expand Down Expand Up @@ -54,6 +54,11 @@
<else-if variable="URL">
<group delimiter=". ">
<text variable="URL"/>
<choose>
<if type="webpage">
<date variable="issued" prefix="Published " form="text" />
</if>
</choose>
<group>
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
Expand Down Expand Up @@ -117,10 +122,10 @@
<choose>
<if type="bill book graphic legislation motion_picture report song" match="any">
<group suffix="." prefix=" " delimiter=" ">
<group delimiter=" ">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first" strip-periods="true"/>
<text variable="volume" suffix="."/>
</group>
</group>
<text macro="edition"/>
<text macro="editor" prefix="(" suffix=")"/>
</group>
Expand All @@ -137,10 +142,10 @@
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor"/>
<text variable="container-title" font-style="italic" suffix="." text-case="title"/>
<group delimiter=" ">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first" strip-periods="true"/>
<text variable="volume" suffix="."/>
</group>
</group>
<text macro="edition"/>
<text variable="collection-title" suffix="."/>
<group suffix=".">
Expand Down Expand Up @@ -207,6 +212,9 @@
</date>
</group>
</else-if>
<else-if type="webpage">
<text variable="container-title" prefix=" " suffix="."/>
</else-if>
<else>
<text macro="editor" prefix=" " suffix="."/>
<group prefix=" " suffix=".">
Expand Down
16 changes: 12 additions & 4 deletions american-medical-association.csl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
<else-if variable="URL">
<group delimiter=". ">
<text variable="URL"/>
<choose>
<if type="webpage">
<date variable="issued" prefix="Published " form="text" />
</if>
</choose>
<group>
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
Expand Down Expand Up @@ -117,10 +122,10 @@
<choose>
<if type="bill book graphic legislation motion_picture report song" match="any">
<group suffix="." prefix=" " delimiter=" ">
<group delimiter=" ">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first" strip-periods="true"/>
<text variable="volume" suffix="."/>
</group>
</group>
<text macro="edition"/>
<text macro="editor" prefix="(" suffix=")"/>
</group>
Expand All @@ -137,10 +142,10 @@
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor"/>
<text variable="container-title" font-style="italic" suffix="." text-case="title"/>
<group delimiter=" ">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first" strip-periods="true"/>
<text variable="volume" suffix="."/>
</group>
</group>
<text macro="edition"/>
<text variable="collection-title" suffix="."/>
<group suffix=".">
Expand Down Expand Up @@ -207,6 +212,9 @@
</date>
</group>
</else-if>
<else-if type="webpage">
<text variable="container-title" prefix=" " suffix="."/>
</else-if>
<else>
<text macro="editor" prefix=" " suffix="."/>
<group prefix=" " suffix=".">
Expand Down

0 comments on commit d7bf36b

Please sign in to comment.