EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05692
< 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: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>
- Date: Thu, 12 May 2016 15:01:30 +0000
We have 3.3.15 here (on RedHat). It will happily validate individual fields and document metadata but it won't call the validate_eprint! Sounds very similar to the issue you have John, will try out your workaround.
Thanks!
Liam
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Sent: 12 May 2016 15:40 To: eprints-tech@ecs.soton.ac.uk Subject: Re: [EP-tech] validate_eprint not being called 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>
- Re: [EP-tech] validate_eprint not being called
- From: John Salter <J.Salter@leeds.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] Simple meta data select list populated by file?
- Previous by thread: Re: [EP-tech] validate_eprint not being called
- Next by thread: [EP-tech] Spaces filling up for OR2016 – Register now!
- Index(es):