Skip to content

Commit

Permalink
Minor fixes to the style
Browse files Browse the repository at this point in the history
Updates the access macro to include DOI. Also modified the number of pages variable for thesis so it appears. Updated the date variable for newspaper articles so it appears between ( and ).
  • Loading branch information
Bibref committed Nov 27, 2015
1 parent 23f227e commit 54a27cd
Showing 1 changed file with 34 additions and 20 deletions.
54 changes: 34 additions & 20 deletions ets-ecole-de-technologie-superieure.csl
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,28 @@
<text variable="issue" prefix=" "/>
</macro>
<macro name="access">
<group delimiter=". ">
<text variable="URL" prefix="&lt;" suffix="&gt;"/>
<choose>
<if variable="URL" match="any">
<group delimiter=" ">
<text value="Consulté le"/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
</group>
<choose>
<if variable="DOI" match="any">
<group delimiter=". ">
<text variable="DOI" prefix="&lt;http://dx.doi.org/" suffix="&gt;"/>
<date variable="accessed" delimiter=" " prefix="Consulté le ">
<date-part name="day"/>
<date-part name="month"/>
<date-part name="year"/>
</date>
</group>
</if>
<else-if variable="URL" match="any">
<group delimiter=". ">
<text variable="URL" prefix="&lt;" suffix="&gt;"/>
<date variable="accessed" delimiter=" " prefix="Consulté le ">
<date-part name="day"/>
<date-part name="month"/>
<date-part name="year"/>
</date>
</group>
</else-if>
</choose>
</macro>
<citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true">
<layout prefix="(" suffix=")" delimiter="&#160;; ">
Expand All @@ -162,7 +169,14 @@
<text variable="genre"/>
<text variable="publisher-place"/>
<text variable="publisher"/>
<text variable="page" form="short" suffix=" p"/>
<choose>
<if match="any" variable="number-of-pages">
<text variable="number-of-pages" suffix=" p"/>
</if>
<else-if match="any" variable="page">
<text variable="page" suffix=" p"/>
</else-if>
</choose>
</group>
</if>
<else-if type="book" match="any">
Expand Down Expand Up @@ -258,10 +272,10 @@
<else-if type="article-newspaper">
<group delimiter=", " prefix=". ">
<text macro="journal-title"/>
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year" suffix="."/>
<date variable="issued" delimiter=" " prefix="(" suffix=")">
<date-part name="day"/>
<date-part name="month"/>
<date-part name="year"/>
</date>
<text variable="page" prefix="p. "/>
</group>
Expand Down

0 comments on commit 54a27cd

Please sign in to comment.