Havard style, add ibid without period or author reference
Hello
I am new to CSL and am having trouble customising a citation style for my thesis.
I would like to be able to use ibid for a reference that has been previously cited.
I have had a look at different topics and tried to add in the ibid condition but I end up with "(ibid.AUTHOR, DATE)".
Here is the code below that I think is relevant to this:
<choose>
<if position="ibid-with-locator">
<text term="ibid" text-case="lowercase" suffix=", "/>
<text variable="locator"/>
</if>
<else-if position="ibid">
<text term="ibid" text-case="lowercase"/>
</else-if>
</choose>
Any help that you can offer would be most welcome, please let me know if you need more information from me.
Thanks
Alex
p.s. if you need the larger section of code, it is here:
<citation et-al-min="100" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="all-names" name-as-sort-order="all" collapse="year-suffix">
<layout prefix="(" suffix=")" delimiter="; ">
<choose>
<if position="ibid-with-locator">
<text term="ibid" text-case="lowercase" suffix=", "/>
<text variable="locator"/>
</if>
<else-if position="ibid">
<text term="ibid" text-case="lowercase"/>
</else-if>
</choose>
<group delimiter=", ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group prefix=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
I am new to CSL and am having trouble customising a citation style for my thesis.
I would like to be able to use ibid for a reference that has been previously cited.
I have had a look at different topics and tried to add in the ibid condition but I end up with "(ibid.AUTHOR, DATE)".
Here is the code below that I think is relevant to this:
<choose>
<if position="ibid-with-locator">
<text term="ibid" text-case="lowercase" suffix=", "/>
<text variable="locator"/>
</if>
<else-if position="ibid">
<text term="ibid" text-case="lowercase"/>
</else-if>
</choose>
Any help that you can offer would be most welcome, please let me know if you need more information from me.
Thanks
Alex
p.s. if you need the larger section of code, it is here:
<citation et-al-min="100" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="all-names" name-as-sort-order="all" collapse="year-suffix">
<layout prefix="(" suffix=")" delimiter="; ">
<choose>
<if position="ibid-with-locator">
<text term="ibid" text-case="lowercase" suffix=", "/>
<text variable="locator"/>
</if>
<else-if position="ibid">
<text term="ibid" text-case="lowercase"/>
</else-if>
</choose>
<group delimiter=", ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group prefix=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
<layout prefix="(" suffix=")" delimiter="; ">
<choose>
<if position="ibid-with-locator">
<text term="ibid" text-case="lowercase" suffix=", "/>
<text variable="locator"/>
</if>
<else-if position="ibid">
<text term="ibid" text-case="lowercase"/>
</else-if>
<else>
<group delimiter=", ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group prefix=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
</else>
</choose>
</layout>
<text term="ibid" text-case="lowercase" suffix=", " strip-periods="true"/>
Thank you very much for your help, I have been able to get that to work.
I understand your comment with regards to the period.
With regards to ibid I do not fully understand what I have changed, is it adding the condition that means the Author and Date will be printed in the citation unless the ibid conditions (if position, else-if position) are fulfilled (sorry if I have used the wrong terms).
If I am missing something basic here please let me know and I can have a read into it to try get my head around it.
Thanks
Alex
Alex