Skip to content

Commit

Permalink
improvements and fixes according DGfP citation rules
Browse files Browse the repository at this point in the history
- no spaces between initials in names
- in articles no space between issue and volume
- no comma before '&'
- collection title in brackets
- no italicisation of titles in articles and book chapters
- ibid handling for subsequent citations
- better formatting for 'access' entries
- minor tweaks
  • Loading branch information
migux committed Oct 18, 2013
1 parent 3a24a78 commit db79f80
Showing 1 changed file with 50 additions and 60 deletions.
110 changes: 50 additions & 60 deletions deutsche-gesellschaft-fur-psychologie.csl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
<name>Daniel Hirsbrunner</name>
<email>dhirsbrunner@gmx.ch</email>
</author>
<contributor>
<name>Michael Zaugg</name>
</contributor>
<category citation-format="author-date"/>
<category field="psychology"/>
<updated>2010-01-27T20:08:03+00:00</updated>
<updated>2013-08-29T05:27:03+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="de">
Expand All @@ -26,8 +29,8 @@
<if type="chapter paper-conference" match="any">
<text term="in" text-case="capitalize-first" suffix=" "/>
<names variable="editor translator" delimiter=", " suffix=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=" (" text-case="capitalize-first" suffix=")"/>
<name and="symbol" initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" text-case="capitalize-first" suffix=".)"/>
</names>
</if>
</choose>
Expand All @@ -36,15 +39,16 @@
<choose>
<if type="chapter paper-conference" match="none">
<names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
<name and="symbol" initialize-with=". " delimiter=", "/>
<name and="symbol" initialize-with="." delimiter=", "
delimiter-precedes-last="never"/>
<label form="short" prefix=", " text-case="capitalize-first"/>
</names>
</if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
<substitute>
<names variable="editor"/>
Expand All @@ -70,59 +74,30 @@
</substitute>
</names>
</macro>
<macro name="access">
<macro name="access">
<choose>
<if type="thesis">
<if type="article-newspaper" match="none">
<choose>
<if variable="archive" match="any">
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<text variable="archive" suffix="."/>
<text variable="archive_location" prefix=" (" suffix=")"/>
</group>
<if variable="DOI">
<text value="doi:"/>
<text variable="DOI"/>
</if>
<else>
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<else-if variable="URL">
<text value="Verfügbar unter:" suffix=" "/>
<group delimiter=" ">
<text variable="URL"/>
<group>
<text value="Stand:" prefix="[" suffix=" "/>
<date variable="accessed">
<date-part name="day" suffix="."/>
<date-part name="month" form="numeric" suffix="."/>
<date-part name="year" suffix="]"/>
</date>
</group>
</group>
</else>
</else-if>
</choose>
</if>
<else>
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi:"/>
</if>
<else>
<choose>
<if type="webpage">
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<date variable="accessed" suffix=", ">
<date-part name="day" suffix=". "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
<group>
<text term="from" suffix=" "/>
<text variable="URL"/>
</group>
</group>
</if>
<else>
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<text variable="URL"/>
</group>
</else>
</choose>
</else>
</choose>
</else>
</choose>
</macro>
<macro name="title">
Expand All @@ -134,11 +109,13 @@
<text variable="number" prefix=" No. "/>
</group>
</if>
<else-if type="bill book graphic legal_case motion_picture report song manuscript speech" match="any">
<else-if type="bill book graphic legislation motion_picture report song" match="any">
<text variable="title" font-style="italic"/>
<text variable="collection-title" prefix=" (" suffix=")" />
</else-if>
<else>
<text variable="title" font-style="italic"/>
<text variable="title"/>
<text variable="collection-title" prefix=" (" suffix=")" />
</else>
</choose>
</macro>
Expand Down Expand Up @@ -221,7 +198,7 @@
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
<text term="edition" form="long"/>
</group>
</if>
<else>
Expand All @@ -235,7 +212,7 @@
<group prefix=", " delimiter=", ">
<group>
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
<text variable="issue" prefix=" (" suffix=")"/>
</group>
<text variable="page"/>
</group>
Expand All @@ -244,11 +221,11 @@
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="edition"/>
<group>
<text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=" "/>
<text term="volume" form="long" plural="true" text-case="capitalize-first" suffix=" "/>
<number variable="number-of-volumes" form="numeric" prefix="1-"/>
</group>
<group>
<text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
<text term="volume" form="long" text-case="capitalize-first" suffix=" "/>
<number variable="volume" form="numeric"/>
</group>
<group>
Expand All @@ -265,17 +242,31 @@
<text variable="locator" prefix=" "/>
</group>
</macro>
<citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year">
<citation et-al-min="6" et-al-use-first="6" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year">
<sort>
<key macro="author"/>
<key macro="issued-year"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid"/>
<text macro="citation-locator"/>
</group>
</if>
<else-if position="ibid">
<text term="ibid"/>
</else-if>

<else>
<group delimiter=", ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</else>
</choose>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="8" et-al-use-first="7" entry-spacing="0">
Expand All @@ -294,7 +285,6 @@
<text macro="secondary-contributors"/>
<group delimiter=", ">
<text variable="container-title" font-style="italic"/>
<text variable="collection-title"/>
</group>
</group>
</group>
Expand All @@ -304,7 +294,7 @@
<text macro="publisher"/>
</group>
</group>
<text macro="access" prefix=". "/>
<text macro="access" prefix=" " suffix="."/>
</layout>
</bibliography>
</style>

0 comments on commit db79f80

Please sign in to comment.