Abridged title in subsequent citations

Hi !

I would like to use the abridged title of some very frequently cited books in my publication.
So
- only if if the abridged title field of the book is filled in my Zotero Databank
- And, only in footnotes
- And, for subsequent citations only

I would like to display:
abridged title, locator.

instead of

author, book title, locator.

So for example.

Jobs, p. 12. (with "Jobs", as the abridged title)
instead of:
Walter Isaacson, Steve Jobs, p. 12.

other example:

Shaping body politic, p. 12.
instead of:
Maurie Dee Mcinnis, Louis P Nelson, Shaping the body politic: Art and political formation in early america, p. 12.


I apologize for this request. I managed in the past years to do some modifications in some existing styles, using the abundant and useful documentation. But i think this time, this modification is beyond my skills.
;)
  • The general idea is to use
    <if variable="title-short">
    to test for the presence of a short title
    for the part of the citation where <if position="subsequent">

    getting the details right will take some more tweaking, but that should give you the general idea.
  • Thanks.
    Here is what I tried.

    1) I added the macro title-short.
    <macro name="title-short">
    <choose>
    <if type="bill book graphic legal_case motion_picture report song" match="any">
    <text variable="title" font-style="italic" form="short"/>
    </if>
    <else>
    <text variable="title" quotes="true" form="short"/>
    </else>
    </choose>
    </macro>


    2) I tried to use <if variable="title-short">.

    <else-if position="subsequent">
    <choose>
    <if match="any" variable="title-short">
    <group>
    <text variable="title-short" form="short" text-case="capitalize-first" font-variant="small-caps"/>
    <label plural="never" variable="page" form="short"/>
    <text variable="locator"/>
    </group>
    </if>
    <else>
    <text macro="author"/>
    <group delimiter=", ">
    <choose>
    <if type="book graphic report" match="any">
    <text macro="title-short" font-style="normal"/>
    </if>
    <else>
    <text macro="title-short" text-case="capitalize-first" quotes="false" font-style="normal"/>
    </else>
    </choose>
    <text term="cited" font-style="italic" suffix="."/>
    <group delimiter=" ">
    <label plural="never" variable="page" form="short"/>
    <text variable="locator"/>
    </group>
    </group>
    </else>
    </choose>


    But something is going wrong.
    I get this:

    Daniel I BLOCK, BlockII, p. 371BlockII, p., 371.

    instead of what I expect:
    BlockII, p. 371.
  • put the whole style up on gist.github.com (paste in the window --> create public gist --> post the URL here). This looks like the subsequent citation is added in addition to the regulat citation, so probably some if/else-if combination that isn't correctly aligned.
  • edited January 3, 2015
    I modified an existing style.
    Here is the modified file for the short-title function.
    https://gist.github.com/anonymous/aab69efc0174b7f3ce62

    edit: url
  • that style works exactly like you want for me. How are you testing? Make sure you actually have that version of the style installed in Zotero.
  • You're right. It's working.
    I deleted the style, closed Zotero, re-installed the style, and now it's working fine !
    That means I did it ! Incredible ! ;)
    Thank you for your support !
Sign In or Register to comment.