archesproject / hip

Heritage inventory package for Arches
2 stars 2 forks source link

CRUD/REPORT: Dates in Classification are displayed including time stamp #16

Open mradamcox opened 6 years ago

mradamcox commented 6 years ago

From @archesprojectbot on April 21, 2015 14:34

Originally reported by: Dennis Wuthrich (Bitbucket: dwuthrich, GitHub: dwuthrich)


When editing a date in classification form and on report, the date field includes a timestamp. This is undesirable; time stamp should be removed.


Copied from original issue: archesproject/arches#228

mradamcox commented 6 years ago

From @archesprojectbot on December 30, 2015 16:26

Original comment by Adam Cox (Bitbucket: adamcox, GitHub: adamcox):


In reports, I'm using this syntax:

#!python

{{START_DATE_OF_EXISTENCE_E49.START_DATE_OF_EXISTENCE_E49__value|slice:":10"}}
mradamcox commented 6 years ago

From @archesprojectbot on November 17, 2015 18:58

Original comment by Adam Cox (Bitbucket: adamcox, GitHub: adamcox):


I'd be interested in hearing where the best place to fix this would be. I'm thinking something like getEditedDateNode() function or getDateNode() function in branch-list.js might work...

EDIT: for my purposes right now I'm just going to use data-bind="text: nodes.get('DATE.E50', 'value').slice(0,10)" in each form's HTML.