Bibliography - Removing delimiters on empty fields

edited March 5, 2018
Hi there

I'm slowly creating my own CSL style for my university based on the Monash University - Harvard one. I've got it working good enough for now, but one thing that's bugging me is the bibliography. For certain citations, it will print delimiters for an empty field in the bibliography. For example:

McFarlane, James 1976, ‘The mind of modernism’, in M. Bradbury & J. McFarlane (eds), Modernism, , pp. 71–93, Penguin.

As you can see, after 'Modernism' and before the page range, there is an extra comma. I can't figure out how to get it to not print that when it's not needed. Here's the bibliography section of the CSL:

<bibliography et-al-use-last="true" entry-spacing="0" line-spacing="2" hanging-indent="true" subsequent-author-substitute="_____">
<sort>
<key macro="author"/>
<key macro="issued-sort" sort="ascending"/>
<key macro="title"/>
</sort>
<layout>
<group delimiter=", ">
<group delimiter=" ">
<text macro="author"/>
<text macro="issued" suffix=","/>
<text macro="title-plus-extra" suffix=", "/>
<text macro="container"/>
</group>
<text macro="legal-cites"/>
<text macro="locators"/>
<group delimiter=", ">
<text macro="event"/>
<text macro="publisher" suffix="."/>
</group>
</group>
<text macro="access" prefix=". "/>
<text macro="original-date" prefix=" "/>
</layout>
</bibliography>

Can anyone give me some pointers?

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.

Sign In or Register to comment.