Opened 9 years ago

Last modified 6 years ago

#888 new enhancement

"is-date" should return "true" only if it's a date with nothing in "parts" — at Version 1

Reported by: erazlogo Owned by: simon
Priority: major Milestone:
Component: styles Version: 1.5
Keywords: Cc: bdarcus, simon, fbennett

Description (last modified by erazlogo)

from an im with dan s.:
"is-date" should return "true" if it's a date with nothing in "parts", and fallback to the whole string otherwise.

right now "is-date" seems to return "true" if the field can be parsed into a valid date (regardless of what else it contains), which leads to the following loss of data when moving from the Zotero date field to CSL:

"1750-1754" > "1750";
"[2000?]" > "2000";
"ca. 2000" > "ca 2000";
"n.d." > "n.d"

All of the above should probably evaluate as "false" and just return the whole string.

Change History (1)

comment:1 Changed 9 years ago by erazlogo

  • Description modified (diff)
Note: See TracTickets for help on using tickets.