EPrints Technical Mailing List Archive
Message: #05691
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] validate_eprint not being called
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] validate_eprint not being called
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Thu, 12 May 2016 14:40:37 +0000
I think I have noticed that – but under 3.3.10 I allude to it here:
https://github.com/eprints/eprints/issues/132 - but when I implemented a ‘faculty maximum embargo’ for our Etheses repository, I had to make a local version of the EPrints::Plugin::Screen::EPrint::Deposit
plugin – and call the validate method in there: sub render { my( $self ) = @_; my $problems = $self->{processor}->{eprint}->validate( $self->{processor}->{for_archive}, $self->workflow_id ); if( scalar @{$problems} > 0 ) { my $dom_problems = $self->{session}->make_element( "ul" ); foreach my $problem_xhtml ( @{$problems} ) { my $li = $self->{session}->make_element( "li" ); $li->appendChild( $problem_xhtml ); $dom_problems->appendChild( $li ); } $self->workflow->link_problem_xhtml( $dom_problems, "EPrint::Edit" ); $self->{processor}->add_message( "warning", $dom_problems ); }
… Does that sound anything like what you’re seeing?? Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Alan.Stiles Hi Liam, Can’t say I’ve noticed it myself on our wonderfully installed and customised eprints instance <ahem>* What version of eprints and
OS etc have you got in your current setup? *(in-joke note to public – Liam was somewhat involved when we first set up eprints here) Alan From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Liam Green-Hughes Hi everyone, Just wondered if anyone else has noticed a problem with the validate_eprint() function not being called? Have tried this in our main Eprints code and against a fairly vanilla copy of EPrints that
I keep for testing. Neither function (the default or the archive specific one) seems to be being triggered.
Thanks Liam Liam Green-Hughes Library Systems Developer Learning and Research Development University of Kent Canterbury -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
|
- References:
- [EP-tech] validate_eprint not being called
- From: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>
- Re: [EP-tech] validate_eprint not being called
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] validate_eprint not being called
- Prev by Date: Re: [EP-tech] validate_eprint not being called
- Next by Date: Re: [EP-tech] validate_eprint not being called
- Previous by thread: Re: [EP-tech] validate_eprint not being called
- Next by thread: Re: [EP-tech] validate_eprint not being called
- Index(es):