modifying citation styles

Hey,
I am working on a text that references primary sources such as letters/telegrams from various archives. I am currently using Chicago (full note with bibliography) which seems like an okay match most of the time. The referenced letters i am referring to looks like this when it appears for the first time in the text, which is perfect:
“Dow (Jerusalem) to FO, Memorandum of Conversation”, March 10, 1949, FO371/75054, PRO.
However, when the same document is cited again, it looks like this
“Dow (Jerusalem) to FO, Memorandum of Conversation”.

What I want is to have them always looking like when they first appear. I am no trying to experiment with modifying the citation style after this description http://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step, but my problem is that I dont know where in the code or what I should do to that line of code in order to make it do this.

Anybody got a clue?

Best,
Marte
  • edited June 29, 2011
    Is that your own, unique, requirement, or one specified by Chicago? If the latter, could you point me to the section to verify?
  • It is my requirement, yes. I just want it to repeat doing the same for citation no 2, as it does it for no 1. In other words, I want the full citation for letters each time. Also, I would like it to look like:
    Dow (Jerusalem) to FO, Memorandum of Conversation, March 10, 1949, FO371/75054, PRO.
    not:
    “Dow (Jerusalem) to FO, Memorandum of Conversation”, March 10, 1949, FO371/75054, PRO.
    Without the " ", that is.
  • the part of the style where you want to look starts with
    <else-if position="subsequent">

    if this is only for letters this will get a bit messy - you'd probably, within that else-if, do something like
    <choose>
    <if type="letter">
    and then put in the whole code for full citations from further down
    close with
    </if>
    and then put what's currently in the <else-if>
    as
    <else>

    and close with
    </else>
    </choose>
  • Thanks Adam,
    but, I am afraid I need some more help on this one.

    I have tried (or tried to try) what you suggested here and I have a problem in that I can for the life of me figure out what is the "whole code for full citations from further down"
    Can you tell me how this looks?

    And to be sure, this is the section of the code that you are refering to?

    <else-if position="subsequent">
    <group delimiter=", ">
    <text macro="contributors-short"/>
    <text macro="title-short"/>
    <text macro="point-locators-subsequent"/>
    </group>
    </else-if>
    <else>
    <group delimiter=", ">
    <text macro="contributors-note"/>
    <text macro="title-note"/>
    <text macro="description-note"/>
    <text macro="secondary-contributors-note"/>
    <text macro="container-title-note"/>
    <text macro="container-contributors-note"/>
    </group>
    <text macro="locators-note"/>
    <text macro="collection-title" prefix=", "/>
    <text macro="issue-note"/>
    <text macro="locators-newspaper" prefix=", "/>
    <text macro="point-locators"/>
    <text macro="access-note" prefix=", "/>
    </else>
    </choose>
  • this should work - or at least almost be good enough to get you there.

    <else-if position="subsequent">
    <choose>
    <if type="letter">
    <group delimiter=", ">
    <text macro="contributors-note"/>
    <text macro="title-note"/>
    <text macro="description-note"/>
    <text macro="secondary-contributors-note"/>
    <text macro="container-title-note"/>
    <text macro="container-contributors-note"/>
    </group>
    <text macro="locators-note"/>
    <text macro="collection-title" prefix=", "/>
    <text macro="issue-note"/>
    <text macro="locators-newspaper" prefix=", "/>
    <text macro="point-locators"/>
    <text macro="access-note" prefix=", "/>
    </if>
    <else>
    <group delimiter=", ">
    <text macro="contributors-short"/>
    <text macro="title-short"/>
    <text macro="point-locators-subsequent"/>
    </group>
    </else>
    </choose>
    </else-if>
    <else>
    <group delimiter=", ">
    <text macro="contributors-note"/>
    <text macro="title-note"/>
    <text macro="description-note"/>
    <text macro="secondary-contributors-note"/>
    <text macro="container-title-note"/>
    <text macro="container-contributors-note"/>
    </group>
    <text macro="locators-note"/>
    <text macro="collection-title" prefix=", "/>
    <text macro="issue-note"/>
    <text macro="locators-newspaper" prefix=", "/>
    <text macro="point-locators"/>
    <text macro="access-note" prefix=", "/>
    </else>
    </choose>
  • Thanks again for this. I ended up adding the short title that I wanted manually in the library, but will try to use this when I have more different docs.

    I have another question though, when I cite these letters they look like this:
    “Minutes of Meeting American Section of the Executive of the Jewish Agency for Palestine - 14 April”, April 14, 1947, Z5/2361, CZA.
    Can I ask for some guidance on how I remove the quotation marks around the title? How does it look in the code where this modification has to be entered?
    Thanks again.
  • This is due to the quotes="true" in either the "title-note" (for the note) or "title" macros (for the bibliography):

    https://github.com/citation-style-language/styles/blob/79ede4406349701aee34828dd06b02b7fe862aaa/chicago-fullnote-bibliography.csl#L231
  • I'm sorry to be a bit thick about this, but is it it "true" that adds or removes the qoutation marks. I did this now:
    <macro name="title-note">
    <choose>
    <if variable="title" match="none">
    <text variable="genre"/>
    </if>
    <else-if type="letter" match="any">
    </else-if>
    <else>
    <text variable="title" quotes="true"/>
    </else>
    </choose>
    </macro>

    And that only added an extra set of quotation marks...obviusly wrong. What needs to change?

    Thanks again.
  • edited July 7, 2011
    See http://citationstyles.org/downloads/specification.html#quotes

    The Zotero "Letter" item type maps to "personal_communication" in CSL (http://gsl-nagoya-u.net/http/pub/csl-fields/letter.html), so you could use:


    <else-if type="bill book graphic legal_case motion_picture report song" match="any">
    <text variable="title" font-style="italic"/>
    </else-if>
    <else-if type="personal_communication">
    <text variable="title"/>
    </else-if>
    <else>
    <text variable="title" quotes="true"/>
    </else>
  • I think I did it! A million thanks your way! At least it looks good so far, lets now only hope that I can save the change and refresh the citations successfully!
Sign In or Register to comment.