issues
search
NaturalHistoryMuseum
/
phthiraptera-transcription
App for transcription of phthiraptera slide data
GNU General Public License v3.0
0
stars
0
forks
source link
Recording ranges is not possible
#29
Closed
PaulKiddle
closed
4 years ago
PaulKiddle
commented
4 years ago
UI - Add extra field & tooltip
Create Date component, name => name.year, name.month, name.day
Create eventDate component, name => name.start, name.end
Validation - Parse date & verify range
Feed into lib like
https://github.com/datatypesjs/interval#readme
Convert to ISO 8601 date
Migration - Add/modify database field
Add eventDate field, keep year, month, day, range as backups
Convert existing dates to eventDate (check using db dump first)
Insert & update
Record both ydmr & eventDate for all fields
Fetch back from db on read