TexasDigitalLibrary / Vireo

Vireo is a turnkey Electronic Thesis and Dissertation (ETD) Management System.
https://texasdigitallibrary.atlassian.net/wiki/spaces/VUG/pages/87490642/About
GNU General Public License v2.0
44 stars 35 forks source link

Date formatting for certain date input fields should be customizable in UI rather than configured #1715

Open cstarcher opened 1 year ago

cstarcher commented 1 year ago

From Kevin: This also needs to be handled on the backend, such as in the teplate utility for date substitution. The existing behavior there is also hard-coded.

I suggest adding 'formatter' and/or 'format' properties to the predicates. This will need to be parsed differently on the backend and the frontend due to differences in the formatters syntax. There also needs to be something done for the 'columns'.

jcreel commented 1 year ago

Note that the current configuration is in https://github.com/TexasDigitalLibrary/Vireo/blob/main/build/appConfig.js.template#L52. It would be superior to accommodate the details at the database level and have it populated by the system data loader as well as, potentially, the UI.