[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: Default date values



You want field_validate.pl

	https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/field_validate.pl

You should be able to write validation function for specific fields.

--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814





On 7 Sep 2015, at 14:46, Andrew Beeken wrote:

> Hello!
> 
> We?ve got a number of different date fields in our repository and we?re trying to standardise the data we get out of them for new deposits so that we can guarantee a DD/MM/YYYY value each time. At the moment people do not have to specify values for Day and Month and they show up in the dropdowns as ? And Unspecified respectively for blank options. Is there a way to remove these so that we can encourage people to give us somewhat more specific (or as close as possible) dates? I?ve looked through the files and I can?t seem to see any other date fields which have default values attached.
> 
> Cheers!
> Andrew
> 
> The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.
> 
> The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.
> 
> Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.
> 
> The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://lincoln.ac.uk/legal.
> 
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/