EPrints Technical Mailing List Archive

Message: #03616


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Min Resolution on date fields


Hi Andrew,

>From GitHub, it looks like 'min_resolution' was removed from the 'master' branch:
https://github.com/eprints/eprints/blob/master/lib/defaultcfg/cfg.d/eprint_fields.pl
but was left as a remnant in the 3.3 branch (that your install will be based on):
https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/eprint_fields.pl

Further to that commit in the master branch, the metafield workflow still asks for a min_resolution:
https://github.com/eprints/eprints/blob/master/lib/workflows/metafield/default.xml#L72

 - so neither the 3.3 /or/ the master branch are fully 'right' :o\

That might explain *why* it's not working, but probably doesn't help you achieve what you want/need to do :o\
I would take a look at cfg.d/field_validation.pl or cfg.d/eprint_validation.pl, and add a check in there for the date field having at least the year and month parts set.

Cheers,
John




-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 24 November 2014 10:57
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Min Resolution on date fields

Hello all!

I’m currently trying to change the min_resolution on the stock date field to be “month” rather than “year”. I’ve changed this in our test environment in the eprint_fields.pl file in cfg.d, restarted the server but the validation is still allowing dates with only years through. Is there something I’m missing?

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://www.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/