Skip to content

Commit

Permalink
Update universite-de-lausanne-asa.csl
Browse files Browse the repository at this point in the history
add sort bibliography by type
  • Loading branch information
leonienussbaum authored Jul 26, 2023
1 parent 9c08ba9 commit cb95b38
Showing 1 changed file with 111 additions and 88 deletions.
199 changes: 111 additions & 88 deletions universite-de-lausanne-asa.csl
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" default-locale="fr">
<info>
<title>Université de Lausanne - ASA (fr)</title>
<id>http://www.zotero.org/styles/universite-de-lausanne-asa</id>
<link href="http://www.zotero.org/styles/universite-de-lausanne-asa" rel="self"/>
<link href="https://leonienussbaum.github.io/csl-style-ASA/" rel="documentation"/>
<link href="http://www.zotero.org/styles/universite-de-lausanne-asa" rel="self" />
<link href="https://leonienussbaum.github.io/csl-style-ASA/" rel="documentation" />
<author>
<name>Leonie Nussbaum</name>
</author>
<category citation-format="note"/>
<category field="history"/>
<category citation-format="note" />
<category field="history" />
<updated>2023-07-29T21:01:24+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
Expand All @@ -22,118 +22,141 @@
<term name="sub-verbo">s.v.</term>
</terms>
</locale>
<macro name="primary-sources">
<macro name="sort-type">
<choose>
<if type="book">
<choose>
<if variable="translator">
<text value="1"/>
<text value="1" />
</if>
<else>
<text value="2" />
</else>
</choose>
</if>
<else-if type="article-journal">
<choose>
<if variable="reviewed-author">
<text value="6" />
</if>
<else>
<text value="3" />
</else>
</choose>
</else-if>
<else-if type="chapter">
<text value="4" />
</else-if>
<else-if type="entry-dictionary entry-encyclopedia">
<text value="5" />
</else-if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
<name name-as-sort-order="all" sort-separator=" " delimiter=", "
delimiter-precedes-last="never" initialize-with=". " />
<substitute>
<text macro="editor"/>
<text macro="editor" />
</substitute>
</names>
</macro>
<macro name="reviewed-author">
<names variable="reviewed-author">
<name and="text" name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
<name and="text" name-as-sort-order="all" sort-separator=" " delimiter=", "
delimiter-precedes-last="never" initialize-with=". " />
<substitute>
<text macro="author"/>
<text macro="author" />
</substitute>
</names>
</macro>
<macro name="translator">
<text variable="version" suffix=" "/>
<text variable="version" suffix=" " />
<names variable="translator">
<name and="text" name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
<name and="text" name-as-sort-order="all" sort-separator=" " delimiter=", "
delimiter-precedes-last="never" initialize-with=". " />
<substitute>
<text macro="author"/>
<text macro="author" />
</substitute>
</names>
</macro>
<macro name="editor">
<group delimiter=" ">
<names variable="editor">
<name name-as-sort-order="all" sort-separator=", " delimiter-precedes-last="never" delimiter=", " initialize-with=". "/>
<names variable="editor" >
<name name-as-sort-order="all" sort-separator=", " delimiter-precedes-last="never"
delimiter=", " initialize-with=". " />
</names>
<text variable="language" prefix="(" suffix=".)"/>
<text variable="language" prefix="(" suffix=".)" />
</group>
</macro>
<macro name="author-short">
<names variable="author" delimiter=", ">
<name form="short"/>
<et-al font-style="italic"/>
<name form="short" />
<et-al font-style="italic" />
<substitute>
<text macro="editor-short"/>
<text variable="title" form="short"/>
<text macro="editor-short" />
<text variable="title" form="short" />
</substitute>
</names>
</macro>
<macro name="editor-short">
<names variable="editor">
<name form="short" delimiter=", " and="text"/>
<label form="short" text-case="lowercase" prefix=" (" suffix=")"/>
<name form="short" delimiter=", " and="text" />
<label form="short" text-case="lowercase" prefix=" (" suffix=")" />
</names>
</macro>
<macro name="title">
<choose>
<if type="book" match="any">
<text variable="title" font-style="italic"/>
<text variable="title" font-style="italic" />
</if>
<else>
<text variable="title"/>
<text variable="title" />
</else>
</choose>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
<date-part name="year" />
</date>
<date variable="original-date" form="text" prefix=" (" suffix="¹)"/>
<date variable="original-date" form="text" prefix=" (" suffix="¹)" />
</if>
<else>
<text term="no date" form="short"/>
<text term="no date" form="short" />
</else>
</choose>
</macro>
<citation et-al-min="3" et-al-use-first="2" disambiguate-add-year-suffix="true">
<sort>
<key variable="issued"/>
<key variable="issued" />
</sort>
<layout delimiter=" ">
<group suffix=".">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid" font-style="italic"/>
<text variable="locator" prefix="p. "/>
<text term="ibid" font-style="italic" />
<text variable="locator" prefix="p. " />
</group>
</if>
<else-if position="ibid">
<text term="ibid" font-style="italic"/>
<text term="ibid" font-style="italic" />
</else-if>
<else>
<group delimiter=" " suffix=".">
<text macro="author-short"/>
<text macro="year-date" suffix=", "/>
<text macro="author-short" />
<text macro="year-date" suffix=", " />
<choose>
<if variable="URL">
<text variable="URL"/>
<text variable="URL" />
</if>
<else-if type="entry-encyclopedia entry-dictionary">
<text variable="page" prefix="p. "/>
<text variable="page" prefix="p. " />
</else-if>
<else>
<text variable="locator" prefix="p. "/>
<text variable="locator" prefix="p. " />
</else>
</choose>
</group>
Expand All @@ -144,11 +167,11 @@
</citation>
<bibliography>
<sort>
<key macro="primary-sources"/>
<key macro="author"/>
<key variable="issued"/>
<key variable="title"/>
<key variable="page-first"/>
<key macro="sort-type" />
<key macro="author" />
<key variable="issued" />
<key variable="title" />
<key variable="page-first" />
</sort>
<layout suffix=".">
<group>
Expand All @@ -157,38 +180,38 @@
<choose>
<if variable="reviewed-author">
<group delimiter=", " suffix=", ">
<text macro="author"/>
<text macro="title" font-style="italic"/>
<text variable="abstract"/>
<text macro="reviewed-author" prefix="compte rendu par "/>
<text macro="author" />
<text macro="title" font-style="italic" />
<text variable="abstract" />
<text macro="reviewed-author" prefix="compte rendu par " />
</group>
</if>
<else>
<group>
<text macro="author" suffix=", "/>
<text macro="title" quotes="true" suffix=", "/>
<text macro="author" suffix=", " />
<text macro="title" quotes="true" suffix=", " />
</group>
</else>
</choose>
<group delimiter=", " suffix=".">
<group delimiter=" ">
<text variable="container-title" font-style="italic"/>
<text variable="volume"/>
<text variable="container-title" font-style="italic" />
<text variable="volume" />
</group>
<text macro="year-date"/>
<text macro="year-date" />
<choose>
<if variable="URL">
<group delimiter=" ">
<text variable="URL"/>
<text variable="URL" />
<date variable="accessed" prefix="(consulté le " suffix=")">
<date-part name="day" form="numeric-leading-zeros" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year" form="short"/>
<date-part name="day" form="numeric-leading-zeros" suffix="." />
<date-part name="month" form="numeric-leading-zeros" suffix="." />
<date-part name="year" form="short" />
</date>
</group>
</if>
<else>
<text variable="page" prefix="p. "/>
<text variable="page" prefix="p. " />
</else>
</choose>
</group>
Expand All @@ -197,74 +220,74 @@
<choose>
<if variable="translator">
<group delimiter=", " suffix=", ">
<text macro="author-short"/>
<text macro="title"/>
<text variable="volume"/>
<text macro="translator"/>
<text variable="collection-title"/>
<text macro="author-short" />
<text macro="title" />
<text variable="volume" />
<text macro="translator" />
<text variable="collection-title" />
</group>
</if>
<else>
<group delimiter=", " suffix=", ">
<text macro="author"/>
<text macro="title"/>
<text variable="publisher"/>
<text macro="author" />
<text macro="title" />
<text variable="publisher" />
</group>
</else>
</choose>
<group delimiter=", " suffix=".">
<text variable="publisher-place"/>
<text macro="year-date"/>
<text variable="publisher-place" />
<text macro="year-date" />
</group>
</else-if>
<else-if type="chapter" match="any">
<group delimiter=", " suffix=".">
<text macro="author"/>
<text macro="title" quotes="true"/>
<text macro="editor" prefix="in "/>
<text variable="container-title" font-style="italic"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
<text macro="year-date"/>
<text macro="author" />
<text macro="title" quotes="true" />
<text macro="editor" prefix="in " />
<text variable="container-title" font-style="italic" />
<text variable="publisher" />
<text variable="publisher-place" />
<text macro="year-date" />
<choose>
<if variable="URL">
<group delimiter=" ">
<text variable="URL"/>
<text variable="URL" />
<date variable="accessed" prefix="(consulté le " suffix=")">
<date-part name="day" form="numeric-leading-zeros" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year" form="short"/>
<date-part name="day" form="numeric-leading-zeros" suffix="." />
<date-part name="month" form="numeric-leading-zeros" suffix="." />
<date-part name="year" form="short" />
</date>
</group>
</if>
<else>
<text variable="page" prefix="p. "/>
<text variable="page" prefix="p. " />
</else>
</choose>
</group>
</else-if>
<else-if type="entry-encyclopedia entry-dictionary" match="any">
<group delimiter=", ">
<text macro="author"/>
<text macro="author" />
<group delimiter=" ">
<text term="sub-verbo" font-style="italic"/>
<text macro="title" quotes="true"/>
<text term="sub-verbo" font-style="italic" />
<text macro="title" quotes="true" />
</group>
<text variable="container-title" font-style="italic"/>
<text macro="year-date"/>
<text variable="container-title" font-style="italic" />
<text macro="year-date" />
<choose>
<if variable="URL">
<group delimiter=" ">
<text variable="URL"/>
<text variable="URL" />
<date variable="accessed" prefix="(consulté le " suffix=")">
<date-part name="day" form="numeric-leading-zeros" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year" form="short"/>
<date-part name="day" form="numeric-leading-zeros" suffix="." />
<date-part name="month" form="numeric-leading-zeros" suffix="." />
<date-part name="year" form="short" />
</date>
</group>
</if>
<else>
<text variable="page" prefix="p. "/>
<text variable="page" prefix="p. " />
</else>
</choose>
</group>
Expand Down

0 comments on commit cb95b38

Please sign in to comment.