[EP-tech] validate_eprint not being called
John Salter
J.Salter at leeds.ac.uk
Thu May 12 15:40:37 BST 2016
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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Alan.Stiles
Sent: 12 May 2016 14:51
To: eprints-tech at ecs.soton.ac.uk
Subject: Re: [EP-tech] validate_eprint not being called
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 at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Liam Green-Hughes
Sent: 12 May 2016 14:42
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] validate_eprint not being called
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160512/46043052/attachment.html
More information about the Eprints-tech
mailing list