EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03581
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Add validation only for certain item types?
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Add validation only for certain item types?
- From: Eliseo Gatchalian <Eliseo.Gatchalian@wintec.ac.nz>
- Date: Wed, 5 Nov 2014 22:13:09 +0000
Hi All, I’m just wondering if anyone has added or know how to activate this validation only for certain item types? From eprint_validate.pl: ****** $c->{validate_eprint} = sub my ( $eprint, $session, $for_archive ) = @_; my @problems = (); # If we don’t have creators (eg. For a book) then we # must have editor(s). To disable that rule, remove the # following block. if( !$eprints->is_set( “creators” ) && !$= $eprints->is_set( “editors” ) ) my $fieldname = $session->make_element( “span”, class=>”ep_problem_field:creators” ); push @problems, $session->html_phrase ( “validate:need_creators_or_editors”, fieldname=>$fieldname ); return( @problems ); }; ********* Thanks guys! Best regards, Ellis
This electronic mail transmission is intended for the named recipients only. It may contain private and confidential information. If this has come to you in error you must take no action based upon it, nor must you copy it or show it to anyone; please telephone or email the sender at Wintec immediately and return the original email. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening any attachment which may be included with this message. |
- Prev by Date: [EP-tech] Re: Error downloading Romeo autocomplete file from eprints.org
- Next by Date: [EP-tech] simple search preamble phrase not displaying on the user interface
- Previous by thread: [EP-tech] Re: Error downloading Romeo autocomplete file from eprints.org
- Next by thread: [EP-tech] Re: Add validation only for certain item types?
- Index(es):