Skip to content

Commit

Permalink
The term in should only appear when container-title has a value.
Browse files Browse the repository at this point in the history
  • Loading branch information
serpodrick committed Jul 20, 2015
1 parent 9c00bfd commit ed472f7
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 30 deletions.
13 changes: 9 additions & 4 deletions american-chemical-society-author-date.csl
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
12 changes: 9 additions & 3 deletions american-chemical-society-page-first.csl
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
13 changes: 9 additions & 4 deletions american-chemical-society-with-titles-no-et-al.csl
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
13 changes: 9 additions & 4 deletions american-chemical-society-with-titles-page-first.csl
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
13 changes: 9 additions & 4 deletions american-chemical-society-with-titles-sentence-case-doi.csl
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
13 changes: 9 additions & 4 deletions american-chemical-society-with-titles-sentence-case.csl
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
13 changes: 9 additions & 4 deletions american-chemical-society-with-titles.csl
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down
12 changes: 9 additions & 3 deletions american-chemical-society.csl
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,19 @@
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<group delimiter=". ">
<text macro="title"/>
<choose>
<if type="entry-dictionary entry-encyclopedia" match="none">
<text term="in" text-case="capitalize-first"/>
<group delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
Expand Down

0 comments on commit ed472f7

Please sign in to comment.