Skip to content

Instantly share code, notes, and snippets.

Created June 8, 2014 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9f8ac73c55bb14789c00 to your computer and use it in GitHub Desktop.
Save anonymous/9f8ac73c55bb14789c00 to your computer and use it in GitHub Desktop.
Style-DAF/Inrap-csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text" demote-non-dropping-particle="sort-only" default-locale="fr-FR" page-range-format="expanded">
<info>
<title>Inrap / DAF (Author-date ; FRENCH)</title>
<id>http://www.zotero.org/styles/Inrap</id>
<author>
<name>Clément Féliu</name>
<email>clement.feliu@inrap.fr</email>
</author>
<category citation-format="author-date"/>
<summary>Author-date style for Inrap reports / DAF Documents d'Archéologie Française</summary>
<updated>2013-09-25T04:19:09+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>
<locale xml:lang="fr">
<terms>
<term name="editor" form="short">
<single>dir.</single>
<multiple>dir.</multiple>
</term>
<term name="container-author" form="short">
<single>dir.</single>
<multiple>dir.</multiple>
</term>
<term name="in">In</term>
<term name="anonymous">anonyme</term>
<term name="anonymous" form="short">anon.</term>
<term name="accessed">Consulté le</term>
<term name="no date">sans date</term>
<term name="no date" form="short">s.&#160;d.</term>
<term name="page" form="short">p.</term>
<term name="number-of-pages" form="short">p.</term>
</terms>
</locale>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="." delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" prefix="(" suffix=")"/>
</name>
<substitute>
<text macro="editor"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name name-as-sort-order="all" sort-separator=" " initialize-with="." delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" prefix="(" suffix=")"/>
</name>
<label form="short" text-case="lowercase" prefix =" " suffix=" "/>
</names>
</macro>
<macro name="container-author">
<names variable="container-author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="." delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" prefix="(" suffix=")"/>
</name>
<label form="short" text-case="lowercase" prefix =" " suffix=" "/>
<substitute>
<text macro="editor"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" delimiter=", " et-al-min="3" et-al-use-first="1"/>
<et-al font-variant="normal" font-style="italic"/>
<substitute>
<text macro="editor-short"/>
<text variable="title-short"/>
</substitute>
</names>
</macro>
<macro name="editor-short">
<names variable="editor">
<name form="short" delimiter=", " et-al-min="3" et-al-use-first="1"/>
<et-al font-variant="normal" font-style="italic"/>
</names>
</macro>
<macro name="pages">
<text variable="page" prefix="p.&#160;"/>
</macro>
<macro name="access">
<group delimiter=" ">
<text term="accessed" suffix=" "/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</macro>
<macro name="collection">
<group delimiter="&#160;; " prefix="(" suffix=")">
<text variable="collection-title"/>
<text variable="collection-number"/>
</group>
</macro>
<macro name="title">
<choose>
<if type="book thesis map report" match="any">
<text variable="title" font-style="italic"/>
</if>
<else-if type="paper-conference speech chapter article-journal article-magazine article-newspaper entry entry-dictionary entry-encyclopedia post-weblog post webpage broadcast" match="any">
<text variable="title"/>
</else-if>
<else>
<text variable="title" font-style="italic"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter="&#160;: ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="." text-case="lowercase" strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="nb-pages">
<choose>
<if type="report" match="none">
<choose>
<if is-numeric="number-of-pages">
<group delimiter="&#160;">
<text variable="number-of-pages"/>
<text value="p."/>
</group>
</if>
<else>
<text variable="number-of-pages"/>
</else>
</choose>
</if>
<else-if type="report" match="any">
<choose>
<if is-numeric="page">
<group delimiter="&#160;">
<text variable="page"/>
<text value="p."/>
</group>
</if>
<else>
<text variable="page"/>
</else>
</choose>
</else-if>
</choose>
</macro>
<citation disambiguate-add-year-suffix="true">
<sort>
<key variable="issued"/>
</sort>
<layout prefix="(" suffix=")" delimiter="&#160;; ">
<text macro="author-short" suffix=" "/>
<text macro="year-date"/>
<text variable="locator" prefix="&#160;:&#160;"/>
</layout>
</citation>
<bibliography>
<sort>
<key macro="author"/>
<key variable="issued"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<group font-weight="bold">
<text macro="author-short" suffix="&#160;"/>
<text macro="year-date" suffix="&#8239;: "/>
</group>
<group>
<text macro="author" suffix=".&#160;&#8212; "/>
</group>
<group delimiter=" " suffix=".">
<choose>
<if type="thesis">
<text macro="title" suffix="&#160;:"/>
<text variable="genre" suffix="." text-case="lowercase"/>
<text macro="publisher" suffix=","/>
<text macro="year-date" suffix="."/>
<text macro="nb-pages"/>
</if>
<else-if type="report">
<text macro="title" suffix="&#160;:"/>
<text variable="genre" suffix="." text-case="lowercase"/>
<text macro="publisher" suffix=","/>
<text macro="year-date" suffix="."/>
<text macro="nb-pages"/>
</else-if>
<else-if type="book">
<text macro="title" suffix="."/>
<text macro="edition" suffix="."/>
<text macro="publisher" suffix=","/>
<text macro= "year-date" suffix="."/>
<text variable="number-of-volumes" suffix=" vol.,"/>
<text macro="nb-pages"/>
<text macro="collection"/>
</else-if>
<else-if type="article-journal article-magazine article-newspaper entry-dictionary entry-encyclopedia" match="any">
<text macro="title" suffix="."/>
<group delimiter=", " suffix=".">
<group delimiter=" " >
<text variable="container-title" font-style="italic"/>
<choose>
<if variable="URL">
<text value="[en ligne]"/>
</if>
</choose>
</group>
<text variable="volume"/>
<text variable="issue"/>
<text macro="year-date"/>
<text macro="pages"/>
</group>
<choose>
<if variable="URL">
<group delimiter=" ">
<text macro="access" prefix="[" suffix="]"/>
<text variable="URL"/>
</group>
</if>
</choose>
</else-if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" suffix="."/>
<text value="In&#160;:" font-style="italic"/>
<text macro="container-author" suffix="&#160;&#8212;" />
<group delimiter=" : " suffix=".">
<text variable="container-title" font-style="italic"/>
<text variable="event"/>
</group>
<text macro="edition" suffix="."/>
<text macro="publisher" suffix=","/>
<text macro= "year-date" suffix=","/>
<text macro="pages"/>
<text macro="collection"/>
</else-if>
</choose>
</group>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment