Problem with affix and suffix appearing twice in the middle of the in manually edited citation style

Hi Everyone,

I've tried to adapt an existing citation style to my own needs, with success so far. But now I'm facing a problem, I don't really see a solution for, so I hope to get some help from the community.

When I manually edit prefix and suffix in the word plugin, they not only appear at the beginning and end of my citation, but also before and after the volume term.

First Example:
[1] Vgl. Bloch, Marc, Lucien Febvre und Fernand Braudel: Schrift und Materie der Geschichte. Vorschläge zur systematischen Aneignung historischer Prozesse, Vgl. Bd. 814, hrsg. v. Claudia Honegger, Frankfurt am Main: Suhrkamp 1977 (Edition Suhrkamp).

But it should look like this:

[1] Vgl. Bloch, Marc, Lucien Febvre und Fernand Braudel: Schrift und Materie der Geschichte. Vorschläge zur systematischen Aneignung historischer Prozesse, Bd. 814, hrsg. v. Claudia Honegger, Frankfurt am Main: Suhrkamp 1977 (Edition Suhrkamp).

Or to make it more obvious:
####thisistheprefixfield#####BLOCH, Marc, Lucien FEBVRE und Fernand BRAUDEL: Schrift und Materie der Geschichte. Vorschläge zur systematischen Aneignung historischer Prozesse, ####thisistheprefixfield#####Bd. 814####thisisthesuffixfield#####, hrsg. v. Claudia HONEGGER, Frankfurt am Main: Suhrkamp 1977 (Edition Suhrkamp), S. 5####thisisthesuffixfield#####.

Would be great if you could help me. When this is fixed, I'll add the citation style to the repository.

Thanks a lot,

Sascha

__________________

You can download the csl-File here:
http://www.saschafoerster.de/images/stories/zotero/zoterosf.zip

Its the "Geisteswissenschaften"-File, which makes problems.
  • edited October 26, 2011
    please put the citation style up as a public gist to gist.github.com
    Downloading, unzipping, opening takes a lot of time.

    (never mind - see Rintze below).
  • edited October 26, 2011
    Your style isn't valid CSL (http://www.zotero.org/support/dev/citation_styles#validation), which might very well explain the problem. The error is the following section:

    <layout delimiter="; " suffix=". ">
    <text term="volume" form="short" suffix=". " strip-periods="true"/>
    <text variable="volume"/>
    </layout>


    (cs:layout is only allowed as a direct child element of cs:citation or cs:bibliography)
  • https://gist.github.com/1317049
  • Wow, you are quicker in answering, than I could post it on github! :)

    I'll try to fix and tell you later, if this works!
    Thanks a lot!
  • It just works:

    i simply deleted to layout parts before and after this code parts to this:

    <text term="volume" form="short" suffix=". " strip-periods="true"/>
    <text variable="volume"/>

    Now it works as expected.

    Thanks a lot!
Sign In or Register to comment.