EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #00805
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: creators_id required
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: creators_id required
- From: Yuri <yurj@alfa.it>
- Date: Wed, 27 Jun 2012 15:20:31 +0200
I would like to force the user to enter the creators_id in the creators field. I can make the field required using the workflow, but it does not force the user to fill the id part (I use it for the email).
creators_name and creators_given are checked by fields_validate.pl, but I'm unable to do the same check using creators_id, as you can see in the code below.
Any idea on this? Il 27/06/2012 12:19, Yuri ha scritto:
Hi! how to configure eprints to have creators_id required? I don't know using workflow. Using fields_validate.pl, this is my code: if( $field->get_name eq "creators_id" )<- still have to add the check on the value... { push @problems, $session->html_phrase( "validate:missing_email", fieldname=>$fieldname ); } this should always return a problem, but instead it does nothing.... Any idea? *** 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/
- Follow-Ups:
- [EP-tech] Re: creators_id required
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: creators_id required
- References:
- [EP-tech] creators_id required
- From: Yuri <yurj@alfa.it>
- [EP-tech] creators_id required
- Prev by Date: [EP-tech] Re: views_render to manipulate a views index
- Next by Date: [EP-tech] Re: creators_id required
- Previous by thread: [EP-tech] creators_id required
- Next by thread: [EP-tech] Re: creators_id required
- Index(es):