* Jason Heeris: " [Mayan EDMS: 692] Is there a way to enforce metadata structure for eg. dates?" (Thu, 15 May 2014 01:30:11 -0700 (PDT)):
Hi Jason,
> I've just installed Mayan EDMS 0.13 (using the VirtualBox .ova file), and
> have been playing around with it a bit.
>
> I'm wondering whether I can enforce a particular structure for metadata
> when it's entered. For example, one important piece of metadata is the date
> a document was received (note that this is almost certainly different to
> the date it is uploaded). At some point I will probably want to filter my
> documents based on this information (I don't know if that's possible with
> Mayan, but I'm hoping so).
>
> But it's possible I could enter "2014-01-01" for one document, and then a
> few weeks later forget what format I used last time and enter "2/1/2014"
> for another, and so on. This seems like the sort of mistake that structured
> metadata is good at preventing. Another example might be currency metadata
> ("$40" vs "10.15" vs "50c").
>
> Is this something I can do easily with Mayan?
AFAIK there is no input validation for metadata until now. The only procedure I
can recommend so far is to put current_date() in the standard field of the
metadata type to show the correct input format.
Cheers,
Mathias
--
Mathias Behrle
PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6
signature.asc
Description: PGP signature
