Opened 9 years ago
Closed 9 years ago
#820 closed defect (wontfix)
delimiter on a date wrapper doesn't work
| Reported by: | codec | Owned by: | simon |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | styles | Version: | 1.0 |
| Keywords: | Cc: |
Description
I believe this should work to put separators in. E.g.
<date variable="issued" prefix=" (" suffix=")." delimiter=" ">
<date-part name="month" form="long"/>
<date-part name="year"/>
</date>
Should put a space between the month and year. Doesn't seem to work in my tests.
Change History (2)
comment:1 Changed 9 years ago by dstillman
- Component changed from uncategorized to styles
- Owner changed from dstillman to simon
comment:2 Changed 9 years ago by simon
- Resolution set to wontfix
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Actually, it should add a delimiter between two separate dates, so if you have:
<date variable="issued accessed" prefix=" (" suffix=")." delimiter=", "> <date-part name="month" form="long"/> <date-part name="year"/> </date>then you'll get a comma between the two dates. This was done primarily for consistency with <names> and <text>, which also behave this way. A delimiter shouldn't really be necesary, since it should be safe to assume that any date with a day has a month and any date with a month has a year (and Zotero enforces this), so a prefix/suffix system should suffice.