Spurious comma after date range in "issued" field
Hi,
I am trying to use a date range for certain citations, i.e. show the date as e.g. "1999-2002" instead of just "1999".
To do this, I am inputting "Issued: 1999/2002" in the "Extra" field in Zotero. But for some reason, this outputs to "1999-2002, . " with a spurious comma and space at the end, before the suffix I want (a period and a space)
This is not in my code, which specifies only the period and the space), and only happens if I input a date range. If I type "Issued: 1999", the output is "1999. ", as expected.
Has anyone encountered this before?
I am trying to use a date range for certain citations, i.e. show the date as e.g. "1999-2002" instead of just "1999".
To do this, I am inputting "Issued: 1999/2002" in the "Extra" field in Zotero. But for some reason, this outputs to "1999-2002, . " with a spurious comma and space at the end, before the suffix I want (a period and a space)
This is not in my code, which specifies only the period and the space), and only happens if I input a date range. If I type "Issued: 1999", the output is "1999. ", as expected.
Has anyone encountered this before?
(you can place <code></code> around codes snippets here, but please don't use the forums for anything >10lines since that become unwieldy. )
https://pastebin.com/kg7K2JWc
For an immediate fix, I'd just recommend getting rid of the suffix in favor of a group delimiter, along the lines of:
<group delimiter=", " suffix=", ">
<date date-parts="year-month" form="numeric" variable="issued"/>
<number prefix="vol. " variable="volume"/>
<number prefix="n° " variable="issue"/>
</group>
It's generally preferable to work with delimiters as much as possible anyway.
@Euan_Wall An alternative for now might be to do a group with a delimiter instead of a suffix on the date.
However, when I amended your kindly suggested code with periods when appropriate, and it worked! For a book, I now have:
<group delimiter=". " suffix=". ">
<date date-parts="year" form="text" variable="issued"/>
<number suffix=" vol. " variable="number-of-volumes"/>
<number suffix=" p. " variable="number-of-pages"/>
</group>
And a date range is now outputted without the comma.
Thanks!