datadavev / DwC_views

Implements viewers for Darwin Core record repositories
1 stars 0 forks source link

JQuery Plugin Client - Data Types / Data Formatting #26

Open coreyo opened 13 years ago

coreyo commented 13 years ago

The results in the table need some extra formatting to be pretty. We need at least 3 basic types: String, Date, Number . We need some options to specify formatting for these types (i.e. max lenth, max decimal places, date format, etc). We should also allow for the user to define default value for a given field.

datadavev commented 13 years ago

Can something like sprintf for javascript ( http://www.diveintojavascript.com/projects/javascript-sprintf ) be used? The format string would be the pretty formatting parameter, configurable for each field.

coreyo commented 13 years ago

I haven't begun to implement anything on this front yet. MY current idea is to have a standard/default formatting for each data type (as identified by the SOLR backend). An override "format" function may then be specified for each individual field in the public settings/API. Will handle this when it becomes a priority.