Modify existing style

Hi,

as a german user I'd like to modify one of the exsiting styles in order to use the citation I need.

Unfortunately, the (in my mind) most simple way did not work: I tried to use the install-mechanism under http://www.zotero.org/styles/ by uploading the same structure to my own server with the modified XML-Files. But the install-routine did not start in zotero as it did under the original branch at http://www.zotero.org/styles/

So, I would appreciate some help with the modification of exisiting styles!

Thank you and best wishes,
Christian
  • Tell us what you need to modify first. If it's just about German language terms, then you should need to modify a style; there just might be a missing translation.
  • Hi, I have to modify the APA-style in that way:

    ---------------------
    Citation
    ---------------------
    FROM: (Miller, 1997, S. 177)

    TO: (Miller 1997, S. 177)

    ---------------------
    Bibliography
    ---------------------
    FROM:
    Mandl, H., Gruber, H., & Renkl, A. (2002). Situiertes Lernen in multimedialen Lernumgebungen. In Information und Lernen mit Multimedia und Internet (S. 139-148). Weinheim: Beltz PVU.

    TO
    Mandl, H., Gruber, H., & Renkl, A. (2002): Situiertes Lernen in multimedialen Lernumgebungen. In: Information und Lernen mit Multimedia und Internet. Weinheim: Beltz PVU, S. 139-148.

    Moreover, the german APA-Style causes an error at the handling of pages: there always appear two dots after the "S." --> (S.. 177) and not (S. 177)

    Unfortunately, the zotero database lacks a field for editors when adding book-chapters. In some german publications, the editors are always listed - even when chapters are cited.

    It would be great if Zotero could be improved by these handles!

    Thanks and best wishes
    Christian
  • Moreover, the german APA-Style causes an error at the handling of pages: there always appear two dots after the "S." --> (S.. 177) and not (S. 177)
    This looks like a bug in Zotero.
    Unfortunately, the zotero database lacks a field for editors when adding book-chapters.
    Incorrect. So this is user error ;-)

    It seems like you need just minor changes in APA then.

    Can you do me a favor and test the new dev APA style I was working on? If it's correct except for the minor punctuation issues you note (as well as the bug), let me know. Well, and let me know if there are any other problems.

    Once that's sorted out, I'll suggest you modify that APA style to suit your needs, and submit it to the Zotero repository for hosting. You need to give it a new name and ID obviously.
  • No problem, where can I find the new APA style?
  • http://www.zotero.org/styles/, under Dev Styles
  • Hi,

    I can find no difference between the original and the dev-style.
    Of course, I would like to submit a new style but testing is a problem. I wanted to use the webbased install-mechanism for testing purposes but it didnt work. So, could you perhaps tell me how to install a modified style easily? The description i found on the zotero homepage seemed to be too risky for my database.

    Best wishes
    Christian
  • ..sorry, maybe im totally blind but i did not find any field for adding the editors when creating a new book-chapter...
  • You can import a CSL file on disk using Import... from the Actions menu.
  • ..sorry, maybe im totally blind but i did not find any field for adding the editors when creating a new book-chapter...
    See the FAQ.
  • Thank you for the hints!
    I tried Actions -> Import and zotero told me that it cannot find a translator/interpreter (german: "Übersetzer") for the file. Do you have an idea?
  • The feature for adding editors is really great!
    I think it would be even more usable, if there would appear an arrow next to the field "author". Then it would be even more obvious that this type can be modified.
  • On the style, I was speculating that you can just do a fairly simple modification; e.g.:

    <layout suffix=".">
    <text macro="author" suffix="."/>
    <text macro="issued"/>
    <text macro="title" prefix=": "/>
    <text macro="container-prefix" prefix=": "/>


    If we improve the APA macros, then we can copy them back over.

    Make sure you submit your style to the repository when you're done so other people can use it.
  • Well, here is my first version of new style called "zfpaed":

    <?xml version="1.0" encoding="UTF-8"?>
    <?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" class="in-text" xml:lang="en">
    <info>
    <title>Zeitschrift fuer Paedagogik</title>
    <id>http://www.zotero.org/styles/zfpaed</id>;
    <link href="http://www.zotero.org/styles/zfpaed"/>
    <author>
    <name>Christian Bogner</name>
    <email>christian.bogner@gmail.com</email>
    </author>
    <category term="paedagogics"/>
    <category term="generic-base"/>
    <category term="author-date"/>
    <updated>2008-01-28T07:27:14+00:00</updated>
    </info>
    <macro name="editor-translator">
    <names variable="editor translator" prefix="(" suffix=")" delimiter=", ">
    <name and="symbol" initialize-with=". " delimiter=", "/>
    <label form="short" prefix=", " text-case="capitalize-first" suffix="."/>
    </names>
    </macro>
    <macro name="author">
    <names variable="author">
    <name name-as-sort-order="all" sort-separator=", " initialize-with=". "
    delimiter="/" delimiter-precedes-last="always"/>
    <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text macro="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="author-short">
    <names variable="author">
    <name form="short" delimiter="/" initialize-with=". " delimiter-precedes-last="always"/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <choose>
    <if type="book">
    <text variable="title" form="short"/>
    </if>
    <else>
    <text variable="title" form="short" quotes="true"/>
    </else>
    </choose>
    </substitute>
    </names>
    </macro>
    <macro name="access">
    <choose>
    <if variable="DOI">
    <text variable="DOI" prefix="doi: "/>
    </if>
    <else>
    <group>
    <text term="retrieved" text-case="capitalize-first" suffix=" "/>
    <date variable="accessed" suffix=", ">
    <date-part name="month" suffix=" "/>
    <date-part name="day" suffix=", "/>
    <date-part name="year"/>
    </date>
    <group>
    <text term="from" suffix=" "/>
    <text variable="URL"/>
    </group>
    </group>
    </else>
    </choose>
    </macro>
    <macro name="title">
    <choose>
    <if type="book">
    <text variable="title" text-case="sentence"/>
    </if>
    <else>
    <text variable="title" text-case="sentence"/>
    </else>
    </choose>
    </macro>
    <macro name="publisher">
    <group delimiter=": ">
    <text variable="publisher-place"/>
    <text variable="publisher"/>
    </group>
    </macro>
    <macro name="event">
    <text variable="event"/>
    <text variable="event-place" prefix=", "/>
    </macro>
    <citation>
    <option name="et-al-min" value="4"/>
    <option name="et-al-use-first" value="1"/>
    <option name="et-al-subsequent-min" value="4"/>
    <option name="et-al-subsequent-use-first" value="1"/>
    <option name="disambiguate-add-year-suffix" value="true"/>
    <option name="disambiguate-add-names" value="true"/>
    <option name="disambiguate-add-givenname" value="true"/>
    <option name="collapse" value="year"/>
    <sort>
    <key macro="author"/>
    <key variable="issued"/>
    </sort>
    <layout prefix="(" suffix=")" delimiter="; ">
    <group delimiter=" ">
    <text macro="author-short"/>
    <date variable="issued">
    <date-part name="year"/>
    </date>
    </group>
    <group>
    <label variable="locator" include-period="false" form="short" prefix=", "/>
    <text variable="locator" prefix=" "/>
    </group>
    </layout>
    </citation>
    <bibliography>
    <option name="hanging-indent" value="false"/>
    <option name="et-al-min" value="6"/>
    <option name="et-al-use-first" value="6"/>
    <sort>
    <key macro="author"/>
    <key variable="issued"/>
    </sort>
    <layout>
    <text macro="author"/>
    <group prefix=" (" suffix="):">
    <date variable="issued">
    <date-part name="year"/>
    </date>
    <choose>
    <if type="book chapter article-journal" match="none">
    <date variable="issued">
    <date-part prefix=", " name="month"/>
    <date-part prefix=" " name="day"/>
    </date>
    </if>
    </choose>
    </group>
    <choose>
    <if type="book">
    <group suffix=".">
    <text macro="title" prefix=" "/>
    <text macro="editor-translator" prefix=" "/>
    <text variable="edition" prefix=" (" suffix=")"/>
    </group>
    <text prefix=" " suffix="." macro="publisher"/>
    </if>
    <else-if type="chapter">
    <text macro="title" prefix=" "/>
    <group class="container" prefix=". ">
    <text term="in" text-case="capitalize-first" suffix=": "/>
    <group delimiter=": " suffix=".">
    <names variable="editor translator" delimiter=", ">
    <name and="symbol" sort-separator=", " initialize-with=". "/>
    <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
    </names>
    <group delimiter=" ">
    <text variable="container-title" suffix="."/>
    <group>
    <text variable="collection-title" suffix="."/>
    <text macro="publisher" suffix="."/>
    </group>
    </group>
    </group>
    <label variable="page" form="short" include-period="false" prefix=" " suffix=". "/>
    <text variable="page" suffix="."/>
    </group>

    </else-if>
    <else>
    <group suffix=".">
    <text macro="title" prefix=" "/>
    <text macro="editor-translator" prefix=" "/>
    </group>
    <group class="container" prefix=" " suffix=".">
    <text term="in" text-case="capitalize-first" suffix=": "/>
    <text variable="container-title" suffix=" "/>
    <text variable="volume" suffix=", "/>
    <text variable="issue" prefix="H. " suffix=", "/>
    <label variable="page" form="short" suffix=" "/>
    <text variable="page"/>
    </group>
    </else>
    </choose>
    <text prefix=" " macro="access"/>
    </layout>
    </bibliography>
    </style>
  • I tried Actions -> Import and zotero told me that it cannot find a translator/interpreter (german: "Übersetzer") for the file. Do you have an idea?
    My mistake. You have to load the CSL file in the browser, either with File->Open or by dragging it in. You should then get a prompt for install.
    I think it would be even more usable, if there would appear an arrow next to the field "author".
    There is. Do you not see one? Platform? Screenshot?
  • Thank you, the Import works using the OPEN-dialogue.

    My zotero does not show an arrow because i'm using another theme (iFox). The iFox theme looks great but has some limitations obviously...

    By the way, what does it mean to submit my new style to the repository? Sorry, but i'm rather unexperienced with CVS :-/

    Christian

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.