Problem with style

Hi all,

I have problem with my style. At the end of an item magazine-articel or books should be a "." behind the "S." but theres a ",".
Example how it should be:
Baumgartner, C. (2002): Umsetzung und Realisierung von Performance Measurement, HMD Wirtschaftsinformatik in der Praxis, Nr. 227, S. 17 - 25.
This is how it is: Baumgartner, C. (2002): Umsetzung und Realisierung von Performance Measurement, HMD Wirtschaftsinformatik in der Praxis, Nr. 227, S. 17 - 25,

It would be nice If you guys can help me!

best regards Tim






<?xml version="1.0" encoding="ISO-8859-1"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="de" class="in-text" >
<info>
<title>IKM-Style (de) 14.05.2010 iso </title>
<id>http://www.zotero.org/styles/IKM-Style</id>;
<link href="http://www.zotero.org/styles/IKM-Style"/>
<author>
<contributor>
<name>Bruce D'Arcus</name>
</contributor>
<category term="author-date"/>
<category term="generic-base"/>
<link rel="template" href="http://www.zotero.org/styles/IKM-Style"/>
<updated>2008-09-12T02:13:41+00:00</updated>
<summary>Style for the institute Information and Communicationsystems at the Technical University Berlin, German variant.</summary>
<link href="http://libweb.anglia.ac.uk/referencing/harvard.htm" rel="documentation"/>
</info>
<terms>
<locale xml:lang="de">
<term name="et-al">et al.</term>
</locale>
</terms>
<macro name="editor">
<names variable="editor" delimiter=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
</names>
</macro>
<macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first"/>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=", " initialize-with="." delimiter-precedes-last="always"
delimiter="; "/>
<label form="short" prefix=" " suffix="." text-case="lowercase"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never"
initialize-with=". " />
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="access">
<group>
<text value="" suffix=" "/>
<text variable="URL"/>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</group>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=": ">
<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"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="locator">
<group>
<text variable="locator" prefix=" "/>
</group>
</macro>

<macro name="pages">
<group>
<label variable="page" form="short" include-period="true" suffix=" " text-case="capitalize-first"/>
<text variable="page" prefix=" "/>
</group>
</macro>

<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="collapse" value="year"/>
<layout prefix="[" suffix="]" delimiter="; ">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text macro="locator"/>
</group>
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<sort>
<key macro="author"/>
<key variable="title"/>
</sort>
<layout>
<text macro="author" suffix=""/>
<date variable="issued" prefix=" (" suffix="):">
<date-part name="year"/>
</date>
<choose>
<if type="book">
<group prefix=" " delimiter=" " suffix=",">
<text macro="title"/>
<text macro="edition"/>
<text macro="editor"/>
</group>
<text prefix=" " suffix="," macro="publisher"/>
</if>
<else-if type="chapter">
<text macro="title" prefix=" " suffix=", "/>
<group class="container" prefix=" ">
<text macro="editor" prefix=" "/>
<text variable="container-title" font-style="italic" prefix=" " suffix=", "/>
<text variable="collection-title" prefix=" " suffix=", "/>
<group suffix=".">
<text macro="publisher" prefix=""/>
<group prefix="">
<text macro="pages" prefix=", "/>
</group>
</group>
</group>
</else-if>
<else>
<group suffix=",">
<text macro="title" prefix=" "/>
<text macro="editor" prefix=" "/>
</group>
<group class="container" prefix=" " suffix=",">
<text variable="container-title" font-style="italic"/>
<group prefix=", ">
<text variable="volume" suffix=". Jg., "/>
<text variable="issue" prefix=" Nr. " />
</group>
<text macro="pages" prefix=", " suffix="."/>
</group>
</else>
</choose>
<text prefix=" " macro="access" suffix="."/>
</layout>
</bibliography>
</style>
  • A few things:

    First, often easier to post the styles at http://gist.github.com/.

    Second, on the comma, this should really be the suffix for the item as a whole; right? What happens if you put a suffix="." attribute on the bibliography layout element?

    Third, you're making this style language-specific by inserting language strings in prefixes attributes. Look around at other styles to see ways around this.

    Finally, remove the "generic-base" element in the info area.
  • what bdarcus says and:
    the additional comma seems to come from:
    <group class="container" prefix=" " suffix=",">
    that group ends after the page macro, so the comma is inserted after it - while groups are a great thing, you need to make sure to keep track what is in which group.

    I hope you will contribute this style to the Zotero repository - for that, don't use capital letters in the style ID and link - i.e. make it ikm-style instead of IKM-Style
  • Thanks for the advices!

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.