Is there a way to skip the n.d. if there's no date given?

I'm using Harvard referencing, and I would like to avoid using the n.d. standard for when there's no date given. Instead I'd like to just use (Author). I can't seem to find the n.d. defined in the .csl file, so I assume it's an in-built Zotero behaviour when there's no date. Is there some way to change this?

Thanks.
  • Actually, I figured out a way to do it... just edited the citation xml:

    <citation>
    <option name="et-al-min" value="3"/>
    <option name="et-al-use-first" value="1"/>
    <option name="et-al-subsequent-min" value="3"/>
    <option name="et-al-subsequent-use-first" value="1"/>
    <option name="disambiguate-add-year-suffix" value="true"/>
    <option name="disambiguate-add-names" value="true"/>
    <option name="disambiguate-add-givenname" value="true"/>
    <layout prefix="(" suffix=")" delimiter="; ">
    <group delimiter=", ">
    <group delimiter=" ">
    <text macro="author-short"/>
    <choose>
    <if variable="year-date">
    <text macro="year-date"/>
    </if>
    </choose>
    </group>
    <group>
    <label variable="locator" suffix="." form="short"/>
    <text variable="locator"/>
    </group>
    </group>
    </layout>
    </citation>

    It was this section that I edited:

    <choose>
    <if variable="year-date">
    <text macro="year-date"/>
    </if>
    </choose>
  • Um... seems that didn't actually work, I spoke too soon. It just doesn't do dates at all the way I've changed it. Any suggestions?
  • For Harvard 1, change
    <macro name="year-date">
    <choose>
    <if variable="issued">
    <date variable="issued">
    <date-part name="year"/>
    </date>
    </if>
    <else>
    <text term="no date"/>
    </else>
    </choose>
    </macro>

    into
    <macro name="year-date">
    <date variable="issued">
    <date-part name="year"/>
    </date>
    </macro>
  • Thanks, Rintze, that was exactly what I was looking for.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.