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.
;)
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.
;)
<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.
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.
Here is the modified file for the short-title function.
https://gist.github.com/anonymous/aab69efc0174b7f3ce62
edit: url
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 !