3 Problems with Page Indications

Hello everyone,
I have been trying to modify the "Chicago Fullnote Bibliography" csl file in 3 regards, however, I did not quite succeed:

1. I have entered all the page-numbers into the zoter Word plugin as simple numbers (eg. "31"). So I would like to add a standard prefix to ALL of them (eg. "p. ") via the csl file. I have succeeded with journal-articles, but not with ALL media types.

2. Regarding the media type "chapter" I would like to automatically use the page indications of a chapter (that I have previously entered into the zotero information sheet in Firefox) in the corresponding citation (e.g. ", p. 45-59, hier: X" the X being the acutal page number entered into the Word plugin)

3. Regarding the media type "chapter" the author of the BOOK is by default inserted AFTER the book-title (eg. ", by Sigmund Freud"). However, it should be IN FRONT OF the title followed by a colon (eg. "Sigmund Freud: ").

I am grateful for any help since I have already written a lot of text confiding in the flexibility of the zotero system.
Markus
  • Chicago is a complex style, so explaining how to do all of this will take more time than I have right now (I'll come back if someone else doesn't step in, but briefly:
    First of all - all of this is very much possible.

    1 and 2: the variable that calls the page number from the word plugin is called "locator" - if you find that it should be easy to modify to have "p." in front

    3. "Sigmund Freud" will be in a macro called container-contributor I believe. The variable of the book title for a chapter item is called "container-title"

    I realize these are just starting points, but if you're in a hurry those might help you along until someone can get you actual answers.
  • Dear Adam,
    Thanks to you I could solve all 3 problems within reasonable time. Thank you very much!

    But there is one thing I could not do regarding the media type "chapter": If the author of the "chapter" equals the author of the "book", within which the chapter is contained, the author of the "book" should be referred to as "Ders." in the corresponding citation. I think the argument should have the following logical form, however I cannot implement it correctly in CSL:

    IF variable="container-author" EQUALS variable="author"
    THEN
    USE "Ders." INSTEAD OF variable="container-author"

    I think I should put this code somewhere inside the macro "editor-translator", but I am not sure where exactly to place it. Right now the passage I think I should modify looks like this:

    <if variable="container-author">
    <group prefix="in: ">
    <names variable="container-author">
    <label form="verb-short" prefix=" " text-case="lowercase" suffix=" "/>
    <name and="symbol" delimiter=", "/>
    </names>
    </group>
    </if>

    Best
    Markus
  • that's not possible at the moment, sorry - you cannot use if to test for the content of a variable and there is no other way to get "ders" in a style.
    I know this is pretty common in Germany, unfortunately it's pretty much unheard of in the US, so this wasn't something the creator of CSL accounted for - I fear it won't be in the next version of CSL either (not sure, though).
  • edited August 1, 2010
    For what it's worth, I have been mulling over some ideas for providing explicit control in CSL over "collapsing" behavior based on matches in variable content, which could be used to address this, among other issues. (I'm thinking [with untested optimism] that an explicit collapsing/replacement mechanism might provide an economical means for CSL to cope with "hierarchical" item types.) The scheme I have in mind is just a personal fantasy at the moment, but when I get a concrete syntax proposal together I'll be floating it to the CSL group. Even if things go well there, though, the horizon for its appearance would probably be well over a year away.
  • O.k. I have come up with a solution regarding the "chapter" media type: If "container-author" equals "author" just leave "container-author" blank in the zotero media information sheet. Then you can check with match="none" and insert "in: Ders., ".

    Is there a possibiltiy to check in CSL if there are multiple authors or just one in the information sheet?

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.