SmartDates
The person_note, book_note, and film_note prototypes use SmartDates. By judicially assigning values to $StartDate, $DueDate, and $EndDate, date information will automatically export in one of four different way—either as a closed date span, an open date span, a single date, or in a “primary [secondary]” format:
- To export a closed date span, assign
$StartDateand$EndDateand keep$DueDate empty. - To export an open date span, assign
$StartDateor$EndDateand keep$DueDate empty. - To export a single date, assign
$DueDate. Even if$StartDateand$EndDatehave values, only the single value of$DueDatewill be exported. This is great for carrying a (e.g., biographical) date span in the background for extraction in other places. - To export a primary date followed by a secondary date in brackets, assign
$DueDateand$EndDate.
This feature holds for SmartPanels, Wells, SmartButtons, and Undertitles.
Examples
$StartDate = 1724; $DueDate =; $EndDate;
(1724 – … )
$StartDate =; $DueDate = 1781; $EndDate;
1781
$StartDate =; $DueDate =; $EndDate = 1804;
( … – 1804)
$StartDate = 1724; $DueDate=; $EndDate = 1804;
(1724 – 1804)
$StartDate =; $DueDate = 1781; $EndDate = 1787;
1781 [1787]
$StartDate =1724; $DueDate = 1781; $EndDate = 1804;
1781